1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-09 23:11:10 +00:00
trezor-firmware/common/defs/bitcoin
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
..
actinium.json
actinium.png
axe.json
axe.png
bcash_testnet.json
bcash_testnet.png
bcash.json
bcash.png
bellcoin.json
bellcoin.png
bgold_testnet.json
bgold_testnet.png
bgold.json
bgold.png
bitcash.json
bitcash.png
bitcloud.json
bitcloud.png
bitcoin_regtest.json
bitcoin_regtest.png
bitcoin_testnet.json
bitcoin_testnet.png
bitcoin.json
bitcoin.png
bitcore.json
bitcore.png
bitgreen.json
bitgreen.png
bitsend.json
bitsend.png
bitzeny.json
bitzeny.png
blockstamp.json
blockstamp.png
bprivate.json
bprivate.png
brhodium.json
brhodium.png
capricoin.json
capricoin.png
cpuchain.json
cpuchain.png
crown.json
crown.png
dash_testnet.json
dash_testnet.png
dash.json
dash.png
decred_testnet.json
decred_testnet.png
decred.json
decred.png
denarius.json
denarius.png
digibyte.json
digibyte.png
dogecoin.json
dogecoin.png
elements.json
elements.png
faircoin.json
faircoin.png
feathercoin.json
feathercoin.png
florincoin.json
florincoin.png
fujicoin.json
fujicoin.png
gamecredits.json
gamecredits.png
gincoin.json
gincoin.png
groestlcoin_testnet.json
groestlcoin_testnet.png
groestlcoin.json
groestlcoin.png
horizen.json
horizen.png
komodo.json
komodo.png
koto.json
koto.png
litecoin_testnet.json
litecoin_testnet.png
litecoin.json
litecoin.png
megacoin.json
megacoin.png
monacoin.json
monacoin.png
monetaryunit.json
monetaryunit.png
myriad.json
myriad.png
namecoin.json
namecoin.png
nix.json
nix.png
particl_testnet.json
particl_testnet.png
particl.json
particl.png
pesetacoin.json
pesetacoin.png
pivx_testnet.json
pivx_testnet.png
pivx.json
pivx.png
polis.json
polis.png
primecoin.json
primecoin.png
qtum_testnet.json
qtum_testnet.png
qtum.json
qtum.png
ravencoin.json
ravencoin.png
ritocoin.json
ritocoin.png
smartcash_testnet.json
smartcash_testnet.png
smartcash.json
smartcash.png
stakenet.json
stakenet.png
terracoin.json
terracoin.png
vertcoin.json
vertcoin.png
viacoin.json
viacoin.png
vipstarcoin.json
vipstarcoin.png
zcash_testnet.json
zcash_testnet.png
zcash.json
zcash.png
zclassic.json
zclassic.png
zcoin_testnet.json
zcoin_testnet.png
zcoin.json
zcoin.png
zelcash.json
zelcash.png