bitcoinjs / bip39

JavaScript implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys
ISC License
1.11k stars 447 forks source link

Why not HMAC-SHA512 but SHA512 #110

Closed Doresimon closed 5 years ago

Doresimon commented 5 years ago

I found in BIP39, they suggested to use HMAC-SHA512 as the pseudo-random function, but in this repo SHA512 is being used.

Did I got the right doc for mnemonic generation?

Thanks!

junderw commented 5 years ago

we use HMAC-SHA512 and all the test vectors pass.

please read the source code more carefully.

Thanks.