From f30b69ef0ff4269c6ee75d460e54a0a23733c321 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 30 Nov 2024 21:30:07 -0800 Subject: [PATCH] Fix keypair object being assigned to public key variable. --- src/lib/workers/nano-nacl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1