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

Zencash support (#140)

This commit is contained in:
JOSEPH NICHOLAS R. ALCANTARA 2018-06-27 03:18:27 +08:00 committed by Pavol Rusnak
parent e16e58442a
commit 3f55a0cff7
3 changed files with 42 additions and 0 deletions

38
defs/coins/zencash.json Normal file
View File

@ -0,0 +1,38 @@
{
"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"
]
}

BIN
defs/coins/zencash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -187,6 +187,8 @@ message TxInputType {
optional uint64 amount = 8; // amount of previous transaction output (for segwit only)
optional uint32 decred_tree = 9;
optional uint32 decred_script_version = 10;
optional bytes prev_block_hash_bip115 = 11; //block hash of previous transaction output (for bip115 implementation)
optional bytes prev_block_height_bip115 = 12; //block height of previous transaction output (for bip115 implementation)
}
/**
@ -202,6 +204,8 @@ message TxOutputType {
optional MultisigRedeemScriptType multisig = 5; // defines multisig address; script_type must be PAYTOMULTISIG
optional bytes op_return_data = 6; // defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0
optional uint32 decred_script_version = 7;
optional bytes block_hash_bip115 = 8; //block hash of existing block (recommended current_block - 300) (for bip115 implementation)
optional bytes block_height_bip115 = 9; //block height of existing block (recommended current_block - 300) (for bip115 implementation)
}
/**