banner

Please help me understand how you generate a Private key + Chaincode from entropy.

As I understand it, you generate entropy which should be random and can vary from 128 – 256 bits of data. You could use a coin or dice for this purpose.

Then you generate the checksum; in the case of 12 words it will be 4 bits, therefore 132 bits in total. Next, you take 132 bits and run it through PBKDF2 with HMAC-SHA512 2048 times with a string "mnemonic" + optional passphrase.

You receive 512 bits of data, called the Seed. Afterwards, you put the 512 bit seed through HMAC-SHA512 with "Bitcoin seed" and you receive 512 bits of data which is split into the private key and the chain code.

The part I don’t understand is that some sources say you put the Seed which can be 128, 256 or 512 bits in length through the HMAC-SHA512 to get the private key and the chaincode. How is it possible if the Seed should be 512 bits in length?

In the picture below, it is named Root Seed.

My understanding is that it works like this. The first picture is from Mastering Bitcoin, the other from learnmeabitcoin.com

enter image description here

banner

Converter

Source: CurrencyRate
Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner

Leave a Comment

Layer 1
Your Crypto & Blockchain Beacon

CryptoInsightful

Welcome to CryptoInsightful.com, your trusted source for in-depth analysis, news, and insights into the world of cryptocurrencies, blockchain technology, NFTs (Non-Fungible Tokens), and cybersecurity. Our mission is to empower you with the knowledge and understanding you need to navigate the rapidly evolving landscape of digital assets and emerging technologies.