diff options
| author | Adam Soltys <[email protected]> | 2024-11-05 22:48:29 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-05 22:48:29 -0800 |
| commit | acc3dee428f2a0e173549066c0ce611320dbc6b0 (patch) | |
| tree | c73262c955642ca84df5275e588920bc226fa034 /src/lib | |
| parent | 4bb28759a7d3e718c0e6fb85d61c8c40035a2087 (diff) | |
| download | coinos-ui-acc3dee428f2a0e173549066c0ce611320dbc6b0.tar.gz coinos-ui-acc3dee428f2a0e173549066c0ce611320dbc6b0.zip | |
remove generate
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/nostr.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/nostr.ts b/src/lib/nostr.ts index f45dc811..8aea40d7 100644 --- a/src/lib/nostr.ts +++ b/src/lib/nostr.ts @@ -1,24 +1,24 @@ -import { browser } from "$app/environment"; -import { hexToUint8Array } from "uint8array-extras"; -import { get } from "svelte/store"; import { Buffer } from "buffer"; -import { wait, post, stretch } from "$lib/utils"; +import { browser } from "$app/environment"; import { decrypted, password as pw, passwordPrompt, pin } from "$lib/store"; +import { post, stretch, wait } from "$lib/utils"; import { - getPublicKey, + type EventTemplate, finalizeEvent, + getPublicKey, nip04, nip19, - type EventTemplate, } from "nostr-tools"; +import { get } from "svelte/store"; +import { hexToUint8Array } from "uint8array-extras"; import { - encrypt as nip49encrypt, decrypt as nip49decrypt, + encrypt as nip49encrypt, } from "nostr-tools/nip49"; -import { mnemonicToEntropy, entropyToMnemonic } from "@scure/bip39"; import { bech32m } from "@scure/base"; +import { entropyToMnemonic, mnemonicToEntropy } from "@scure/bip39"; import { wordlist } from "@scure/bip39/wordlists/english"; import { generateSeedWords, privateKeyFromSeedWords } from "nostr-tools/nip06"; |
