diff --git a/crypto_sign.js b/crypto_sign.js index 133172a..63a62d4 100644 --- a/crypto_sign.js +++ b/crypto_sign.js @@ -131,7 +131,7 @@ function crypto_sign_keypair(pk, sk, seeded) { function crypto_sign_seed_keypair (pk, sk, seed) { check(seed, crypto_sign_SEEDBYTES) - seed.copy(sk) + sk.set(seed) return crypto_sign_keypair(pk, sk, true) }