I wish to replicate mnemonic code with terminal.
the steps are:
- Create a random sequence (entropy) of 128 to 256 bits.
- Create a checksum of the random sequence by taking the primary (entropy- size/32) bits of its SHA256 hash.
- Add the checksum to the tip of the random sequence.
- Divide the sequence into sections of 11 bits.
- Map every 11-bit worth to a phrase from the predefined dictionary of 2048 phrases.
- The mnemonic code is the sequence of phrases.
I can see this picture
And I take this entropy
0c1e24e5917779d297e14d45f14e1a1a
If I observe the picture, I create the checksum
printf 0c1e24e5917779d297e14d45f14e1a1a | xxd -r -p | sha256sum -b
end result
76e57a90f93135e97ce700a9e79196ba46315d65e696d0a4518270a8de3e80e4
Then take 4 bits (0,5 byte => 1 char ) and append to my entropy with this end result:
0c1e24e5917779d297e14d45f14e1a1a7
Now I’ve 132 bits And I’ve to separate in 12 segments of 11 bits every
I attempt to convert in base 2
echo "ibase=16; obase=2; 0C1E24E5917779D297E14D45F14E1A1A7" | bc
11000001111000100100111001011001000101110111011110011101001010010111111000010100110101000101111100010100111000011010000110100111
However the end result will not be right, If I put that entropy in https://iancoleman.io/bip39/#entropy-notes I can see that end result
00001100000 11110001001 00111001011 00100010111 01110111100 11101001010 01011111100 00101001101 01000101111 10001010011 10000110100 0011010
However I do not perceive How can I receive that
00001100000 = 96 = military