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, "decred": false,
"fork_id": 0, "fork_id": 0,
"force_bip143": true, "force_bip143": true,
"bip115": false,
"version_group_id": null, "version_group_id": null,
"default_fee_b": { "default_fee_b": {
"Low": 10, "Low": 10,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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