From 5a69cc6c0e93f2342c02c96db15f1fa9fe34053b Mon Sep 17 00:00:00 2001 From: "Andreas M. Antonopoulos" Date: Tue, 18 Jul 2017 11:30:39 +0800 Subject: [PATCH] fix wording on child key derivation --- ch05.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch05.asciidoc b/ch05.asciidoc index 1bd65990..3280c0b3 100644 --- a/ch05.asciidoc +++ b/ch05.asciidoc @@ -333,7 +333,7 @@ The chain code is used to introduce deterministic random data to the process, so These three items (parent key, chain code, and index) are combined and hashed to generate children keys, as follows. -The parent public key, chain code, and the index number are combined and hashed with the HMAC-SHA512 algorithm to produce a 512-bit hash. This 512-bit hash is split into two 256-bit halves. The right-half 256 bits of the hash output become the chain code for the child. The left-half 256 bits of the hash and the index number are added to the parent private key to produce the child private key. In <>, we see this illustrated with the index set to 0 to produce the "zero" (first by index) child of the parent. +The parent public key, chain code, and the index number are combined and hashed with the HMAC-SHA512 algorithm to produce a 512-bit hash. This 512-bit hash is split into two 256-bit halves. The right-half 256 bits of the hash output become the chain code for the child. The left-half 256 bits of the hash are added to the parent private key to produce the child private key. In <>, we see this illustrated with the index set to 0 to produce the "zero" (first by index) child of the parent. [[CKDpriv]] .Extending a parent private key to create a child private key