Generalization of -taking the first N bits of its SHA256 hash- when creating a checksum of the random sequence

pull/201/head
Javier Rojas Garcia 8 years ago
parent 6b513020a5
commit 0b7861dbb9

@ -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:
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.
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.

Loading…
Cancel
Save