From 6f220b99421dcf03899d9fac9f35616e272f5fb6 Mon Sep 17 00:00:00 2001 From: Bryant Eisenbach Date: Wed, 5 Feb 2020 14:36:12 -0500 Subject: [PATCH] doc: Typo in doc --- eth_account/hdaccount/deterministic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth_account/hdaccount/deterministic.py b/eth_account/hdaccount/deterministic.py index 87b6a2ba..537d3b4f 100644 --- a/eth_account/hdaccount/deterministic.py +++ b/eth_account/hdaccount/deterministic.py @@ -112,7 +112,7 @@ def derive_child_key( The function CKDpriv((k_par, c_par), i) → (k_i, c_i) computes a child extended private key from the parent extended private key: - - Check whether i ≥ 231 (whether the child is a hardened key). + - Check whether i ≥ 2**31 (whether the child is a hardened key). - If so (hardened child): let I = HMAC-SHA512(Key = c_par, Data = 0x00 || ser_256(kpar) || ser_32(i)). (Note: The 0x00 pads the private key to make it 33 bytes long.)