From 88d2497f208916e76c1227c605e51cff846a5762 Mon Sep 17 00:00:00 2001 From: Alexey Karyabkin Date: Wed, 6 Jun 2018 15:52:11 +0400 Subject: [PATCH] added constants for wallets(MAINNET|TESTNET) --- pybtc/constants.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pybtc/constants.py b/pybtc/constants.py index 2d6f88c..a9fa7ec 100644 --- a/pybtc/constants.py +++ b/pybtc/constants.py @@ -79,6 +79,9 @@ SCRIPT_TYPES = { "P2PKH": 0, } - -PRIVATEWALLETVERSION = b'\x04\x88\xAD\xE4' -PUBLICWALLETVERSION = b'\x04\x88\xB2\x1E' +# CONSTANTS hierarchical deterministic wallets (HD Wallets) +MAINNET_PRIVATE_WALLET_VERSION = b'\x04\x88\xAD\xE4' +MAINNET_PUBLIC_WALLET_VERSION = b'\x04\x88\xB2\x1E' +TESTNET_PRIVATE_WALLET_VERSION = b'\x04\x35\x83\x94' +TESTNET_PUBLIC_WALLET_VERSION = b'\x04\x35\x87\xCF' +FIRST_HARDENED_CHILD = 0x80000000