From 8bb150db1f73164030f9e8085c13765120363644 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 16 Feb 2026 16:09:58 -0800 Subject: use bytes for getPublicKey --- src/components/AppForm.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/components') 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}`); -- cgit v1.2.3