Skip to content

Commit a5beb39

Browse files
author
avirgovi
committed
fixed bip32 algo to copy master key creation instead of private2private; added same warning to XPRV part
1 parent f4c9fd3 commit a5beb39

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bip-0085.mediawiki

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Words Table
147147
|}
148148

149149
====12 English words====
150-
BIP39 English 12 word mnemonic seed
150+
BIP39 English 12 word mnemonic seed
151151

152152
128 bits of entropy as input to BIP39 to derive 12 word mnemonic
153153

@@ -193,7 +193,7 @@ Uses 256 bits of entropy as the secret exponent to derive a private key and enco
193193
There is a very small chance that you'll make an invalid key that is zero or bigger than the order of the curve. If this occurs, software should hard fail (forcing users should iterate to the next index).
194194

195195
From BIP32:
196-
> In case parse<sub>256</sub>(I<sub>L</sub>) ≥ n or k<sub>i</sub> = 0, the resulting key is invalid, and one should proceed with the next value for i. (Note: this has probability lower than 1 in 2<sup>127</sup>.)
196+
> In case parse<sub>256</sub>(I<sub>L</sub>) is 0 or ≥ n, the resulting key is invalid, and one should proceed with the next value for i. (Note: this has probability lower than 1 in 2<sup>127</sup>.)
197197

198198
Path format is <code>m/83696968'/2'/{index}'</code>
199199

@@ -210,6 +210,11 @@ Application number: 32'
210210

211211
Taking 64 bytes of the HMAC digest, the first 32 bytes are the chain code, and second 32 bytes are the private key for BIP32 XPRV value. Child number, depth, and parent fingerprint are forced to zero.
212212

213+
There is a very small chance that you'll make an invalid key that is zero or bigger than the order of the curve. If this occurs, software should hard fail (forcing users should iterate to the next index).
214+
215+
From BIP32:
216+
> In case parse<sub>256</sub>(I<sub>R</sub>) is 0 or ≥ n, the resulting key is invalid, and one should proceed with the next value for i. (Note: this has probability lower than 1 in 2<sup>127</sup>.)
217+
213218
Path format is <code>m/83696968'/32'/{index}'</code>
214219

215220
INPUT:

0 commit comments

Comments
 (0)