1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-12 07:32:48 +00:00
trezor-firmware/core/src
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
..
apps common/defs: add 'confidential_assets' section to coin definitions (#399) 2019-08-12 12:52:20 +02:00
trezor core: remove loop.signal in favor of chan, change usage 2019-08-09 16:53:12 +02:00
.gitignore MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
boot.py core/typing: add annotations 2019-07-09 12:51:48 +02:00
main.py core: improve typing annotations 2019-08-06 15:42:23 +02:00
protobuf.py core/protobuf: fix 5b6fa113 2019-08-07 10:59:22 +02:00
usb.py core: refactor storage 2019-07-08 15:24:56 +02:00