aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-16 16:09:58 -0800
committerAdam Soltys <[email protected]>2026-02-16 16:09:58 -0800
commit8bb150db1f73164030f9e8085c13765120363644 (patch)
treef27e0914e9f212e6bd235c22d521c049543f239a /src/components
parent95427ee5189269e992ae4c788ce356709ed92c57 (diff)
downloadcoinos-ui-8bb150db1f73164030f9e8085c13765120363644.tar.gz
coinos-ui-8bb150db1f73164030f9e8085c13765120363644.zip
use bytes for getPublicKey
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppForm.svelte5
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}`);