0

In BIP 32 it's stated that a Master Private key is generated by hashing the concatenation of a random seed and the string "Bitcoin seed". And is like so in the example implementations.

But I couldn't find such string on Bitcoin Core's codebase. Is the seed just hashed directly to form the Master Key and Master chain code?

1

After much searching, I found the bit of code that uses "Bitcoin seed". So yes, Bitcoin Core uses the string "Bitcoin seed" in tandem with a random seed.

https://github.com/bitcoin/bitcoin/blob/d0f81a96d9c158a9226dc946bdd61d48c4d42959/src/key.cpp#L302

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.