Skip to content

Conversation

asssaf
Copy link

@asssaf asssaf commented Jun 25, 2019

According to bip-0039 seeds can be protected with a passphrase. However this package hardcodes the passphrase to '' (empty string).

This change adds a passphrase parameter to mnemonicToSeed and mnemonicToSeedHex so it can be set to other values.

Also added a test vector from the page linked in the spec .

@asssaf
Copy link
Author

asssaf commented Jun 25, 2019

I guess this is missing NFKD normalization of the passphrase, but should work for ascii

@SFzxc
Copy link
Collaborator

SFzxc commented Dec 21, 2019

Yes, Dart currently don't have builtin NFKD normalization package and https://github.com/yshrsmz/unorm-dart is having some problem so i leave multi-language feature as it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants