diff --git a/firmware/coin_info.py b/firmware/coin_info.py index c8e8a5cf4..509d06c15 100755 --- a/firmware/coin_info.py +++ b/firmware/coin_info.py @@ -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"])), diff --git a/firmware/coins.h b/firmware/coins.h index c6a1c0b7a..2cdd65724 100644 --- a/firmware/coins.h +++ b/firmware/coins.h @@ -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;