1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 11:28:21 +00:00
trezor-firmware/common/defs/bitcoin/bcash.json
Roman Zeyde 7210a2f56d common/defs: add 'confidential_assets' section to coin definitions (#399)
Enable 'confidential_assets' for Elements (following #66 and #317) to allow
deriving confidential addresses and signing confidential transactions.

The following Python helper script was used to update the JSON files:
```
import json
import sys

for f in sys.argv[1:]:
    d = json.load(open(f))
    d["confidential_assets"] = None
    with open(f, "w") as o:
        json.dump(d, o, indent=2)
        o.write("\n")
```

Set it to `{'address_prefix': 4, 'blech32_prefix': 'el'}` for Elements.

`coins.json` and `coininfo.py` were re-generated using:
```
$ pipenv run make gen gen_check
```
2019-08-12 12:52:20 +02:00

51 lines
1.3 KiB
JSON

{
"coin_name": "Bcash",
"coin_shortcut": "BCH",
"coin_label": "Bitcoin Cash",
"website": "https://www.bitcoincash.org",
"github": "https://github.com/Bitcoin-ABC/bitcoin-abc",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"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": 76066276,
"xpub_magic": 76067358,
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": "bitcoincash",
"slip44": 145,
"segwit": false,
"decred": false,
"fork_id": 0,
"force_bip143": true,
"bip115": false,
"default_fee_b": {
"Low": 10,
"Economy": 70,
"Normal": 140,
"High": 200
},
"dust_limit": 546,
"blocktime_seconds": 600,
"uri_prefix": "bitcoincash",
"min_address_length": 27,
"max_address_length": 34,
"bitcore": [],
"blockbook": [
"https://bch1.trezor.io",
"https://bch2.trezor.io",
"https://bch3.trezor.io",
"https://bch4.trezor.io",
"https://bch5.trezor.io"
],
"negative_fee": false,
"cooldown": 100,
"consensus_branch_id": null,
"confidential_assets": null
}