From f62c993d4830f60367015c8fec7d8f1dfbbeb638 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Mon, 21 Nov 2022 16:46:00 +0000 Subject: [PATCH] crypto_sign_keypair_seed typo --- crypto_sign_ed25519.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_sign_ed25519.js b/crypto_sign_ed25519.js index 6dfaad1..046f1c3 100644 --- a/crypto_sign_ed25519.js +++ b/crypto_sign_ed25519.js @@ -1,4 +1,4 @@ -const { sodium_memzero } = require('./') +const { sodium_memzero } = require('./utils') const { randombytes_buf } = require('./randombytes') const ec = require('./fe25519_25') const { @@ -30,7 +30,7 @@ function crypto_sign_seed_keypair (pk, sk, seed) { ec.ge25519_scalarmult_base(A, sk) ec.ge25519_p3_tobytes(pk, A) - sk.set(seed, 32) + sk.set(seed) sk.set(pk, 32) }