Skip to content

Commit 1cc657d

Browse files
authored
Merge pull request bitcoin#762 from clarkmoody/bip-49-version-bytes
BIP-49 - Add Version Bytes Section
2 parents 92e87c9 + 5b74e93 commit 1cc657d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bip-0049.mediawiki

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ To derive the P2SH address from the above calculated public key, we use the enca
6666
scriptPubKey: HASH160 <20-byte-script-hash> EQUAL
6767
(0xA914{20-byte-script-hash}87)
6868
69+
70+
===Extended Key Version===
71+
72+
When serializing extended keys, this scheme uses alternate version bytes. Extended public keys use <code>0x049d7cb2</code> to produce a "ypub" prefix, and private keys use <code>0x049d7878</code> to produce a "yprv" prefix. Testnet uses <code>0x044a5262</code> "upub" and <code>0x044a4e28</code> "uprv."
73+
74+
Additional registered version bytes are listed in [[https://github.com/satoshilabs/slips/blob/master/slip-0132.md|SLIP-0132]].
75+
76+
6977
==Backwards Compatibility==
7078

7179
This BIP is not backwards compatible by design as described under [[#considerations|considerations]]. An incompatible wallet will not discover accounts at all and the user will notice that something is wrong.
@@ -75,10 +83,11 @@ This BIP is not backwards compatible by design as described under [[#considerati
7583

7684
<pre>
7785
masterseedWords = abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
78-
masterseed = tprv8ZgxMBicQKsPe5YMU9gHen4Ez3ApihUfykaqUorj9t6FDqy3nP6eoXiAo2ssvpAjoLroQxHqr3R5nE3a5dU3DHTjTgJDd7zrbniJr6nrCzd (testnet)
86+
masterseed = uprv8tXDerPXZ1QsVNjUJWTurs9kA1KGfKUAts74GCkcXtU8GwnH33GDRbNJpEqTvipfCyycARtQJhmdfWf8oKt41X9LL1zeD2pLsWmxEk3VAwd (testnet)
7987

8088
// Account 0, root = m/49'/1'/0'
81-
account0Xpriv = tprv8gRrNu65W2Msef2BdBSUgFdRTGzC8EwVXnV7UGS3faeXtuMVtGfEdidVeGbThs4ELEoayCAzZQ4uUji9DUiAs7erdVskqju7hrBcDvDsdbY (testnet)
89+
account0Xpriv = uprv91G7gZkzehuMVxDJTYE6tLivdF8e4rvzSu1LFfKw3b2Qx1Aj8vpoFnHdfUZ3hmi9jsvPifmZ24RTN2KhwB8BfMLTVqaBReibyaFFcTP1s9n (testnet)
90+
account0Xpub = upub5EFU65HtV5TeiSHmZZm7FUffBGy8UKeqp7vw43jYbvZPpoVsgU93oac7Wk3u6moKegAEWtGNF8DehrnHtv21XXEMYRUocHqguyjknFHYfgY (testnet)
8291
8392
// Account 0, first receiving private key = m/49'/1'/0'/0/0
8493
account0recvPrivateKey = cULrpoZGXiuC19Uhvykx7NugygA3k86b3hmdCeyvHYQZSxojGyXJ

0 commit comments

Comments
 (0)