1
0

Move BIP44 coin type to net constants.

This commit is contained in:
JeremyRand
2018-06-23 14:46:44 +00:00
parent 88d95123fb
commit d1d92e8704
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ class BitcoinMainnet:
'p2wpkh': 0x04b24746, # zpub
'p2wsh': 0x02aa7ed3, # Zpub
}
BIP44_COIN_TYPE = 0
class BitcoinTestnet:
@@ -91,6 +92,7 @@ class BitcoinTestnet:
'p2wpkh': 0x045f1cf6, # vpub
'p2wsh': 0x02575483, # Vpub
}
BIP44_COIN_TYPE = 1
class BitcoinRegtest(BitcoinTestnet):