1
0

serialize txin-type in xpub/xprv

This commit is contained in:
ThomasV
2017-10-25 17:33:49 +02:00
parent 62fe3a411b
commit a220932711
4 changed files with 21 additions and 23 deletions

View File

@@ -47,19 +47,25 @@ def read_json_dict(filename):
return r
# Version numbers for BIP32 extended keys
# standard: xprv, xpub
# segwit in p2sh: yprv, ypub
# native segwit: zprv, zpub
XPRV_HEADERS = {
'standard': 0x0488ade4,
'segwit_p2sh': 0x049d7878,
'segwit': 0x4b2430c
'p2wpkh-p2sh': 0x049d7878,
'p2wsh-p2sh': 0x295b004,
'p2wpkh': 0x4b2430c,
'p2wsh': 0x2aa7a99
}
XPUB_HEADERS = {
'standard': 0x0488b21e,
'segwit_p2sh': 0x049d7cb2,
'segwit': 0x4b24746
'p2wpkh-p2sh': 0x049d7cb2,
'p2wsh-p2sh': 0x295b43e,
'p2wpkh': 0x4b24746,
'p2wsh': 0x2aa7ed3
}