diff options
| author | Adam Soltys <[email protected]> | 2026-02-16 16:09:58 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-16 16:09:58 -0800 |
| commit | 8bb150db1f73164030f9e8085c13765120363644 (patch) | |
| tree | f27e0914e9f212e6bd235c22d521c049543f239a /src/components | |
| parent | 95427ee5189269e992ae4c788ce356709ed92c57 (diff) | |
| download | coinos-ui-8bb150db1f73164030f9e8085c13765120363644.tar.gz coinos-ui-8bb150db1f73164030f9e8085c13765120363644.zip | |
use bytes for getPublicKey
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AppForm.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/AppForm.svelte b/src/components/AppForm.svelte index cca4844b..db8d97a1 100644 --- a/src/components/AppForm.svelte +++ b/src/components/AppForm.svelte @@ -25,9 +25,10 @@ }); let generate = async () => { - secret = bytesToHex(randomBytes(32)); + let secretBytes = randomBytes(32); + secret = bytesToHex(secretBytes); const { getPublicKey } = await import("nostr-tools"); - pubkey = getPublicKey(secret); + pubkey = getPublicKey(secretBytes); }; let lud16 = $derived(`${user.username}@${$page.url.host}`); |
