2018-08-22 11:48:32 +00:00
|
|
|
# generated from coininfo.py.mako
|
2022-04-28 10:22:53 +00:00
|
|
|
# (by running `make templates` in `core`)
|
2018-08-22 11:48:32 +00:00
|
|
|
# do not edit manually!
|
2021-12-08 09:10:58 +00:00
|
|
|
from typing import Any
|
|
|
|
|
2019-08-22 18:15:16 +00:00
|
|
|
from trezor import utils
|
2018-10-14 14:08:37 +00:00
|
|
|
from trezor.crypto.base58 import blake256d_32, groestl512d_32, keccak_32, sha256d_32
|
2021-03-19 20:26:52 +00:00
|
|
|
from trezor.crypto.scripts import blake256_ripemd160, sha256_ripemd160
|
2018-07-01 16:47:43 +00:00
|
|
|
|
2019-05-22 12:55:32 +00:00
|
|
|
# flake8: noqa
|
|
|
|
|
2018-05-28 10:18:54 +00:00
|
|
|
|
2018-07-03 14:20:58 +00:00
|
|
|
class CoinInfo:
|
2018-05-28 10:18:54 +00:00
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
coin_name: str,
|
|
|
|
coin_shortcut: str,
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals: int,
|
2018-05-28 10:18:54 +00:00
|
|
|
address_type: int,
|
|
|
|
address_type_p2sh: int,
|
|
|
|
maxfee_kb: int,
|
|
|
|
signed_message_header: str,
|
|
|
|
xpub_magic: int,
|
2021-03-18 09:48:50 +00:00
|
|
|
xpub_magic_segwit_p2sh: int | None,
|
|
|
|
xpub_magic_segwit_native: int | None,
|
|
|
|
xpub_magic_multisig_segwit_p2sh: int | None,
|
|
|
|
xpub_magic_multisig_segwit_native: int | None,
|
|
|
|
bech32_prefix: str | None,
|
|
|
|
cashaddr_prefix: str | None,
|
2018-06-21 11:58:57 +00:00
|
|
|
slip44: int,
|
2018-05-28 10:18:54 +00:00
|
|
|
segwit: bool,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot: bool,
|
2021-03-18 09:48:50 +00:00
|
|
|
fork_id: int | None,
|
2018-06-05 09:11:21 +00:00
|
|
|
force_bip143: bool,
|
2018-09-21 10:52:32 +00:00
|
|
|
decred: bool,
|
2019-08-09 14:01:28 +00:00
|
|
|
negative_fee: bool,
|
2018-07-01 10:53:30 +00:00
|
|
|
curve_name: str,
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data: bool,
|
|
|
|
timestamp: bool,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered: bool,
|
2021-03-18 09:48:50 +00:00
|
|
|
confidential_assets: dict[str, Any] | None,
|
2020-09-14 11:33:17 +00:00
|
|
|
) -> None:
|
2018-05-28 10:18:54 +00:00
|
|
|
self.coin_name = coin_name
|
|
|
|
self.coin_shortcut = coin_shortcut
|
2019-12-09 16:43:30 +00:00
|
|
|
self.decimals = decimals
|
2018-05-28 10:18:54 +00:00
|
|
|
self.address_type = address_type
|
|
|
|
self.address_type_p2sh = address_type_p2sh
|
|
|
|
self.maxfee_kb = maxfee_kb
|
|
|
|
self.signed_message_header = signed_message_header
|
|
|
|
self.xpub_magic = xpub_magic
|
2018-09-05 13:42:31 +00:00
|
|
|
self.xpub_magic_segwit_p2sh = xpub_magic_segwit_p2sh
|
|
|
|
self.xpub_magic_segwit_native = xpub_magic_segwit_native
|
2021-01-13 21:58:07 +00:00
|
|
|
self.xpub_magic_multisig_segwit_p2sh = xpub_magic_multisig_segwit_p2sh
|
|
|
|
self.xpub_magic_multisig_segwit_native = xpub_magic_multisig_segwit_native
|
2018-05-28 10:18:54 +00:00
|
|
|
self.bech32_prefix = bech32_prefix
|
|
|
|
self.cashaddr_prefix = cashaddr_prefix
|
2018-06-21 11:58:57 +00:00
|
|
|
self.slip44 = slip44
|
2018-05-28 10:18:54 +00:00
|
|
|
self.segwit = segwit
|
2021-07-17 16:01:54 +00:00
|
|
|
self.taproot = taproot
|
2018-05-28 15:43:29 +00:00
|
|
|
self.fork_id = fork_id
|
2018-05-28 10:18:54 +00:00
|
|
|
self.force_bip143 = force_bip143
|
2018-09-21 10:52:32 +00:00
|
|
|
self.decred = decred
|
2019-08-09 14:01:28 +00:00
|
|
|
self.negative_fee = negative_fee
|
2018-07-01 10:53:30 +00:00
|
|
|
self.curve_name = curve_name
|
2020-03-09 21:23:27 +00:00
|
|
|
self.extra_data = extra_data
|
|
|
|
self.timestamp = timestamp
|
2020-03-12 14:13:08 +00:00
|
|
|
self.overwintered = overwintered
|
2019-08-12 10:52:20 +00:00
|
|
|
self.confidential_assets = confidential_assets
|
2018-07-03 14:20:58 +00:00
|
|
|
if curve_name == "secp256k1-groestl":
|
2018-07-01 16:47:43 +00:00
|
|
|
self.b58_hash = groestl512d_32
|
2018-07-01 14:22:52 +00:00
|
|
|
self.sign_hash_double = False
|
2022-01-17 17:31:17 +00:00
|
|
|
self.script_hash: type[utils.HashContextInitable] = sha256_ripemd160
|
2018-10-08 12:34:51 +00:00
|
|
|
elif curve_name == "secp256k1-decred":
|
2018-10-14 14:08:37 +00:00
|
|
|
self.b58_hash = blake256d_32
|
2018-10-08 12:34:51 +00:00
|
|
|
self.sign_hash_double = False
|
2021-03-19 20:26:52 +00:00
|
|
|
self.script_hash = blake256_ripemd160
|
2018-10-13 02:13:18 +00:00
|
|
|
elif curve_name == "secp256k1-smart":
|
2018-10-14 14:08:37 +00:00
|
|
|
self.b58_hash = keccak_32
|
2018-10-13 02:13:18 +00:00
|
|
|
self.sign_hash_double = False
|
2021-03-19 20:26:52 +00:00
|
|
|
self.script_hash = sha256_ripemd160
|
2018-07-01 14:22:52 +00:00
|
|
|
else:
|
2018-07-01 16:47:43 +00:00
|
|
|
self.b58_hash = sha256d_32
|
2018-07-01 14:22:52 +00:00
|
|
|
self.sign_hash_double = True
|
2021-03-19 20:26:52 +00:00
|
|
|
self.script_hash = sha256_ripemd160
|
2018-05-28 10:18:54 +00:00
|
|
|
|
2020-09-14 11:33:17 +00:00
|
|
|
def __eq__(self, other: Any) -> bool:
|
2019-05-22 14:59:06 +00:00
|
|
|
if not isinstance(other, CoinInfo):
|
|
|
|
return NotImplemented
|
|
|
|
return self.coin_name == other.coin_name
|
|
|
|
|
2018-05-28 10:18:54 +00:00
|
|
|
|
2018-07-03 12:28:17 +00:00
|
|
|
# fmt: off
|
2019-05-22 12:55:32 +00:00
|
|
|
def by_name(name: str) -> CoinInfo:
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bitcoin":
|
2019-05-22 12:55:32 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="BTC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-05-22 12:55:32 +00:00
|
|
|
address_type=0,
|
|
|
|
address_type_p2sh=5,
|
|
|
|
maxfee_kb=2000000,
|
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0295b43f,
|
|
|
|
xpub_magic_multisig_segwit_native=0x02aa7ed3,
|
2019-05-22 12:55:32 +00:00
|
|
|
bech32_prefix="bc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=0,
|
|
|
|
segwit=True,
|
2021-08-11 12:06:42 +00:00
|
|
|
taproot=True,
|
2019-05-22 12:55:32 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
2019-08-09 14:01:28 +00:00
|
|
|
negative_fee=False,
|
2019-05-22 12:55:32 +00:00
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-12 10:52:20 +00:00
|
|
|
confidential_assets=None,
|
2019-05-22 12:55:32 +00:00
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Regtest":
|
2019-08-21 09:05:19 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="REGTEST",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-21 09:05:19 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x024289ef,
|
|
|
|
xpub_magic_multisig_segwit_native=0x02575483,
|
2019-08-21 09:05:19 +00:00
|
|
|
bech32_prefix="bcrt",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=True,
|
2019-08-21 09:05:19 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-21 09:05:19 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Testnet":
|
2019-05-22 12:55:32 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="TEST",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-05-22 12:55:32 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x024289ef,
|
|
|
|
xpub_magic_multisig_segwit_native=0x02575483,
|
2019-05-22 12:55:32 +00:00
|
|
|
bech32_prefix="tb",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=True,
|
2019-05-22 12:55:32 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
2019-08-09 14:01:28 +00:00
|
|
|
negative_fee=False,
|
2019-05-22 12:55:32 +00:00
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-12 10:52:20 +00:00
|
|
|
confidential_assets=None,
|
2019-05-22 12:55:32 +00:00
|
|
|
)
|
2019-08-22 18:15:16 +00:00
|
|
|
if not utils.BITCOIN_ONLY:
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Actinium":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="ACM",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=53,
|
|
|
|
address_type_p2sh=55,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=320000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Actinium Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="acm",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=228,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Axe":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="AXE",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=55,
|
|
|
|
address_type_p2sh=16,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=21000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="DarkCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x02fe52cc,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=4242,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bcash":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="BCH",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=0,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=14000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix="bitcoincash",
|
|
|
|
slip44=145,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=0,
|
|
|
|
force_bip143=True,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bcash Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="TBCH",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix="bchtest",
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=0,
|
|
|
|
force_bip143=True,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bgold":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="BTG",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=38,
|
|
|
|
address_type_p2sh=23,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=380000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Bitcoin Gold Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="btg",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=156,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=79,
|
|
|
|
force_bip143=True,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bgold Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="TBTG",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=500000,
|
|
|
|
signed_message_header="Bitcoin Gold Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="tbtg",
|
|
|
|
cashaddr_prefix=None,
|
2021-06-24 09:11:01 +00:00
|
|
|
slip44=1,
|
2019-08-22 18:15:16 +00:00
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=79,
|
|
|
|
force_bip143=True,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bprivate":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="BTCP",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=4901,
|
|
|
|
address_type_p2sh=5039,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=32000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="BitcoinPrivate Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=183,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=42,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Bitcore":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="BTX",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=3,
|
|
|
|
address_type_p2sh=125,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=14000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="BitCore Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="btx",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=160,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "CPUchain":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="CPU",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=28,
|
|
|
|
address_type_p2sh=30,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=8700000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="CPUchain Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="cpu",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=363,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
2019-10-07 12:39:37 +00:00
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-10-07 12:39:37 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Crown":
|
2019-10-07 12:39:37 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="CRW",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-10-07 12:39:37 +00:00
|
|
|
address_type=95495,
|
|
|
|
address_type_p2sh=95473,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=52000000000,
|
2019-10-07 12:39:37 +00:00
|
|
|
signed_message_header="Crown Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-10-07 12:39:37 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=72,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-10-07 12:39:37 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Dash":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="DASH",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=76,
|
|
|
|
address_type_p2sh=16,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=45000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="DarkCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x02fe52cc,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=5,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Dash Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tDASH",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=140,
|
|
|
|
address_type_p2sh=19,
|
|
|
|
maxfee_kb=100000,
|
|
|
|
signed_message_header="DarkCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Decred":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="DCR",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=1855,
|
|
|
|
address_type_p2sh=1818,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=220000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Decred Signed Message:\n",
|
|
|
|
xpub_magic=0x02fda926,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=42,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=True,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-decred',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Decred Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="TDCR",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=3873,
|
|
|
|
address_type_p2sh=3836,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Decred Signed Message:\n",
|
|
|
|
xpub_magic=0x043587d1,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=True,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-decred',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "DigiByte":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="DGB",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=30,
|
|
|
|
address_type_p2sh=63,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=130000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="DigiByte Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="dgb",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=20,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Dogecoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="DOGE",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=30,
|
|
|
|
address_type_p2sh=22,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=1200000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Dogecoin Signed Message:\n",
|
|
|
|
xpub_magic=0x02facafd,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=3,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Elements":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="ELEMENTS",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=235,
|
|
|
|
address_type_p2sh=75,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Bitcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="ert",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets={'address_prefix': 4, 'blech32_prefix': 'el'},
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Feathercoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="FTC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=14,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=390000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Feathercoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488bc26,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488bc26,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488bc26,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="fc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=8,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Firo":
|
2021-08-20 14:19:34 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="FIRO",
|
|
|
|
decimals=8,
|
|
|
|
address_type=82,
|
|
|
|
address_type_p2sh=7,
|
|
|
|
maxfee_kb=640000000,
|
|
|
|
signed_message_header="Zcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=136,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2021-08-20 14:19:34 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
|
|
|
overwintered=False,
|
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Firo Testnet":
|
2021-08-20 14:19:34 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tFIRO",
|
|
|
|
decimals=8,
|
|
|
|
address_type=65,
|
|
|
|
address_type_p2sh=178,
|
|
|
|
maxfee_kb=1000000,
|
|
|
|
signed_message_header="Zcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2021-08-20 14:19:34 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
|
|
|
overwintered=False,
|
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Florincoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="FLO",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=35,
|
|
|
|
address_type_p2sh=94,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=78000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Florincoin Signed Message:\n",
|
|
|
|
xpub_magic=0x00174921,
|
|
|
|
xpub_magic_segwit_p2sh=0x01b26ef6,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x00174921,
|
|
|
|
xpub_magic_multisig_segwit_native=0x00174921,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="flo",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=216,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-08-24 09:05:51 +00:00
|
|
|
extra_data=True,
|
2020-03-09 21:23:27 +00:00
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Fujicoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="FJC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=36,
|
|
|
|
address_type_p2sh=16,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=35000000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="FujiCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2022-01-05 11:43:34 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0295b43f,
|
|
|
|
xpub_magic_multisig_segwit_native=0x02aa7ed3,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="fc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=75,
|
|
|
|
segwit=True,
|
2022-01-05 11:43:34 +00:00
|
|
|
taproot=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Groestlcoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="GRS",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=36,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=16000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="GroestlCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="grs",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=17,
|
|
|
|
segwit=True,
|
2021-12-20 14:52:33 +00:00
|
|
|
taproot=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-groestl',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Groestlcoin Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tGRS",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=100000,
|
|
|
|
signed_message_header="GroestlCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="tgrs",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-12-20 14:52:33 +00:00
|
|
|
taproot=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-groestl',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Komodo":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="KMD",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=60,
|
|
|
|
address_type_p2sh=85,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=4800000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Komodo Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=141,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=True,
|
|
|
|
curve_name='secp256k1',
|
2020-03-27 11:39:34 +00:00
|
|
|
extra_data=True,
|
2020-03-09 21:23:27 +00:00
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Koto":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="KOTO",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=6198,
|
|
|
|
address_type_p2sh=6203,
|
|
|
|
maxfee_kb=1000000,
|
|
|
|
signed_message_header="Koto Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=510,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-05-25 14:14:05 +00:00
|
|
|
extra_data=True,
|
2020-03-09 21:23:27 +00:00
|
|
|
timestamp=False,
|
2020-05-25 14:14:05 +00:00
|
|
|
overwintered=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Litecoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="LTC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=48,
|
|
|
|
address_type_p2sh=50,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=67000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Litecoin Signed Message:\n",
|
|
|
|
xpub_magic=0x019da462,
|
|
|
|
xpub_magic_segwit_p2sh=0x01b26ef6,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x019da462,
|
|
|
|
xpub_magic_multisig_segwit_native=0x019da462,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="ltc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=2,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Litecoin Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tLTC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=58,
|
|
|
|
maxfee_kb=40000000,
|
|
|
|
signed_message_header="Litecoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="tltc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Monacoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="MONA",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=50,
|
|
|
|
address_type_p2sh=55,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=2100000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Monacoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="mona",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=22,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "MonetaryUnit":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="MUE",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=16,
|
|
|
|
address_type_p2sh=76,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=600000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="MonetaryUnit Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=31,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Namecoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="NMC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=52,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=8700000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Namecoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=7,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Peercoin":
|
2019-12-05 03:32:13 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="PPC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=6,
|
2019-12-05 03:32:13 +00:00
|
|
|
address_type=55,
|
|
|
|
address_type_p2sh=117,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=13000000000,
|
2019-12-05 03:32:13 +00:00
|
|
|
signed_message_header="Peercoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-12-05 03:32:13 +00:00
|
|
|
bech32_prefix="pc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=6,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-12-05 03:32:13 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=True,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-12-05 03:32:13 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Peercoin Testnet":
|
2019-12-05 03:32:13 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tPPC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=6,
|
2019-12-05 03:32:13 +00:00
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=2000000,
|
|
|
|
signed_message_header="Peercoin Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-12-05 03:32:13 +00:00
|
|
|
bech32_prefix="tpc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-12-05 03:32:13 +00:00
|
|
|
fork_id=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=True,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Primecoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="XPM",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=23,
|
|
|
|
address_type_p2sh=83,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=89000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Primecoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=24,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Qtum":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="QTUM",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=58,
|
|
|
|
address_type_p2sh=50,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=1000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Qtum Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="qc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=2301,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Qtum Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tQTUM",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=120,
|
|
|
|
address_type_p2sh=110,
|
|
|
|
maxfee_kb=40000000,
|
|
|
|
signed_message_header="Qtum Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=0x044a5262,
|
|
|
|
xpub_magic_segwit_native=0x045f1cf6,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x043587cf,
|
|
|
|
xpub_magic_multisig_segwit_native=0x043587cf,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="tq",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Ravencoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="RVN",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=60,
|
|
|
|
address_type_p2sh=122,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=170000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Raven Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=175,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Ravencoin Testnet":
|
2021-04-08 12:17:43 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tRVN",
|
|
|
|
decimals=8,
|
|
|
|
address_type=111,
|
|
|
|
address_type_p2sh=196,
|
|
|
|
maxfee_kb=170000000000,
|
|
|
|
signed_message_header="Raven Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2021-04-08 12:17:43 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
|
|
|
overwintered=False,
|
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Ritocoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="RITO",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=25,
|
|
|
|
address_type_p2sh=105,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=39000000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Rito Signed Message:\n",
|
|
|
|
xpub_magic=0x0534e7ca,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=19169,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "SmartCash":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="SMART",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=63,
|
|
|
|
address_type_p2sh=18,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=780000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="SmartCash Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=224,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-smart',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "SmartCash Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="tSMART",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=65,
|
|
|
|
address_type_p2sh=21,
|
|
|
|
maxfee_kb=1000000,
|
|
|
|
signed_message_header="SmartCash Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
2021-06-24 09:11:01 +00:00
|
|
|
slip44=1,
|
2019-08-22 18:15:16 +00:00
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1-smart',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Stakenet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="XSN",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=76,
|
|
|
|
address_type_p2sh=16,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=11000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="DarkCoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="xc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=199,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-08-20 18:40:30 +00:00
|
|
|
extra_data=True,
|
2020-03-09 21:23:27 +00:00
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
2019-10-22 09:03:32 +00:00
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Syscoin":
|
2019-10-22 09:03:32 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="SYS",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-10-22 09:03:32 +00:00
|
|
|
address_type=63,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=42000000000,
|
2019-10-22 09:03:32 +00:00
|
|
|
signed_message_header="Syscoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-10-22 09:03:32 +00:00
|
|
|
bech32_prefix="sys",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=57,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-10-22 09:03:32 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-10-22 09:03:32 +00:00
|
|
|
confidential_assets=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Unobtanium":
|
2019-09-01 07:47:58 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="UNO",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-09-01 07:47:58 +00:00
|
|
|
address_type=130,
|
|
|
|
address_type_p2sh=30,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=53000000,
|
2019-09-01 07:47:58 +00:00
|
|
|
signed_message_header="Unobtanium Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-09-01 07:47:58 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=92,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-09-01 07:47:58 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-09-01 07:47:58 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "VIPSTARCOIN":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="VIPS",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=70,
|
|
|
|
address_type_p2sh=50,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=140000000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="VIPSTARCOIN Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="vips",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1919,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Verge":
|
2020-08-05 11:55:36 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="XVG",
|
|
|
|
decimals=6,
|
|
|
|
address_type=30,
|
|
|
|
address_type_p2sh=33,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=550000000000,
|
2020-08-05 11:55:36 +00:00
|
|
|
signed_message_header="Name: Dogecoin Dark\n",
|
|
|
|
xpub_magic=0x022d2533,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2020-08-05 11:55:36 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=77,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2020-08-05 11:55:36 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
|
|
|
extra_data=False,
|
|
|
|
timestamp=True,
|
|
|
|
overwintered=False,
|
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Vertcoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="VTC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=71,
|
|
|
|
address_type_p2sh=5,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=13000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Vertcoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="vtc",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=28,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Viacoin":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="VIA",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=71,
|
|
|
|
address_type_p2sh=33,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=14000000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Viacoin Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=0x049d7cb2,
|
|
|
|
xpub_magic_segwit_native=0x04b24746,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=0x0488b21e,
|
|
|
|
xpub_magic_multisig_segwit_native=0x0488b21e,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix="via",
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=14,
|
|
|
|
segwit=True,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "ZCore":
|
2019-10-11 19:01:11 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="ZCR",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-10-11 19:01:11 +00:00
|
|
|
address_type=142,
|
|
|
|
address_type_p2sh=145,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=170000000000,
|
2019-10-31 23:18:03 +00:00
|
|
|
signed_message_header="DarkNet Signed Message:\n",
|
2019-10-11 19:01:11 +00:00
|
|
|
xpub_magic=0x04b24746,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-10-11 19:01:11 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=428,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-10-11 19:01:11 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=False,
|
2019-10-11 19:01:11 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Zcash":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="ZEC",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=7352,
|
|
|
|
address_type_p2sh=7357,
|
2020-08-24 22:30:23 +00:00
|
|
|
maxfee_kb=51000000,
|
2019-08-22 18:15:16 +00:00
|
|
|
signed_message_header="Zcash Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=133,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Zcash Testnet":
|
2019-08-22 18:15:16 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="TAZ",
|
2019-12-09 16:43:30 +00:00
|
|
|
decimals=8,
|
2019-08-22 18:15:16 +00:00
|
|
|
address_type=7461,
|
|
|
|
address_type_p2sh=7354,
|
|
|
|
maxfee_kb=10000000,
|
|
|
|
signed_message_header="Zcash Signed Message:\n",
|
|
|
|
xpub_magic=0x043587cf,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
2021-01-13 21:58:07 +00:00
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
2019-08-22 18:15:16 +00:00
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=1,
|
|
|
|
segwit=False,
|
2021-07-17 16:01:54 +00:00
|
|
|
taproot=False,
|
2019-08-22 18:15:16 +00:00
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
2020-03-09 21:23:27 +00:00
|
|
|
extra_data=True,
|
|
|
|
timestamp=False,
|
2020-03-12 14:13:08 +00:00
|
|
|
overwintered=True,
|
2019-08-22 18:15:16 +00:00
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-12-08 09:16:19 +00:00
|
|
|
if name == "Brhodium":
|
2021-10-26 08:58:14 +00:00
|
|
|
return CoinInfo(
|
|
|
|
coin_name=name,
|
|
|
|
coin_shortcut="XRC",
|
|
|
|
decimals=8,
|
|
|
|
address_type=61,
|
|
|
|
address_type_p2sh=123,
|
|
|
|
maxfee_kb=1000000000,
|
|
|
|
signed_message_header="BitCoin Rhodium Signed Message:\n",
|
|
|
|
xpub_magic=0x0488b21e,
|
|
|
|
xpub_magic_segwit_p2sh=None,
|
|
|
|
xpub_magic_segwit_native=None,
|
|
|
|
xpub_magic_multisig_segwit_p2sh=None,
|
|
|
|
xpub_magic_multisig_segwit_native=None,
|
|
|
|
bech32_prefix=None,
|
|
|
|
cashaddr_prefix=None,
|
|
|
|
slip44=10291,
|
|
|
|
segwit=False,
|
|
|
|
taproot=False,
|
|
|
|
fork_id=None,
|
|
|
|
force_bip143=False,
|
|
|
|
decred=False,
|
|
|
|
negative_fee=False,
|
|
|
|
curve_name='secp256k1',
|
|
|
|
extra_data=False,
|
|
|
|
timestamp=False,
|
|
|
|
overwintered=False,
|
|
|
|
confidential_assets=None,
|
|
|
|
)
|
2021-09-27 10:13:51 +00:00
|
|
|
raise ValueError # Unknown coin name
|