1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

drop obsoleted coins.json (use defs/coins/)

This commit is contained in:
Pavol Rusnak 2018-05-29 17:19:20 +02:00
parent a0d37a0371
commit 374283df51
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 0 additions and 617 deletions

View File

@ -16,10 +16,8 @@ install:
- pip install --no-deps trezor - pip install --no-deps trezor
script: script:
- jsonlint coins.json
- jsonlint coins_details.json - jsonlint coins_details.json
- jsonlint defs/support.json - jsonlint defs/support.json
- python coins-check.py
- cd defs/coins/tools && python build_coins.py - cd defs/coins/tools && python build_coins.py
notifications: notifications:

View File

@ -1,45 +0,0 @@
#!/usr/bin/env python3
import json
def is_hex(val):
try:
int(val, 16)
return True
except:
return False
for coin in json.load(open('coins.json')):
assert isinstance(coin['coin_name'], str)
assert isinstance(coin['coin_shortcut'], str)
assert isinstance(coin['coin_label'], str)
assert isinstance(coin['curve_name'], str)
assert isinstance(coin['address_type'], int)
assert isinstance(coin['address_type_p2sh'], int)
assert coin['address_type'] != coin['address_type_p2sh']
assert isinstance(coin['maxfee_kb'], int)
assert isinstance(coin['minfee_kb'], int)
assert coin['maxfee_kb'] > coin['minfee_kb']
assert coin['signed_message_header']
assert is_hex(coin['hash_genesis_block'])
assert is_hex(coin['xprv_magic'])
assert is_hex(coin['xpub_magic'])
assert isinstance(coin['bip44'], int)
assert isinstance(coin['segwit'], bool)
assert isinstance(coin['decred'], bool)
assert coin['forkid'] is None or isinstance(coin['forkid'], int)
assert isinstance(coin['force_bip143'], bool)
assert coin['version_group_id'] is None or is_hex(coin['version_group_id'])
assert isinstance(coin['default_fee_b'], dict)
assert isinstance(coin['dust_limit'], int)
assert isinstance(coin['blocktime_minutes'], int) or isinstance(coin['blocktime_minutes'], float)
assert coin['firmware'] is None or coin['firmware'] in ['stable', 'debug']
assert isinstance(coin['signed_message_header'], str)
assert isinstance(coin['min_address_length'], int)
assert isinstance(coin['max_address_length'], int)
assert isinstance(coin['bitcore'], list)
assert coin['xpub_magic_segwit_p2sh'] is None or is_hex(coin['xpub_magic_segwit_p2sh'])
assert coin['bech32_prefix'] is None or isinstance(coin['bech32_prefix'], str)
print('OK')

View File

@ -1,570 +0,0 @@
[
{
"coin_name": "Bitcoin",
"coin_shortcut": "BTC",
"coin_label": "Bitcoin",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 5,
"maxfee_kb": 2000000,
"minfee_kb": 1000,
"signed_message_header": "Bitcoin Signed Message:\n",
"hash_genesis_block": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "bc",
"cashaddr_prefix": null,
"bip44": 0,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,
"Economy": 70,
"Normal": 140,
"High": 200
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "stable",
"address_prefix": "bitcoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://btc-bitcore3.trezor.io",
"https://btc-bitcore1.trezor.io"
]
},
{
"coin_name": "Testnet",
"coin_shortcut": "TEST",
"coin_label": "Testnet",
"curve_name": "secp256k1",
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 10000000,
"minfee_kb": 1000,
"signed_message_header": "Bitcoin Signed Message:\n",
"hash_genesis_block": "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": "044a5262",
"bech32_prefix": "tb",
"cashaddr_prefix": null,
"bip44": 1,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "stable",
"address_prefix": "bitcoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://testnet-bitcore1.trezor.io",
"https://testnet-bitcore2.trezor.io"
]
},
{
"coin_name": "Bcash",
"coin_shortcut": "BCH",
"coin_label": "Bitcoin Cash",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 5,
"maxfee_kb": 500000,
"minfee_kb": 1000,
"signed_message_header": "Bitcoin Signed Message:\n",
"hash_genesis_block": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": "bitcoincash",
"bip44": 145,
"segwit": false,
"decred": false,
"forkid": 0,
"force_bip143": true,
"version_group_id": null,
"default_fee_b": {
"Low": 10,
"Economy": 70,
"Normal": 140,
"High": 200
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "stable",
"address_prefix": "bitcoincash:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://bch-bitcore2.trezor.io"
]
},
{
"coin_name": "Bcash Testnet",
"coin_shortcut": "TBCH",
"coin_label": "Bitcoin Cash Testnet",
"curve_name": "secp256k1",
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 10000000,
"minfee_kb": 1000,
"signed_message_header": "Bitcoin Signed Message:\n",
"hash_genesis_block": "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": "bchtest",
"bip44": 1,
"segwit": false,
"decred": false,
"forkid": 0,
"force_bip143": true,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "debug",
"address_prefix": "bitcoincash:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": []
},
{
"coin_name": "Namecoin",
"coin_shortcut": "NMC",
"coin_label": "Namecoin",
"curve_name": "secp256k1",
"address_type": 52,
"address_type_p2sh": 5,
"maxfee_kb": 10000000,
"minfee_kb": 1000,
"signed_message_header": "Namecoin Signed Message:\n",
"hash_genesis_block": "000000000062b72c5e2ceb45fbc8587e807c155b0da735e6483dfba2f0a9c770",
"xprv_magic": "019d9cfe",
"xpub_magic": "019da462",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 7,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 2940,
"blocktime_minutes": 10,
"firmware": "stable",
"address_prefix": "namecoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": []
},
{
"coin_name": "Litecoin",
"coin_shortcut": "LTC",
"coin_label": "Litecoin",
"curve_name": "secp256k1",
"address_type": 48,
"address_type_p2sh": 50,
"maxfee_kb": 40000000,
"minfee_kb": 100000,
"signed_message_header": "Litecoin Signed Message:\n",
"hash_genesis_block": "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
"xprv_magic": "019d9cfe",
"xpub_magic": "019da462",
"xpub_magic_segwit_p2sh": "01b26ef6",
"bech32_prefix": "ltc",
"cashaddr_prefix": null,
"bip44": 2,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 1000
},
"dust_limit": 54600,
"blocktime_minutes": 2.5,
"firmware": "stable",
"address_prefix": "litecoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://ltc-bitcore3.trezor.io"
]
},
{
"coin_name": "Dogecoin",
"coin_shortcut": "DOGE",
"coin_label": "Dogecoin",
"curve_name": "secp256k1",
"address_type": 30,
"address_type_p2sh": 22,
"maxfee_kb": 1000000000,
"minfee_kb": 1000,
"signed_message_header": "Dogecoin Signed Message:\n",
"hash_genesis_block": "1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691",
"xprv_magic": "02fac398",
"xpub_magic": "02facafd",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 3,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 10000000,
"blocktime_minutes": 1,
"firmware": "stable",
"address_prefix": "dogecoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": []
},
{
"coin_name": "Dash",
"coin_shortcut": "DASH",
"coin_label": "Dash",
"curve_name": "secp256k1",
"address_type": 76,
"address_type_p2sh": 16,
"maxfee_kb": 100000,
"minfee_kb": 10000,
"signed_message_header": "DarkCoin Signed Message:\n",
"hash_genesis_block": "00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6",
"xprv_magic": "02fe52f8",
"xpub_magic": "02fe52cc",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 5,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 5460,
"blocktime_minutes": 2.5,
"firmware": "stable",
"address_prefix": "dash:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://dash-bitcore1.trezor.io",
"https://dash-bitcore3.trezor.io"
]
},
{
"coin_name": "Zcash",
"coin_shortcut": "ZEC",
"coin_label": "Zcash",
"curve_name": "secp256k1",
"address_type": 7352,
"address_type_p2sh": 7357,
"maxfee_kb": 1000000,
"minfee_kb": 1000,
"signed_message_header": "Zcash Signed Message:\n",
"hash_genesis_block": "00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 133,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_minutes": 2.5,
"firmware": "stable",
"address_prefix": "zcash:",
"min_address_length": 35,
"max_address_length": 95,
"bitcore": [
"https://zec-bitcore1.trezor.io/"
]
},
{
"coin_name": "Zcash Testnet",
"coin_shortcut": "TAZ",
"coin_label": "Zcash Testnet",
"curve_name": "secp256k1",
"address_type": 7461,
"address_type_p2sh": 7354,
"maxfee_kb": 10000000,
"minfee_kb": 1000,
"signed_message_header": "Zcash Signed Message:\n",
"hash_genesis_block": "05a60a92d99d85997cce3b87616c089f6124d7342af37106edc76126334a2c38",
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 1,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": "03c48270",
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_minutes": 2.5,
"firmware": "debug",
"address_prefix": "zcash:",
"min_address_length": 35,
"max_address_length": 95,
"bitcore": []
},
{
"coin_name": "Bitcoin Gold",
"coin_shortcut": "BTG",
"coin_label": "Bitcoin Gold",
"curve_name": "secp256k1",
"address_type": 38,
"address_type_p2sh": 23,
"maxfee_kb": 500000,
"minfee_kb": 1000,
"signed_message_header": "Bitcoin Gold Signed Message:\n",
"hash_genesis_block": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "btg",
"cashaddr_prefix": null,
"bip44": 156,
"segwit": true,
"decred": false,
"forkid": 79,
"force_bip143": true,
"version_group_id": null,
"default_fee_b": {
"Low": 10,
"Economy": 70,
"Normal": 140,
"High": 200
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "stable",
"address_prefix": "bitcoingold:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://btg-bitcore2.trezor.io"
]
},
{
"coin_name": "DigiByte",
"coin_shortcut": "DGB",
"coin_label": "DigiByte",
"curve_name": "secp256k1",
"address_type": 30,
"address_type_p2sh": 63,
"maxfee_kb": 500000,
"minfee_kb": 1000,
"signed_message_header": "DigiByte Signed Message:\n",
"hash_genesis_block": "7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "dgb",
"cashaddr_prefix": null,
"bip44": 20,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,
"Economy": 70,
"Normal": 140,
"High": 200
},
"dust_limit": 546,
"blocktime_minutes": 0.25,
"firmware": "stable",
"address_prefix": "digibyte:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://explorer.digibyteprojects.com"
]
},
{
"coin_name": "Monacoin",
"coin_shortcut": "MONA",
"coin_label": "Monacoin",
"curve_name": "secp256k1",
"address_type": 50,
"address_type_p2sh": 55,
"maxfee_kb": 5000000,
"minfee_kb": 100000,
"signed_message_header": "Monacoin Signed Message:\n",
"hash_genesis_block": "ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6",
"xpub_magic": "0488b21e",
"xprv_magic": "0488ade4",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "mona",
"cashaddr_prefix": null,
"bip44": 22,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 100000
},
"dust_limit": 54600,
"blocktime_minutes": 1.5,
"firmware": "stable",
"address_prefix": "monacoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"https://mona.chainsight.info"
]
},
{
"coin_name": "Fujicoin",
"coin_shortcut": "FJC",
"coin_label": "Fujicoin",
"curve_name": "secp256k1",
"address_type": 36,
"address_type_p2sh": 16,
"maxfee_kb": 1000000,
"minfee_kb": 100000,
"signed_message_header": "FujiCoin Signed Message:\n",
"hash_genesis_block": "adb6d9cfd74075e7f91608add4bd2a2ea636f70856183086842667a1597714a0",
"xpub_magic": "0488b21e",
"xprv_magic": "0488ade4",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "fc",
"cashaddr_prefix": null,
"bip44": 75,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Low": 100000,
"Economy": 200000,
"Normal": 500000,
"High": 1000000
},
"dust_limit": 100000,
"blocktime_minutes": 1.0,
"firmware": "stable",
"address_prefix": "fujicoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [
"http://explorer.fujicoin.org/"
]
},
{
"coin_name": "Vertcoin",
"coin_shortcut": "VTC",
"coin_label": "Vertcoin",
"curve_name": "secp256k1",
"address_type": 71,
"address_type_p2sh": 5,
"maxfee_kb": 40000000,
"minfee_kb": 100000,
"signed_message_header": "Vertcoin Signed Message:\n",
"hash_genesis_block": "4d96a915f49d40b1e5c2844d1ee2dccb90013a990ccea12c492d22110489f0c4",
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "vtc",
"cashaddr_prefix": null,
"bip44": 28,
"segwit": true,
"decred": false,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 1000
},
"dust_limit": 54600,
"blocktime_minutes": 2.5,
"firmware": "stable",
"address_prefix": "vertcoin:",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": []
},
{
"coin_name": "Decred Testnet",
"coin_shortcut": "TDCR",
"coin_label": "Testnet",
"curve_name": "secp256k1_decred",
"address_type": 3873,
"address_type_p2sh": 3836,
"maxfee_kb": 10000000,
"minfee_kb": 1000,
"signed_message_header": "Decred Signed Message:\n",
"hash_genesis_block": "4261602a9d07d80ad47621a64ba6a07754902e496777edc4ff581946bd7bc29c",
"xprv_magic": "04358397",
"xpub_magic": "043587d1",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 1,
"segwit": false,
"decred": true,
"forkid": null,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_minutes": 10,
"firmware": "debug",
"address_prefix": "bitcoin:",
"min_address_length": 35,
"max_address_length": 35,
"bitcore": [
"https://testnet.decred.org"
]
}
]