serialize txin-type in xpub/xprv
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user