diff --git a/src/apps/common/coins.py b/src/apps/common/coins.py index 8164d06472..d56b876d20 100644 --- a/src/apps/common/coins.py +++ b/src/apps/common/coins.py @@ -1,3 +1,4 @@ +# the following list is generated using tools/coins-gen.py _coins = [ {'coin_name': 'Bitcoin', 'coin_shortcut': 'BTC', 'maxfee_kb': 100000, 'address_type': 0, 'address_type_p2sh': 5, 'address_type_p2wpkh': 6, 'address_type_p2wsh': 10, 'signed_message_header': 'Bitcoin Signed Message:\n', 'bip44': 0, 'xpub_magic': 76067358, 'xprv_magic': 76066276, }, {'coin_name': 'Testnet', 'coin_shortcut': 'TEST', 'maxfee_kb': 10000000, 'address_type': 111, 'address_type_p2sh': 196, 'address_type_p2wpkh': 3, 'address_type_p2wsh': 40, 'signed_message_header': 'Bitcoin Signed Message:\n', 'bip44': 1, 'xpub_magic': 70617039, 'xprv_magic': 70615956, }, diff --git a/src/apps/common/coins-gen.py b/tools/coins-gen.py similarity index 88% rename from src/apps/common/coins-gen.py rename to tools/coins-gen.py index 5698a42c74..aeed5700aa 100755 --- a/src/apps/common/coins-gen.py +++ b/tools/coins-gen.py @@ -2,7 +2,7 @@ import json from collections import OrderedDict -coins = json.load(open('../../../../trezor-common/coins.json', 'r')) +coins = json.load(open('../../trezor-common/coins.json', 'r')) print('_coins = [') for c in coins: