From: Chris Duncan Date: Tue, 3 Dec 2024 22:33:11 +0000 (-0800) Subject: Fix public key derivation. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=c20506c7b5b2ec0908a1a47fee44687af8ff0208;p=libnemo.git Fix public key derivation. --- diff --git a/src/lib/nano-nacl.ts b/src/lib/nano-nacl.ts index e288e4e..d3d84c0 100644 --- a/src/lib/nano-nacl.ts +++ b/src/lib/nano-nacl.ts @@ -819,7 +819,7 @@ const n = () => { const p = [gf(), gf(), gf(), gf()] - const hash = new Blake2b(64).update(sk).digest() + const hash = new Blake2b(64).update(seed).digest() hash[0] &= 248 hash[31] &= 127 hash[31] |= 64