Saturday, October 11, 2025
Homeบิทคอยน์How is an HD Pockets Key Generated?

How is an HD Pockets Key Generated?


Please assist me perceive the way you generate a Personal key + Chaincode from entropy.

As I perceive it, you generate entropy which ought to be random and might differ from 128 – 256 bits of knowledge. You can use a coin or cube for this function.

You then generate the checksum; within the case of 12 phrases it is going to be 4 bits, due to this fact 132 bits in complete. Subsequent, you’re taking 132 bits and run it by PBKDF2 with HMAC-SHA512 2048 instances with a string "mnemonic" + elective passphrase.

You obtain 512 bits of knowledge, known as the Seed. Afterwards, you set the 512 bit seed by HMAC-SHA512 with "Bitcoin seed" and also you obtain 512 bits of knowledge which is cut up into the personal key and the chain code.

The half I do not perceive is that some sources say you set the Seed which could be 128, 256 or 512 bits in size by the HMAC-SHA512 to get the personal key and the chaincode. How is it attainable if the Seed ought to be 512 bits in size?

Within the image under, it’s named Root Seed.
Mastering Bitcoin

My understanding is that it really works like this. The primary image is from Mastering Bitcoin, the opposite from learnmeabitcoin.com

enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

ความเห็นล่าสุด