]> zoso.dev Git - libnemo.git/commitdiff
Fix keypair object being assigned to public key variable.
authorChris Duncan <chris@zoso.dev>
Sun, 1 Dec 2024 05:30:07 +0000 (21:30 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 1 Dec 2024 05:30:07 +0000 (21:30 -0800)
src/lib/workers/nano-nacl.ts

index 8bfa104bfb51df4ea20db3b812529d99043f2433..744a8cda3d910e1553e906b668e86649971fe372 100644 (file)
@@ -22,7 +22,7 @@ const NanoNaCl = () => {
        addEventListener('message', (message) => {\r
                const data = JSON.parse(new TextDecoder().decode(message.data ?? message))\r
                for (const d of data) {\r
-                       d.publicKey = keyPair(d.privateKey)\r
+                       d.publicKey = keyPair(d.privateKey).publicKey\r
                }\r
                const buf = new TextEncoder().encode(JSON.stringify(data)).buffer\r
                //@ts-expect-error\r