Merge pull request #201 from fjrojasgarcia/develop

Generalization of -taking the first N bits of its SHA256 hash- when c…
pull/202/merge
Will Binns 8 years ago committed by GitHub
commit 6f9e771edd

@ -164,7 +164,7 @@ BIP-39 defines the creation of a mnemonic code and seed, which we describe here
Mnemonic words are generated automatically by the wallet, using a standardized process defined in BIP-39. The wallet starts from a source of entropy, adds a checksum and then maps the entropy to a word list: Mnemonic words are generated automatically by the wallet, using a standardized process defined in BIP-39. The wallet starts from a source of entropy, adds a checksum and then maps the entropy to a word list:
1. Create a random sequence (entropy) of 128 to 256 bits. 1. Create a random sequence (entropy) of 128 to 256 bits.
2. Create a checksum of the random sequence by taking the first four bits of its SHA256 hash. 2. Create a checksum of the random sequence by taking the first (entropy-length / 32) bits of its SHA256 hash.
3. Add the checksum to the end of the random sequence. 3. Add the checksum to the end of the random sequence.
4. Divide the sequence into sections of 11 bits. 4. Divide the sequence into sections of 11 bits.
5. Map each 11-bit value to a word from the predefined dictionary of 2048 words. 5. Map each 11-bit value to a word from the predefined dictionary of 2048 words.

Loading…
Cancel
Save