changed
- BREAKING: Change the return type of
entropyToMnemonic
andgenerateMnemonic
fromstring
toBuffer
(#1) - Add support for passing in mnemonic as a
Buffer
tomnemonicToSeedSync
andmnemonicToEntropy
(#1)- Note that the
Buffer
must contain an NFKD normalized mnemonic. This will not work correctly if the mnemonic is improperly normalized.
- Note that the
- Rename this package to
@metamask/bip39
so that we can publish it as a fork ofbip39
(#2)
added
- Added TypeScript support (#104)
- Added support for excluding wordlists from packages (#105)
changed
- Changed
mnemonicToSeed
to use async, sync version moved tomnemonicToSeedSync
(#104)
removed
- Removed explicit hex methods (use
toString('hex')
on the Buffer) (#104)
breaking changes
9-letter mnemonics can no longer be geerated and calling validateMnemonic
will always return false. This was fixed in the BIP as a patch, so we had to follow suite.