copy -> set
This commit is contained in:
parent
b44f83f0a8
commit
f033af88bd
@ -131,7 +131,7 @@ function crypto_sign_keypair(pk, sk, seeded) {
|
|||||||
|
|
||||||
function crypto_sign_seed_keypair (pk, sk, seed) {
|
function crypto_sign_seed_keypair (pk, sk, seed) {
|
||||||
check(seed, crypto_sign_SEEDBYTES)
|
check(seed, crypto_sign_SEEDBYTES)
|
||||||
seed.copy(sk)
|
sk.set(seed)
|
||||||
return crypto_sign_keypair(pk, sk, true)
|
return crypto_sign_keypair(pk, sk, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user