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

Provide warnings about invalid BIP39 checksum in seed dialog #2130

Closed

Conversation

kacperzuk
Copy link
Contributor

This PR implements what I described in issue #2128 . I've added a small test case to make sure this feature is removed/updated if wordlist bundled with Electrum changes.

Please let me know if you think something should be moved/renamed. I'm not sure keystore.py is a good place for bip39_is_checksum_valid, but that's the only place I found with other bip39 related functions.

@dabura667
Copy link
Contributor

This will break non-English phrases.

It assumes all wordlists are equivalent to BIP39 counterparts, which is not the case for all.

@kacperzuk
Copy link
Contributor Author

Actually it only assumes that English wordlist is equivalent to it's BIP39 counterpart. If one of the words in phrase is not from English wordlist, it will show this warning: https://github.com/spesmilo/electrum/pull/2130/files#diff-a3125ab4a998d214198f55dfc03353d0R156 .

It only checks with English wordlist, not all of them. Also it doesn't prevent using phrase with invalid checksum/wordlist, it only shows warnings.

@dabura667
Copy link
Contributor

Electrum only recognizes English wordlist for BIP39.

This is a lie though. I have recovered my Japanese BIP39 seed before with no problem.

@ecdsa
Copy link
Member

ecdsa commented Aug 16, 2017

merged manually, after reworking

@ecdsa ecdsa closed this Aug 16, 2017
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.

None yet

3 participants