From: Chris Duncan Date: Sun, 1 Dec 2024 05:30:07 +0000 (-0800) Subject: Fix keypair object being assigned to public key variable. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=f30b69ef0ff4269c6ee75d460e54a0a23733c321;p=libnemo.git Fix keypair object being assigned to public key variable. --- diff --git a/src/lib/workers/nano-nacl.ts b/src/lib/workers/nano-nacl.ts index 8bfa104..744a8cd 100644 --- a/src/lib/workers/nano-nacl.ts +++ b/src/lib/workers/nano-nacl.ts @@ -22,7 +22,7 @@ const NanoNaCl = () => { addEventListener('message', (message) => { const data = JSON.parse(new TextDecoder().decode(message.data ?? message)) for (const d of data) { - d.publicKey = keyPair(d.privateKey) + d.publicKey = keyPair(d.privateKey).publicKey } const buf = new TextEncoder().encode(JSON.stringify(data)).buffer //@ts-expect-error