-
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.
workflow/mnemonic: generalize lastword_choices to 12/18/24 words
The function computed all 8 possible 24th candidate words to make up a valid bip39 mnemonic given the first 23 words. The function is extended to also work with 12 and 18 word mnemonics, returning 128 (resp. 32) possible candidates for the final word. This function can then be used to make the entry of the final word easier for the 12th/18th word by restricting the keyboard to only allow entering from these candidates. This also 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.
- Loading branch information
Showing
1 changed file
with
92 additions
and
24 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