mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-06 17:09:11 +00:00
vendor: update trezor-common; add version_group_id flag (for zcash overwintered tx)
This commit is contained in:
parent
613bde0aeb
commit
64cfcf8053
@ -62,7 +62,7 @@ def format_string(value):
|
|||||||
|
|
||||||
def format_hex(value):
|
def format_hex(value):
|
||||||
if value is None:
|
if value is None:
|
||||||
value = "0"
|
value = 0
|
||||||
return "0x{:08x}".format(value)
|
return "0x{:08x}".format(value)
|
||||||
|
|
||||||
|
|
||||||
@ -90,6 +90,7 @@ def coin_to_struct(coin):
|
|||||||
("xpub_magic", format_hex(coin["xpub_magic"])),
|
("xpub_magic", format_hex(coin["xpub_magic"])),
|
||||||
("xprv_magic", format_hex(coin["xprv_magic"])),
|
("xprv_magic", format_hex(coin["xprv_magic"])),
|
||||||
("fork_id", format_number(coin["fork_id"])),
|
("fork_id", format_number(coin["fork_id"])),
|
||||||
|
("version_group_id", format_hex(coin["version_group_id"])),
|
||||||
("bech32_prefix", format_string(coin["bech32_prefix"])),
|
("bech32_prefix", format_string(coin["bech32_prefix"])),
|
||||||
("cashaddr_prefix", format_string(coin["cashaddr_prefix"])),
|
("cashaddr_prefix", format_string(coin["cashaddr_prefix"])),
|
||||||
("coin_type", "({} | 0x80000000)".format(format_number(coin["slip44"]))), # noqa: E501
|
("coin_type", "({} | 0x80000000)".format(format_number(coin["slip44"]))), # noqa: E501
|
||||||
|
@ -43,6 +43,7 @@ typedef struct _CoinInfo {
|
|||||||
uint32_t xpub_magic;
|
uint32_t xpub_magic;
|
||||||
uint32_t xprv_magic;
|
uint32_t xprv_magic;
|
||||||
uint32_t fork_id;
|
uint32_t fork_id;
|
||||||
|
uint32_t version_group_id;
|
||||||
const char *bech32_prefix;
|
const char *bech32_prefix;
|
||||||
const char *cashaddr_prefix;
|
const char *cashaddr_prefix;
|
||||||
uint32_t coin_type;
|
uint32_t coin_type;
|
||||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
|||||||
Subproject commit a0d37a0371aba597d3e0f3f1055adf1a9683a5e4
|
Subproject commit 5520e98f4ab3ffb3ca347b1bfe417c5a380b9cbf
|
Loading…
Reference in New Issue
Block a user