-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore: restrict last word to valid candidates also for 12/18 words
So far we've only been doing this for 24 words, where there are 8 list of valid candidate, so they could be shown in a menu. We do the same for 12/18 words, but since there are many more candidates (128 for 12 words, 32 for 18 words), we restrict the trinary keyboard entry to this list instead of showing them all in a menu. This allows easily importing seeds that were made without computers by rolling dices or similar, helping with the checksum issue, like we do now for 24 word mnemonics. One downside is that if the user has a typo in the previous words, they will be unable to enter the last word as it will be missing from the candidates, which could be confusing. With 24 words, there is an explicit "None of them" entry to tell the user that their words are invalid, but that only works in the menu. With the 12th/18th word still using the keyboard, there is no good way of doing this.
- Loading branch information
Showing
2 changed files
with
89 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters