Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for passphrase protected seeds #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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