1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

vendor: update trezor-common; add version_group_id flag (for zcash overwintered tx)

This commit is contained in:
Pavol Rusnak 2018-06-05 11:11:21 +02:00
parent 68669dd8e4
commit d6717b59cc
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 20 additions and 2 deletions

View File

@ -13,7 +13,8 @@ class CoinInfo:
cashaddr_prefix: str, cashaddr_prefix: str,
segwit: bool, segwit: bool,
fork_id: int, fork_id: int,
force_bip143: bool force_bip143: bool,
version_group_id: int
): ):
self.coin_name = coin_name self.coin_name = coin_name
self.coin_shortcut = coin_shortcut self.coin_shortcut = coin_shortcut
@ -27,6 +28,7 @@ class CoinInfo:
self.segwit = segwit self.segwit = segwit
self.fork_id = fork_id self.fork_id = fork_id
self.force_bip143 = force_bip143 self.force_bip143 = force_bip143
self.version_group_id = version_group_id
# the following list is generated using tools/codegen/gen_coins.py # the following list is generated using tools/codegen/gen_coins.py
@ -45,6 +47,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Testnet', coin_name='Testnet',
@ -59,6 +62,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Bcash', coin_name='Bcash',
@ -73,6 +77,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=0, fork_id=0,
force_bip143=True, force_bip143=True,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Bcash Testnet', coin_name='Bcash Testnet',
@ -87,6 +92,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=0, fork_id=0,
force_bip143=True, force_bip143=True,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Namecoin', coin_name='Namecoin',
@ -101,6 +107,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Litecoin', coin_name='Litecoin',
@ -115,6 +122,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Dogecoin', coin_name='Dogecoin',
@ -129,6 +137,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Dash', coin_name='Dash',
@ -143,6 +152,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Zcash', coin_name='Zcash',
@ -157,6 +167,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=63210096,
), ),
CoinInfo( CoinInfo(
coin_name='Zcash Testnet', coin_name='Zcash Testnet',
@ -171,6 +182,7 @@ COINS = [
segwit=False, segwit=False,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=63210096,
), ),
CoinInfo( CoinInfo(
coin_name='Bgold', coin_name='Bgold',
@ -185,6 +197,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=79, fork_id=79,
force_bip143=True, force_bip143=True,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='DigiByte', coin_name='DigiByte',
@ -199,6 +212,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Monacoin', coin_name='Monacoin',
@ -213,6 +227,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Fujicoin', coin_name='Fujicoin',
@ -227,6 +242,7 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
CoinInfo( CoinInfo(
coin_name='Vertcoin', coin_name='Vertcoin',
@ -241,5 +257,6 @@ COINS = [
segwit=True, segwit=True,
fork_id=None, fork_id=None,
force_bip143=False, force_bip143=False,
version_group_id=None,
), ),
] ]

View File

@ -14,6 +14,7 @@ fields = [
'segwit', 'segwit',
'fork_id', 'fork_id',
'force_bip143', 'force_bip143',
'version_group_id',
] ]
support = json.load(open('../../vendor/trezor-common/defs/support.json', 'r')) support = json.load(open('../../vendor/trezor-common/defs/support.json', 'r'))

@ -1 +1 @@
Subproject commit a0d37a0371aba597d3e0f3f1055adf1a9683a5e4 Subproject commit 5520e98f4ab3ffb3ca347b1bfe417c5a380b9cbf