crypto_sign_keypair_seed typo

This commit is contained in:
Christophe Diederichs 2022-11-21 16:46:00 +00:00
parent 2f4480f2f1
commit f62c993d48

View File

@ -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)
}