1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38:10 +00:00

defs: add bip115 to coins

This commit is contained in:
Pavol Rusnak 2018-06-28 14:12:19 +02:00
parent 6e169d6f18
commit ef306159aa
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
37 changed files with 73 additions and 37 deletions

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": 0,
"force_bip143": true,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": 0,
"force_bip143": true,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": 79,
"force_bip143": true,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": 42,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": true,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": true,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -24,6 +24,7 @@
"fork_id": null,
"force_bip143": false,
"version_group_id": null,
"bip115": false,
"default_fee_b": {
"Low": 10,
"Economy": 70,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 100000

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 1000

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 0

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 100000,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": 48748912,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 1000

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 100000

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 10,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 1000

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 1000,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": 63210096,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": 63210096,
"default_fee_b": {
"Normal": 10

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 1,

View File

@ -23,6 +23,7 @@
"decred": false,
"fork_id": null,
"force_bip143": false,
"bip115": false,
"version_group_id": null,
"default_fee_b": {
"Low": 1,

View File

@ -1,39 +1,40 @@
{
"coin_name": "Zencash",
"coin_shortcut": "ZEN",
"coin_label": "Zencash",
"website": "https://zencash.com",
"github": "https://github.com/ZencashOfficial/zen",
"maintainer": "Zencash <support@zencash.com>",
"curve_name": "secp256k1",
"address_type": 8329,
"address_type_p2sh": 8342,
"maxfee_kb": 2000000,
"minfee_kb": 1000,
"signed_message_header": "Zencash Signed Message:\n",
"hash_genesis_block": "0007104ccda289427919efc39dc9e4d499804b7bebc22df55f8b834301260602",
"xprv_magic": 76066276,
"xpub_magic": 76067358,
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 121,
"segwit": false,
"decred": false,
"fork_id": 0,
"force_bip143": false,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_seconds": 150,
"address_prefix": "zencash:",
"min_address_length": 35,
"max_address_length": 95,
"bitcore": [
"https://explorer.zen-solutions.io"
],
"blockbook": []
"coin_name": "Zencash",
"coin_shortcut": "ZEN",
"coin_label": "Zencash",
"website": "https://zencash.com",
"github": "https://github.com/ZencashOfficial/zen",
"maintainer": "Zencash <support@zencash.com>",
"curve_name": "secp256k1",
"address_type": 8329,
"address_type_p2sh": 8342,
"maxfee_kb": 2000000,
"minfee_kb": 1000,
"signed_message_header": "Zencash Signed Message:\n",
"hash_genesis_block": "0007104ccda289427919efc39dc9e4d499804b7bebc22df55f8b834301260602",
"xprv_magic": 76066276,
"xpub_magic": 76067358,
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 121,
"segwit": false,
"decred": false,
"fork_id": 0,
"force_bip143": false,
"bip115": true,
"version_group_id": null,
"default_fee_b": {
"Normal": 10
},
"dust_limit": 546,
"blocktime_seconds": 150,
"address_prefix": "zencash:",
"min_address_length": 35,
"max_address_length": 95,
"bitcore": [
"https://explorer.zen-solutions.io"
],
"blockbook": []
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -86,6 +86,7 @@ def validate_coin(coin):
assert check_type(coin['decred'], bool)
assert check_type(coin['fork_id'], int, nullable=True)
assert check_type(coin['force_bip143'], bool)
assert check_type(coin['bip115'], bool)
assert check_type(coin['version_group_id'], int, nullable=True)
assert check_type(coin['default_fee_b'], dict)
assert check_type(coin['dust_limit'], int)