Skip to content

Commit acc8a87

Browse files
committed
chore(common): add BTC signet definition
[no changelog]
1 parent b4b7f5c commit acc8a87

10 files changed

Lines changed: 263 additions & 7 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"coin_name": "Signet",
3+
"coin_shortcut": "SIGNET",
4+
"coin_label": "Signet",
5+
"website": "https://bitcoin.org",
6+
"github": "https://github.com/bitcoin/bitcoin",
7+
"maintainer": "Roman Zeyde <roman.zeyde@satoshilabs.com>",
8+
"curve_name": "secp256k1",
9+
"decimals": 8,
10+
"address_type": 111,
11+
"address_type_p2sh": 196,
12+
"maxfee_kb": 10000000,
13+
"minfee_kb": 1000,
14+
"signed_message_header": "Bitcoin Signed Message:\n",
15+
"hash_genesis_block": "00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6",
16+
"xprv_magic": 70615956,
17+
"xpub_magic": 70617039,
18+
"xpub_magic_segwit_p2sh": 71979618,
19+
"xpub_magic_segwit_native": 73342198,
20+
"xpub_magic_multisig_segwit_p2sh": 37915119,
21+
"xpub_magic_multisig_segwit_native": 39277699,
22+
"bech32_prefix": "tb",
23+
"cashaddr_prefix": null,
24+
"slip44": 1,
25+
"segwit": true,
26+
"taproot": true,
27+
"decred": false,
28+
"fork_id": null,
29+
"force_bip143": false,
30+
"default_fee_b": {
31+
"Normal": 10
32+
},
33+
"dust_limit": 546,
34+
"blocktime_seconds": 600,
35+
"uri_prefix": "bitcoin",
36+
"min_address_length": 27,
37+
"max_address_length": 34,
38+
"negative_fee": false,
39+
"cooldown": 100,
40+
"overwintered": false,
41+
"extra_data": false,
42+
"timestamp": false,
43+
"confidential_assets": null
44+
}
3.56 KB
Loading

common/defs/support.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"bitcoin:REGTEST": "1.8.2",
3131
"bitcoin:RITO": "1.8.2",
3232
"bitcoin:RVN": "1.7.2",
33+
"bitcoin:SIGNET": "1.14.2",
3334
"bitcoin:SMART": "1.7.1",
3435
"bitcoin:SYS": "1.8.4",
3536
"bitcoin:TAZ": "1.8.1",
@@ -145,6 +146,7 @@
145146
"bitcoin:REGTEST": "2.6.1",
146147
"bitcoin:RITO": "2.6.1",
147148
"bitcoin:RVN": "2.6.1",
149+
"bitcoin:SIGNET": "2.12.1",
148150
"bitcoin:SMART": "2.6.1",
149151
"bitcoin:SYS": "2.6.1",
150152
"bitcoin:TAZ": "2.6.1",
@@ -270,6 +272,7 @@
270272
"bitcoin:REGTEST": "2.1.1",
271273
"bitcoin:RITO": "2.1.1",
272274
"bitcoin:RVN": "2.0.10",
275+
"bitcoin:SIGNET": "2.12.1",
273276
"bitcoin:SMART": "2.0.8",
274277
"bitcoin:SYS": "2.1.8",
275278
"bitcoin:TAZ": "2.1.1",
@@ -385,6 +388,7 @@
385388
"bitcoin:REGTEST": "2.8.1",
386389
"bitcoin:RITO": "2.8.1",
387390
"bitcoin:RVN": "2.8.1",
391+
"bitcoin:SIGNET": "2.12.1",
388392
"bitcoin:SMART": "2.8.1",
389393
"bitcoin:SYS": "2.8.1",
390394
"bitcoin:TAZ": "2.8.1",
@@ -505,6 +509,7 @@
505509
"bitcoin:REGTEST": "2.6.1",
506510
"bitcoin:RITO": "2.6.1",
507511
"bitcoin:RVN": "2.6.1",
512+
"bitcoin:SIGNET": "2.12.1",
508513
"bitcoin:SMART": "2.6.1",
509514
"bitcoin:SYS": "2.6.1",
510515
"bitcoin:TAZ": "2.6.1",
@@ -625,6 +630,7 @@
625630
"bitcoin:REGTEST": "2.6.1",
626631
"bitcoin:RITO": "2.6.1",
627632
"bitcoin:RVN": "2.6.1",
633+
"bitcoin:SIGNET": "2.12.1",
628634
"bitcoin:SMART": "2.6.1",
629635
"bitcoin:SYS": "2.6.1",
630636
"bitcoin:TAZ": "2.6.1",
@@ -746,6 +752,7 @@
746752
"bitcoin:REGTEST": "2.6.1",
747753
"bitcoin:RITO": "2.6.1",
748754
"bitcoin:RVN": "2.6.1",
755+
"bitcoin:SIGNET": "2.12.1",
749756
"bitcoin:SMART": "2.6.1",
750757
"bitcoin:SYS": "2.6.1",
751758
"bitcoin:TAZ": "2.6.1",
@@ -867,6 +874,7 @@
867874
"bitcoin:REGTEST": "2.6.1",
868875
"bitcoin:RITO": "2.6.1",
869876
"bitcoin:RVN": "2.6.1",
877+
"bitcoin:SIGNET": "2.12.1",
870878
"bitcoin:SMART": "2.6.1",
871879
"bitcoin:SYS": "2.6.1",
872880
"bitcoin:TAZ": "2.6.1",

common/tools/coin_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def load_json(*path: str | Path) -> Any:
131131

132132

133133
def get_btc_testnet_status(name: str) -> bool:
134-
return any((mark in name.lower()) for mark in ("testnet", "regtest"))
134+
return any((mark in name.lower()) for mark in ("testnet", "regtest", "signet"))
135135

136136

137137
# ====== CoinsInfo ======
@@ -583,7 +583,7 @@ def fill_blockchain_links(all_coins: CoinsInfo) -> None:
583583

584584

585585
def _btc_sort_key(coin: Coin) -> str:
586-
if coin["name"] in ("Bitcoin", "Testnet", "Regtest"):
586+
if coin["name"] in ("Bitcoin", "Testnet", "Regtest", "Signet"):
587587
return "000000" + coin["name"]
588588
else:
589589
return coin["name"]

common/tools/cointool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ def render(
899899
defs["bitcoin"] = [
900900
x
901901
for x in defs["bitcoin"]
902-
if x["coin_name"] in ("Bitcoin", "Testnet", "Regtest")
902+
if x["coin_name"] in ("Bitcoin", "Testnet", "Regtest", "Signet")
903903
]
904904

905905
# munch dicts - make them attribute-accessible

common/tools/maxfee.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
DEFAULT_SKIP_RE = (
1818
r"^Bitcoin$",
1919
r"^Regtest$",
20+
r"^Signet$",
2021
r"Testnet",
2122
)
2223
MAX_DELTA_PERCENT = 25

core/src/apps/bitcoin/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
IntEnum = object
2222

2323

24-
BITCOIN_NAMES = ("Bitcoin", "Regtest", "Testnet")
24+
BITCOIN_NAMES = ("Bitcoin", "Regtest", "Testnet", "Signet")
2525

2626

2727
class SigHashType(IntEnum):

0 commit comments

Comments
 (0)