Skip to content

Commit

Permalink
Close #126 Add support for Bitcoin RegTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed Apr 14, 2024
1 parent d8da763 commit 943a15d
Show file tree
Hide file tree
Showing 18 changed files with 221 additions and 10 deletions.
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip44/bip44_coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Bip44Coins(BipCoins):
BITCOIN_CASH_TESTNET = auto()
BITCOIN_CASH_SLP_TESTNET = auto()
BITCOIN_SV_TESTNET = auto()
BITCOIN_REGTEST = auto()
BITCOIN_TESTNET = auto()
DASH_TESTNET = auto()
DOGECOIN_TESTNET = auto()
Expand Down
15 changes: 15 additions & 0 deletions bip_utils/bip/conf/bip44/bip44_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,21 @@ class Bip44Conf:
"net_ver": CoinsConf.BitcoinMainNet.ParamByKey("p2pkh_net_ver"),
},
)
# Configuration for Bitcoin regtest
BitcoinRegTest: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinRegTest.CoinNames(),
coin_idx=Slip44.TESTNET,
is_testnet=True,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP44_BTC_KEY_NET_VER_TEST,
wif_net_ver=CoinsConf.BitcoinRegTest.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2PKHAddrEncoder,
addr_params={
"net_ver": CoinsConf.BitcoinRegTest.ParamByKey("p2pkh_net_ver"),
},
)

# Configuration for Bitcoin test net
BitcoinTestNet: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinTestNet.CoinNames(),
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip44/bip44_conf_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Bip44ConfGetterConst:
Bip44Coins.BINANCE_CHAIN: Bip44Conf.BinanceChain,
Bip44Coins.BINANCE_SMART_CHAIN: Bip44Conf.BinanceSmartChain,
Bip44Coins.BITCOIN: Bip44Conf.BitcoinMainNet,
Bip44Coins.BITCOIN_REGTEST: Bip44Conf.BitcoinRegTest,
Bip44Coins.BITCOIN_TESTNET: Bip44Conf.BitcoinTestNet,
Bip44Coins.BITCOIN_CASH: Bip44Conf.BitcoinCashMainNet,
Bip44Coins.BITCOIN_CASH_TESTNET: Bip44Conf.BitcoinCashTestNet,
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip49/bip49_coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Bip49Coins(BipCoins):
BITCOIN_CASH_TESTNET = auto()
BITCOIN_CASH_SLP_TESTNET = auto()
BITCOIN_SV_TESTNET = auto()
BITCOIN_REGTEST = auto()
BITCOIN_TESTNET = auto()
DASH_TESTNET = auto()
DOGECOIN_TESTNET = auto()
Expand Down
14 changes: 14 additions & 0 deletions bip_utils/bip/conf/bip49/bip49_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ class Bip49Conf:
"net_ver": CoinsConf.BitcoinMainNet.ParamByKey("p2sh_net_ver"),
},
)
# Configuration for Bitcoin regtest
BitcoinRegTest: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinRegTest.CoinNames(),
coin_idx=Slip44.TESTNET,
is_testnet=True,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP49_BTC_KEY_NET_VER_TEST,
wif_net_ver=CoinsConf.BitcoinRegTest.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2SHAddrEncoder,
addr_params={
"net_ver": CoinsConf.BitcoinRegTest.ParamByKey("p2sh_net_ver"),
},
)
# Configuration for Bitcoin test net
BitcoinTestNet: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinTestNet.CoinNames(),
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip49/bip49_conf_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bip49ConfGetterConst:
# Map from Bip49Coins to configuration classes
COIN_TO_CONF: Dict[BipCoins, BipCoinConf] = {
Bip49Coins.BITCOIN: Bip49Conf.BitcoinMainNet,
Bip49Coins.BITCOIN_REGTEST: Bip49Conf.BitcoinRegTest,
Bip49Coins.BITCOIN_TESTNET: Bip49Conf.BitcoinTestNet,
Bip49Coins.BITCOIN_CASH: Bip49Conf.BitcoinCashMainNet,
Bip49Coins.BITCOIN_CASH_TESTNET: Bip49Conf.BitcoinCashTestNet,
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip84/bip84_coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ class Bip84Coins(BipCoins):
BITCOIN = auto()
LITECOIN = auto()
# Test nets
BITCOIN_REGTEST = auto()
BITCOIN_TESTNET = auto()
LITECOIN_TESTNET = auto()
30 changes: 23 additions & 7 deletions bip_utils/bip/conf/bip84/bip84_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
from bip_utils.slip.slip44 import Slip44


# Bitcoin key net version (zpub / zprv)
_BIP84_BTC_KEY_NET_VER: Bip32KeyNetVersions = Bip32KeyNetVersions(b"\x04\xb2\x47\x46",
b"\x04\xb2\x43\x0c")
# Bitcoin key net version for main net (zpub / zprv)
_BIP84_BTC_KEY_NET_VER_MAIN: Bip32KeyNetVersions = Bip32KeyNetVersions(b"\x04\xb2\x47\x46",
b"\x04\xb2\x43\x0c")
# Bitcoin key test net version for test net (vpub / vprv)
_BIP84_BTC_KEY_NET_VER_TEST: Bip32KeyNetVersions = Bip32KeyNetVersions(b"\x04\x5f\x1c\xf6",
b"\x04\x5f\x18\xbc")


class Bip84Conf:
Expand All @@ -42,22 +45,35 @@ class Bip84Conf:
coin_idx=Slip44.BITCOIN,
is_testnet=False,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP84_BTC_KEY_NET_VER,
key_net_ver=_BIP84_BTC_KEY_NET_VER_MAIN,
wif_net_ver=CoinsConf.BitcoinMainNet.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2WPKHAddrEncoder,
addr_params={
"hrp": CoinsConf.BitcoinMainNet.ParamByKey("p2wpkh_hrp"),
},
)
# Configuration for Bitcoin regtest
BitcoinRegTest: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinRegTest.CoinNames(),
coin_idx=Slip44.TESTNET,
is_testnet=True,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP84_BTC_KEY_NET_VER_TEST,
wif_net_ver=CoinsConf.BitcoinRegTest.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2WPKHAddrEncoder,
addr_params={
"hrp": CoinsConf.BitcoinRegTest.ParamByKey("p2wpkh_hrp"),
},
)
# Configuration for Bitcoin test net
BitcoinTestNet: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinTestNet.CoinNames(),
coin_idx=Slip44.TESTNET,
is_testnet=True,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=Bip32KeyNetVersions(b"\x04\x5f\x1c\xf6",
b"\x04\x5f\x18\xbc"), # vpub / vprv
key_net_ver=_BIP84_BTC_KEY_NET_VER_TEST,
wif_net_ver=CoinsConf.BitcoinTestNet.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2WPKHAddrEncoder,
Expand All @@ -72,7 +88,7 @@ class Bip84Conf:
coin_idx=Slip44.LITECOIN,
is_testnet=False,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP84_BTC_KEY_NET_VER,
key_net_ver=_BIP84_BTC_KEY_NET_VER_MAIN,
wif_net_ver=CoinsConf.LitecoinMainNet.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2WPKHAddrEncoder,
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip84/bip84_conf_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bip84ConfGetterConst:
# Map from Bip84Coins to configuration classes
COIN_TO_CONF: Dict[BipCoins, BipCoinConf] = {
Bip84Coins.BITCOIN: Bip84Conf.BitcoinMainNet,
Bip84Coins.BITCOIN_REGTEST: Bip84Conf.BitcoinRegTest,
Bip84Coins.BITCOIN_TESTNET: Bip84Conf.BitcoinTestNet,
Bip84Coins.LITECOIN: Bip84Conf.LitecoinMainNet,
Bip84Coins.LITECOIN_TESTNET: Bip84Conf.LitecoinTestNet,
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip86/bip86_coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ class Bip86Coins(BipCoins):
# Main nets
BITCOIN = auto()
# Test nets
BITCOIN_REGTEST = auto()
BITCOIN_TESTNET = auto()
19 changes: 17 additions & 2 deletions bip_utils/bip/conf/bip86/bip86_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


# Bitcoin key net version for main net (same as BIP32)
_BIP86_BTC_KEY_NET_VER: Bip32KeyNetVersions = Bip32Const.MAIN_NET_KEY_NET_VERSIONS
_BIP86_BTC_KEY_NET_VER_MAIN: Bip32KeyNetVersions = Bip32Const.MAIN_NET_KEY_NET_VERSIONS
# Bitcoin key net version for test net (same as BIP32)
_BIP86_BTC_KEY_NET_VER_TEST: Bip32KeyNetVersions = Bip32Const.TEST_NET_KEY_NET_VERSIONS

Expand All @@ -43,7 +43,7 @@ class Bip86Conf:
coin_idx=Slip44.BITCOIN,
is_testnet=False,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP86_BTC_KEY_NET_VER,
key_net_ver=_BIP86_BTC_KEY_NET_VER_MAIN,
wif_net_ver=CoinsConf.BitcoinMainNet.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2TRAddrEncoder,
Expand All @@ -52,6 +52,21 @@ class Bip86Conf:
},
)

# Configuration for Bitcoin regtest
BitcoinRegTest: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinRegTest.CoinNames(),
coin_idx=Slip44.TESTNET,
is_testnet=True,
def_path=DER_PATH_NON_HARDENED_FULL,
key_net_ver=_BIP86_BTC_KEY_NET_VER_TEST,
wif_net_ver=CoinsConf.BitcoinRegTest.ParamByKey("wif_net_ver"),
bip32_cls=Bip32Slip10Secp256k1,
addr_cls=P2TRAddrEncoder,
addr_params={
"hrp": CoinsConf.BitcoinRegTest.ParamByKey("p2tr_hrp"),
},
)

# Configuration for Bitcoin test net
BitcoinTestNet: BipCoinConf = BipCoinConf(
coin_names=CoinsConf.BitcoinTestNet.CoinNames(),
Expand Down
1 change: 1 addition & 0 deletions bip_utils/bip/conf/bip86/bip86_conf_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bip86ConfGetterConst:
# Map from Bip86Coins to configuration classes
COIN_TO_CONF: Dict[BipCoins, BipCoinConf] = {
Bip86Coins.BITCOIN: Bip86Conf.BitcoinMainNet,
Bip86Coins.BITCOIN_REGTEST: Bip86Conf.BitcoinRegTest,
Bip86Coins.BITCOIN_TESTNET: Bip86Conf.BitcoinTestNet,
}

Expand Down
24 changes: 23 additions & 1 deletion bip_utils/coin_conf/coins_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
_BTC_P2TR_HRP_TN: str = Slip173.BITCOIN_TESTNET
_BTC_P2TR_WIT_VER_TN: int = 1
_BTC_WIF_NET_VER_TN: bytes = b"\xef"
# Regtest
_BTC_P2PKH_NET_VER_RT: bytes =_BTC_P2PKH_NET_VER_TN
_BTC_P2SH_NET_VER_RT: bytes = _BTC_P2SH_NET_VER_TN
_BTC_P2WPKH_HRP_RT: str = Slip173.BITCOIN_REGTEST
_BTC_P2WPKH_WIT_VER_RT: int = _BTC_P2TR_WIT_VER_TN
_BTC_P2TR_HRP_RT: str = Slip173.BITCOIN_REGTEST
_BTC_P2TR_WIT_VER_RT: int = _BTC_P2TR_WIT_VER_TN
_BTC_WIF_NET_VER_RT: bytes = _BTC_WIF_NET_VER_TN


class CoinsConf:
Expand Down Expand Up @@ -169,11 +177,25 @@ class CoinsConf:
"p2wpkh_hrp": _BTC_P2WPKH_HRP_TN,
"p2wpkh_wit_ver": _BTC_P2WPKH_WIT_VER_TN,
"p2tr_hrp": _BTC_P2TR_HRP_TN,
"p2tr_wit_ver": _BTC_P2TR_WIT_VER_MN,
"p2tr_wit_ver": _BTC_P2TR_WIT_VER_TN,
"wif_net_ver": _BTC_WIF_NET_VER_TN,
},
)

# Configuration for Bitcoin regtest
BitcoinRegTest: CoinConf = CoinConf(
coin_name=CoinNames("Bitcoin RegTest", "BTC"),
params={
"p2pkh_net_ver": _BTC_P2PKH_NET_VER_RT,
"p2sh_net_ver": _BTC_P2SH_NET_VER_RT,
"p2wpkh_hrp": _BTC_P2WPKH_HRP_RT,
"p2wpkh_wit_ver": _BTC_P2WPKH_WIT_VER_RT,
"p2tr_hrp": _BTC_P2TR_HRP_RT,
"p2tr_wit_ver": _BTC_P2TR_WIT_VER_RT,
"wif_net_ver": _BTC_WIF_NET_VER_RT,
},
)

# Configuration for Bitcoin Cash main net
BitcoinCashMainNet: CoinConf = CoinConf(
coin_name=CoinNames("Bitcoin Cash", "BCH"),
Expand Down
1 change: 1 addition & 0 deletions bip_utils/slip/slip173/slip173.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Slip173:
BAND_PROTOCOL: str = "band"
BINANCE_CHAIN: str = "bnb"
BITCOIN_MAINNET: str = "bc"
BITCOIN_REGTEST: str = "bcrt"
BITCOIN_TESTNET: str = "tb"
CERTIK: str = "certik"
CHIHUAHUA: str = "chihuahua"
Expand Down
30 changes: 30 additions & 0 deletions tests/bip/bip44/test_bip44.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,30 @@
# Test nets
#

# Bitcoin regtest
{
"coin": Bip44Coins.BITCOIN_REGTEST,
"names": ("Bitcoin RegTest", "BTC"),
"is_testnet": True,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"ex_master": "tprv8ZgxMBicQKsPe5YMU9gHen4Ez3ApihUfykaqUorj9t6FDqy3nP6eoXiAo2ssvpAjoLroQxHqr3R5nE3a5dU3DHTjTgJDd7zrbniJr6nrCzd",
"wif_master": "cNPn53CWHSMt3MMr3HrymFzxaeDwZrZF2yAEZJ7knzAFD3GTTi2x",
"account": {
"ex_pub": "tpubDC5FSnBiZDMmhiuCmWAYsLwgLYrrT9rAqvTySfuCCrgsWz8wxMXUS9Tb9iVMvcRbvFcAHGkMD5Kx8koh4GquNGNTfohfk7pgjhaPCdXpoba",
"ex_priv": "tprv8fPDJN9UQqg6pFsQsrVxTwHZmXLvHpfGGcsCA9rtnatUgVtBKxhtFeqiyaYKSWydunKpjhvgJf6PwTwgirwuCbFq8YKgpQiaVJf3JCrNmkR",
},
"chain_ext": {
"ex_pub": "tpubDEQBfiy13hMZzGT4NWqNnaSWwVqYQ58kuu2pDYjkrf8F6DLKAprm8c65Pyh7PrzodXHtJuEXFu5yf6JbvYaL8rz7v28zapwbuzZzr7z4UvR",
"ex_priv": "tprv8hi9XJvkuKfu6oRGUsAnPAnQNUKcEjwrLbS2w2hTSPKrFj5YYS3Ax7UDDrZZHd4PSnPLW5whNxAXTW5bBrSNiSD1LUeg9n4j5sdGRJsZZwP",
},
"addresses": [
"mkpZhYtJu2r87Js3pDiWJDmPte2NRZ8bJV",
"mzpbWabUQm1w8ijuJnAof5eiSTep27deVH",
"mnTkxhNkgx7TsZrEdRcPti564yQTzynGJp",
"mpW3iVi2Td1vqDK8Nfie29ddZXf9spmZkX",
"n2BMo5arHDyAK2CM8c56eoEd18uEkKnRLC",
],
},
# Bitcoin test net
{
"coin": Bip44Coins.BITCOIN_TESTNET,
Expand Down Expand Up @@ -2597,6 +2621,12 @@
# Test nets
#

# Bitcoin regtest
{
"coin": Bip44Coins.BITCOIN_REGTEST,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"default_address": "mkpZhYtJu2r87Js3pDiWJDmPte2NRZ8bJV",
},
# Bitcoin test net
{
"coin": Bip44Coins.BITCOIN_TESTNET,
Expand Down
30 changes: 30 additions & 0 deletions tests/bip/bip49/test_bip49.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,30 @@
],
},

# Bitcoin regtest
{
"coin": Bip49Coins.BITCOIN_REGTEST,
"names": ("Bitcoin RegTest", "BTC"),
"is_testnet": True,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"ex_master": "uprv8tXDerPXZ1QsVNjUJWTurs9kA1KGfKUAts74GCkcXtU8GwnH33GDRbNJpEqTvipfCyycARtQJhmdfWf8oKt41X9LL1zeD2pLsWmxEk3VAwd",
"wif_master": "cNPn53CWHSMt3MMr3HrymFzxaeDwZrZF2yAEZJ7knzAFD3GTTi2x",
"account": {
"ex_pub": "upub5EFU65HtV5TeiSHmZZm7FUffBGy8UKeqp7vw43jYbvZPpoVsgU93oac7Wk3u6moKegAEWtGNF8DehrnHtv21XXEMYRUocHqguyjknFHYfgY",
"ex_priv": "uprv91G7gZkzehuMVxDJTYE6tLivdF8e4rvzSu1LFfKw3b2Qx1Aj8vpoFnHdfUZ3hmi9jsvPifmZ24RTN2KhwB8BfMLTVqaBReibyaFFcTP1s9n",
},
"chain_ext": {
"ex_pub": "upub5F7X3ZAt1HsUyFLTFU9vhKeGULy77aDoJFhscvGBV91tm2mzQ5egFGpeP4nGskwERwbU48g14qREqXJ388X8XBiaLm7PWwk3S45Fe3WAvdK",
"ex_priv": "uprv928Ae3dzAvKBkmFz9ScvLBhXvK8ci7Vww2nGpXrZvoUutESqrYLRhUWAXpK5acXh517npKuCpJ7NXaoWnLs1dLB9w3MHe3KNUm7hPENqMzt",
},
"addresses": [
"2Mww8dCYPUpKHofjgcXcBCEGmniw9CoaiD2",
"2N55m54k8vr95ggehfUcNkdbUuQvaqG2GxK",
"2N9LKph9TKtv1WLDfaUJp4D8EKwsyASYnGX",
"2MyVXDzGJgATSdkhKHWvStpBoGEZb1fwjha",
"2MuKeQzUHhUQWUZgx5AuNWoQ7YWx6vsXxrv",
],
},
# Bitcoin test net
{
"coin": Bip49Coins.BITCOIN_TESTNET,
Expand Down Expand Up @@ -608,6 +632,12 @@
"default_address": "t3WrebyH3US8WvEdS9yNEWJZGApy3beYdeL",
},

# Bitcoin regtest
{
"coin": Bip49Coins.BITCOIN_REGTEST,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"default_address": "2Mww8dCYPUpKHofjgcXcBCEGmniw9CoaiD2",
},
# Bitcoin test net
{
"coin": Bip49Coins.BITCOIN_TESTNET,
Expand Down
30 changes: 30 additions & 0 deletions tests/bip/bip84/test_bip84.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,30 @@
],
},

# Bitcoin regtest
{
"coin": Bip84Coins.BITCOIN_REGTEST,
"names": ("Bitcoin RegTest", "BTC"),
"is_testnet": True,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"ex_master": "vprv9DMUxX4ShgxMLfvb8sFY4xFFKyTibwTfoydH3beVutr1L3bWHhRn3f2SqSo3vdUacd6QuuUxmN8BYoGhX2J4okpwCMh4nwdq9EqbdGgioRF",
"wif_master": "cNPn53CWHSMt3MMr3HrymFzxaeDwZrZF2yAEZJ7knzAFD3GTTi2x",
"account": {
"ex_pub": "vpub5Y6cjg78GGuNLsaPhmYsiw4gYX3HoQiRBiSwDaBXKUafCt9bNwWQiitDk5VZ5BVxYnQdwoTyXSs2JHRPAgjAvtbBrf8ZhDYe2jWAqvZVnsc",
"ex_priv": "vprv9K7GLAaERuM58PVvbk1sMo7wzVCoPwzZpVXLRBmum93gL5pSqQCAAvZjtmz93nnnYMr9i2FwG2fqrwYLRgJmDDwFjGiamGsbRMJ5Y6siJ8H",
},
"chain_ext": {
"ex_pub": "vpub5baxyhXRwCQ1N4KuQfdVSfnYahk6HDRCqDhQJjgSbxo8SzP5ghgHugxZuQ9TpfGC2oTBYdVi8thxMGhqjcVbNPMBNRKMX9x1PZW4LXNyq7q",
"ex_priv": "vprv9NbcaBzY6pqi9aFSJe6V5Xqp2fubskhMTzmoWMGq3dG9aC3w9AN3Mte646s59AnZaiAgg2rAgxPYusyEMm2YADoaa5nRaGoExuVVZGc7HCC",
},
"addresses": [
"bcrt1q6rz28mcfaxtmd6v789l9rrlrusdprr9pz3cppk",
"bcrt1qd7spv5q28348xl4myc8zmh983w5jx32cs707jh",
"bcrt1qxdyjf6h5d6qxap4n2dap97q4j5ps6ua8jkxz0z",
"bcrt1qynpgs6wap6h9uvy7j0xlesew2w82qn039tzepj",
"bcrt1q677973lw0w796gttpy52f296jqaaksz0kadvlr",
],
},
# Bitcoin test net
{
"coin": Bip84Coins.BITCOIN_TESTNET,
Expand Down Expand Up @@ -142,6 +166,12 @@
"default_address": "ltc1qjmxnz78nmc8nq77wuxh25n2es7rzm5c2rkk4wh",
},

# Bitcoin regtest
{
"coin": Bip84Coins.BITCOIN_REGTEST,
"seed": b"5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4",
"default_address": "bcrt1q6rz28mcfaxtmd6v789l9rrlrusdprr9pz3cppk",
},
# Bitcoin test net
{
"coin": Bip84Coins.BITCOIN_TESTNET,
Expand Down
Loading

0 comments on commit 943a15d

Please sign in to comment.