From d0c742e88426dfc3fb183b752c82cb778617e3d2 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 8 Feb 2018 18:58:03 +0100 Subject: [PATCH] src/apps/common/coins: regenerate --- src/apps/common/coins.py | 170 ++++++++++++++++++++++++++++++++++++- tools/codegen/gen_coins.py | 1 + 2 files changed, 169 insertions(+), 2 deletions(-) diff --git a/src/apps/common/coins.py b/src/apps/common/coins.py index be35029011..0a9ab490e7 100644 --- a/src/apps/common/coins.py +++ b/src/apps/common/coins.py @@ -9,7 +9,7 @@ COINS = [ coin_label='Bitcoin', address_type=0, address_type_p2sh=5, - maxfee_kb=500000, + maxfee_kb=2000000, minfee_kb=1000, signed_message_header='Bitcoin Signed Message:\n', hash_genesis_block='000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', @@ -19,6 +19,7 @@ COINS = [ bip44=0, segwit=True, forkid=None, + force_bip143=False, default_fee_b={'Low': 10, 'Economy': 70, 'Normal': 140, 'High': 200}, dust_limit=546, blocktime_minutes=10, @@ -44,6 +45,7 @@ COINS = [ bip44=1, segwit=True, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=546, blocktime_minutes=10, @@ -51,7 +53,7 @@ COINS = [ address_prefix='bitcoin:', min_address_length=27, max_address_length=34, - bitcore=['https://testnet-bitcore3.trezor.io', 'https://testnet-bitcore4.trezor.io'], + bitcore=['https://testnet-bitcore1.trezor.io', 'https://testnet-bitcore2.trezor.io'], ), CoinType( coin_name='Bcash', @@ -69,6 +71,7 @@ COINS = [ bip44=145, segwit=False, forkid=0, + force_bip143=True, default_fee_b={'Low': 10, 'Economy': 70, 'Normal': 140, 'High': 200}, dust_limit=546, blocktime_minutes=10, @@ -94,6 +97,7 @@ COINS = [ bip44=1, segwit=False, forkid=0, + force_bip143=True, default_fee_b={'Normal': 10}, dust_limit=546, blocktime_minutes=10, @@ -119,6 +123,7 @@ COINS = [ bip44=7, segwit=False, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=2940, blocktime_minutes=10, @@ -144,6 +149,7 @@ COINS = [ bip44=2, segwit=True, forkid=None, + force_bip143=False, default_fee_b={'Normal': 1000}, dust_limit=54600, blocktime_minutes=2.5, @@ -169,6 +175,7 @@ COINS = [ bip44=3, segwit=False, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=10000000, blocktime_minutes=1, @@ -194,6 +201,7 @@ COINS = [ bip44=5, segwit=False, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=5460, blocktime_minutes=2.5, @@ -219,6 +227,7 @@ COINS = [ bip44=133, segwit=False, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=546, blocktime_minutes=2.5, @@ -244,6 +253,7 @@ COINS = [ bip44=1, segwit=False, forkid=None, + force_bip143=False, default_fee_b={'Normal': 10}, dust_limit=546, blocktime_minutes=2.5, @@ -253,6 +263,162 @@ COINS = [ max_address_length=95, bitcore=[], ), + CoinType( + coin_name='Bitcoin Gold', + coin_shortcut='BTG', + coin_label='Bitcoin Gold', + address_type=38, + address_type_p2sh=23, + maxfee_kb=500000, + minfee_kb=1000, + signed_message_header='Bitcoin Gold Signed Message:\n', + hash_genesis_block='000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', + xprv_magic=0x0488ade4, + xpub_magic=0x0488b21e, + bech32_prefix='btg', + bip44=156, + segwit=True, + forkid=79, + force_bip143=True, + default_fee_b={'Low': 10, 'Economy': 70, 'Normal': 140, 'High': 200}, + dust_limit=546, + blocktime_minutes=10, + firmware='stable', + address_prefix='bitcoingold:', + min_address_length=27, + max_address_length=34, + bitcore=['https://btg-bitcore2.trezor.io'], + ), + CoinType( + coin_name='DigiByte', + coin_shortcut='DGB', + coin_label='DigiByte', + address_type=30, + address_type_p2sh=5, + maxfee_kb=500000, + minfee_kb=1000, + signed_message_header='DigiByte Signed Message:\n', + hash_genesis_block='7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496', + xprv_magic=0x0488ade4, + xpub_magic=0x0488b21e, + bech32_prefix='dgb', + bip44=20, + segwit=True, + forkid=None, + force_bip143=False, + default_fee_b={'Low': 10, 'Economy': 70, 'Normal': 140, 'High': 200}, + dust_limit=546, + blocktime_minutes=0.25, + firmware='stable', + address_prefix='digibyte:', + min_address_length=27, + max_address_length=34, + bitcore=[], + ), + CoinType( + coin_name='Monacoin', + coin_shortcut='MONA', + coin_label='Monacoin', + address_type=50, + address_type_p2sh=55, + maxfee_kb=5000000, + minfee_kb=100000, + signed_message_header='Monacoin Signed Message:\n', + hash_genesis_block='ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6', + xprv_magic=0x0488ade4, + xpub_magic=0x0488b21e, + bech32_prefix='mona', + bip44=22, + segwit=True, + forkid=None, + force_bip143=False, + default_fee_b={'Normal': 100000}, + dust_limit=54600, + blocktime_minutes=1.5, + firmware='stable', + address_prefix='monacoin:', + min_address_length=27, + max_address_length=34, + bitcore=['https://mona.chainsight.info'], + ), + CoinType( + coin_name='Fujicoin', + coin_shortcut='FJC', + coin_label='Fujicoin', + address_type=36, + address_type_p2sh=16, + maxfee_kb=1000000, + minfee_kb=100000, + signed_message_header='FujiCoin Signed Message:\n', + hash_genesis_block='adb6d9cfd74075e7f91608add4bd2a2ea636f70856183086842667a1597714a0', + xprv_magic=0x0488ade4, + xpub_magic=0x0488b21e, + bech32_prefix=None, + bip44=75, + segwit=False, + forkid=None, + force_bip143=False, + default_fee_b={'Normal': 100000}, + dust_limit=100000, + blocktime_minutes=1.0, + firmware='stable', + address_prefix='fujicoin:', + min_address_length=27, + max_address_length=34, + bitcore=['http://explorer.fujicoin.org/'], + ), + CoinType( + coin_name='Vertcoin', + coin_shortcut='VTC', + coin_label='Vertcoin', + address_type=71, + address_type_p2sh=5, + maxfee_kb=40000000, + minfee_kb=100000, + signed_message_header='Vertcoin Signed Message:\n', + hash_genesis_block='4d96a915f49d40b1e5c2844d1ee2dccb90013a990ccea12c492d22110489f0c4', + xprv_magic=0x0488ade4, + xpub_magic=0x0488b21e, + bech32_prefix='vtc', + bip44=28, + segwit=True, + forkid=None, + force_bip143=False, + default_fee_b={'Normal': 1000}, + dust_limit=54600, + blocktime_minutes=2.5, + firmware='stable', + address_prefix='vertcoin:', + min_address_length=27, + max_address_length=34, + bitcore=[], + ), + CoinType( + coin_name='Decred Testnet', + coin_shortcut='TDCR', + coin_label='Testnet', + address_type=3873, + address_type_p2sh=3836, + maxfee_kb=10000000, + minfee_kb=1000, + signed_message_header='Decred Signed Message:\n', + hash_genesis_block='4261602a9d07d80ad47621a64ba6a07754902e496777edc4ff581946bd7bc29c', + xprv_magic=0x04358397, + xpub_magic=0x043587d1, + bech32_prefix=None, + bip44=1, + segwit=False, + forkid=None, + force_bip143=False, + default_fee_b={'Normal': 10}, + dust_limit=546, + blocktime_minutes=10, + firmware='debug', + address_prefix='bitcoin:', + min_address_length=35, + max_address_length=35, + bitcore=[], + ), ] diff --git a/tools/codegen/gen_coins.py b/tools/codegen/gen_coins.py index dd7728ddcd..d961bfe594 100755 --- a/tools/codegen/gen_coins.py +++ b/tools/codegen/gen_coins.py @@ -17,6 +17,7 @@ fields = [ 'bip44', 'segwit', 'forkid', + 'force_bip143', 'default_fee_b', 'dust_limit', 'blocktime_minutes',