So in mastering bitcoin it mentioned that to generate child key,The left-half 256 bits of the hash are added to the parent key so if we add that it will be 512 bits.But we need 256 bit so do we hash that string (parent key + left hash) with SHA256 and get the 256 bit child private key?
Asked
Active
Viewed 141 times
1 Answers
2
There is concatenation where 256 bits placed next to another 256 bits makes 512 bits. However, what you are referring to (generating a child key) uses scalar addition. A 256 bit number (256 bit parent private key) is added to another 256 bit number (left 256 bits of the SHA512) and the result modulo p (p = 2^256-2^32-977
) is another 256 bit number.

Michael Folkson
- 15,313
- 3
- 17
- 53
+
indicates a "special operation" (Addition (+) of two coordinate pair is defined as application of the EC group operation.
). – dassd Apr 04 '23 at 12:58