mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-12-23 15:18:11 +00:00
Merge pull request #201 from fjrojasgarcia/develop
Generalization of -taking the first N bits of its SHA256 hash- when c…
This commit is contained in:
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:
|
||||
|
||||
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…
Reference in New Issue
Block a user