1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-28 00:58:09 +00:00

feat(common): add taproot field to coin definitions

enable for Bitcoin Testnet and Bitcoin Regtest
This commit is contained in:
Pavol Rusnak 2021-07-17 18:01:54 +02:00 committed by Andrew Kozlik
parent 27dcef056f
commit ac4cb88184
67 changed files with 132 additions and 0 deletions

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 228,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 4242,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": "bitcoincash",
"slip44": 145,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": 0,
"force_bip143": true,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": "bchtest",
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": 0,
"force_bip143": true,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 25252,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 156,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": 79,
"force_bip143": true,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": 79,
"force_bip143": true,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 0,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": true,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": true,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 160,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 123,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 183,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": 42,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 10291,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 363,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 72,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 5,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 42,
"segwit": false,
"taproot": false,
"decred": true,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": true,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 20,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 3,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 8,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 136,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 216,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 75,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 101,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 17,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 141,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 510,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 2,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 22,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 31,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 7,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 400,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 44,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 6,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1997,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 24,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 2301,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 175,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 19169,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 224,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 199,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 57,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 83,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 92,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 77,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 28,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 14,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1919,
"segwit": true,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 133,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -23,6 +23,7 @@
"cashaddr_prefix": null,
"slip44": 428,
"segwit": false,
"taproot": false,
"decred": false,
"fork_id": null,
"force_bip143": false,

View File

@ -29,6 +29,7 @@ class CoinInfo:
cashaddr_prefix: str | None,
slip44: int,
segwit: bool,
taproot: bool,
fork_id: int | None,
force_bip143: bool,
decred: bool,
@ -55,6 +56,7 @@ class CoinInfo:
self.cashaddr_prefix = cashaddr_prefix
self.slip44 = slip44
self.segwit = segwit
self.taproot = taproot
self.fork_id = fork_id
self.force_bip143 = force_bip143
self.decred = decred
@ -109,6 +111,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=0,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -137,6 +140,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=True,
fork_id=None,
force_bip143=False,
decred=False,
@ -165,6 +169,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=True,
fork_id=None,
force_bip143=False,
decred=False,
@ -196,6 +201,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=228,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -224,6 +230,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=4242,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -252,6 +259,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=25252,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -280,6 +288,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=123,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -308,6 +317,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix="bitcoincash",
slip44=145,
segwit=False,
taproot=False,
fork_id=0,
force_bip143=True,
decred=False,
@ -336,6 +346,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix="bchtest",
slip44=1,
segwit=False,
taproot=False,
fork_id=0,
force_bip143=True,
decred=False,
@ -364,6 +375,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=156,
segwit=True,
taproot=False,
fork_id=79,
force_bip143=True,
decred=False,
@ -392,6 +404,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=79,
force_bip143=True,
decred=False,
@ -420,6 +433,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=183,
segwit=False,
taproot=False,
fork_id=42,
force_bip143=False,
decred=False,
@ -448,6 +462,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=10291,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -476,6 +491,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=160,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -504,6 +520,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=363,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -532,6 +549,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=72,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -560,6 +578,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=5,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -588,6 +607,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -616,6 +636,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=42,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=True,
@ -644,6 +665,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=True,
@ -672,6 +694,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=20,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -700,6 +723,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=3,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -728,6 +752,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -756,6 +781,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=8,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -784,6 +810,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=136,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -812,6 +839,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -840,6 +868,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=216,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -868,6 +897,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=75,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -896,6 +926,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=101,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -924,6 +955,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=17,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -952,6 +984,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -980,6 +1013,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=141,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1008,6 +1042,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=510,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1036,6 +1071,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=2,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1064,6 +1100,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1092,6 +1129,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=22,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1120,6 +1158,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=31,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1148,6 +1187,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=400,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1176,6 +1216,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=7,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1204,6 +1245,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=44,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1232,6 +1274,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1260,6 +1303,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=6,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1288,6 +1332,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1316,6 +1361,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1997,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1344,6 +1390,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=24,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1372,6 +1419,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=2301,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1400,6 +1448,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1428,6 +1477,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=175,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1456,6 +1506,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1484,6 +1535,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=19169,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1512,6 +1564,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=224,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1540,6 +1593,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1568,6 +1622,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=199,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1596,6 +1651,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=57,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1624,6 +1680,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=92,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1652,6 +1709,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1919,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1680,6 +1738,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=77,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1708,6 +1767,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=28,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1736,6 +1796,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=14,
segwit=True,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1764,6 +1825,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=428,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1792,6 +1854,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=133,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,
@ -1820,6 +1883,7 @@ def by_name(name: str) -> CoinInfo:
cashaddr_prefix=None,
slip44=1,
segwit=False,
taproot=False,
fork_id=None,
force_bip143=False,
decred=False,

View File

@ -29,6 +29,7 @@ class CoinInfo:
cashaddr_prefix: str | None,
slip44: int,
segwit: bool,
taproot: bool,
fork_id: int | None,
force_bip143: bool,
decred: bool,
@ -55,6 +56,7 @@ class CoinInfo:
self.cashaddr_prefix = cashaddr_prefix
self.slip44 = slip44
self.segwit = segwit
self.taproot = taproot
self.fork_id = fork_id
self.force_bip143 = force_bip143
self.decred = decred
@ -117,6 +119,7 @@ ATTRIBUTES = (
("cashaddr_prefix", black_repr),
("slip44", int),
("segwit", bool),
("taproot", bool),
("fork_id", black_repr),
("force_bip143", bool),
("decred", bool),

View File

@ -30,6 +30,7 @@ const CoinInfo coins[COINS_COUNT] = {
.maxfee_kb = ${c_int(c.maxfee_kb)},
.signed_message_header = ${signed_message_header(c.signed_message_header)},
.has_segwit = ${c_bool(c.segwit)},
.has_taproot = ${c_bool(c.taproot)},
.has_fork_id = ${defined(c.fork_id)},
.force_bip143 = ${c_bool(c.force_bip143)},
.decred = ${c_bool(c.decred)},

View File

@ -33,6 +33,7 @@ typedef struct _CoinInfo {
const char *signed_message_header;
uint32_t decimals;
bool has_segwit;
bool has_taproot;
bool has_fork_id;
bool force_bip143;
bool decred;