mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-16 04:29:08 +00:00
coins: Add Decred support
This commit is contained in:
parent
bfb8dda5e8
commit
9849321883
@ -84,6 +84,7 @@ def coin_to_struct(coin):
|
||||
("has_segwit", format_bool(coin["segwit"])),
|
||||
("has_forkid", format_bool(coin["forkid"] is not None)),
|
||||
("force_bip143", format_bool(coin["force_bip143"])),
|
||||
("decred", format_bool(coin["decred"])),
|
||||
("address_type", format_number(coin["address_type"])),
|
||||
("address_type_p2sh", format_number(coin["address_type_p2sh"])),
|
||||
("xpub_magic", format_hex(coin["xpub_magic"])),
|
||||
|
@ -36,6 +36,7 @@ typedef struct _CoinInfo {
|
||||
bool has_segwit;
|
||||
bool has_forkid;
|
||||
bool force_bip143;
|
||||
bool decred;
|
||||
// address types > 0xFF represent a two-byte prefix in big-endian order
|
||||
uint32_t address_type;
|
||||
uint32_t address_type_p2sh;
|
||||
|
Loading…
Reference in New Issue
Block a user