diff --git a/firmware/coins.c b/firmware/coins.c index d55107c755..8a50dbdc81 100644 --- a/firmware/coins.c +++ b/firmware/coins.c @@ -28,6 +28,7 @@ const CoinType coins[COINS_COUNT] = { {true, "Litecoin", true, "LTC", true, 48, true, 1000000, true, 5, false, 0, false, 0, true, "\x19" "Litecoin Signed Message:\n"}, {true, "Dogecoin", true, "DOGE", true, 30, true, 1000000000, true, 22, false, 0, false, 0, true, "\x19" "Dogecoin Signed Message:\n"}, {true, "Dash", true, "DASH", true, 76, true, 100000, true, 16, false, 0, false, 0, true, "\x19" "DarkCoin Signed Message:\n"}, + {true, "Zcash", true, "ZEC", true, 65, true, 1000000, true, 5, false, 0, false, 0, true, "\x16" "Zcash Signed Message:\n"}, }; const CoinType *coinByShortcut(const char *shortcut) diff --git a/firmware/coins.h b/firmware/coins.h index b57566ee33..32a3ba8b3c 100644 --- a/firmware/coins.h +++ b/firmware/coins.h @@ -22,7 +22,7 @@ #include "types.pb.h" -#define COINS_COUNT 6 +#define COINS_COUNT 7 extern const CoinType coins[COINS_COUNT]; diff --git a/firmware/protob/messages.options b/firmware/protob/messages.options index daf1211b1e..6ee1493341 100644 --- a/firmware/protob/messages.options +++ b/firmware/protob/messages.options @@ -2,7 +2,7 @@ Features.vendor max_size:33 Features.device_id max_size:25 Features.language max_size:17 Features.label max_size:33 -Features.coins max_count:6 +Features.coins max_count:7 Features.revision max_size:20 Features.bootloader_hash max_size:32 diff --git a/firmware/protob/messages.pb.h b/firmware/protob/messages.pb.h index aed732c41d..f6dfa2444c 100644 --- a/firmware/protob/messages.pb.h +++ b/firmware/protob/messages.pb.h @@ -536,7 +536,7 @@ typedef struct _Features { bool has_label; char label[33]; size_t coins_count; - CoinType coins[6]; + CoinType coins[7]; bool has_initialized; bool initialized; bool has_revision; @@ -835,7 +835,7 @@ extern const uint32_t SimpleSignTx_lock_time_default; /* Initializer values for message structs */ #define Initialize_init_default {0} #define GetFeatures_init_default {0} -#define Features_init_default {false, "", false, 0, false, 0, false, 0, false, 0, false, "", false, 0, false, 0, false, "", false, "", 0, {CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default}, false, 0, false, {0, {0}}, false, {0, {0}}, false, 0, false, 0, false, 0} +#define Features_init_default {false, "", false, 0, false, 0, false, 0, false, 0, false, "", false, 0, false, 0, false, "", false, "", 0, {CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default, CoinType_init_default}, false, 0, false, {0, {0}}, false, {0, {0}}, false, 0, false, 0, false, 0} #define ClearSession_init_default {0} #define ApplySettings_init_default {false, "", false, "", false, 0, false, {0, {0}}} #define ChangePin_init_default {false, 0} @@ -901,7 +901,7 @@ extern const uint32_t SimpleSignTx_lock_time_default; #define DebugLinkFlashErase_init_default {false, 0} #define Initialize_init_zero {0} #define GetFeatures_init_zero {0} -#define Features_init_zero {false, "", false, 0, false, 0, false, 0, false, 0, false, "", false, 0, false, 0, false, "", false, "", 0, {CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero}, false, 0, false, {0, {0}}, false, {0, {0}}, false, 0, false, 0, false, 0} +#define Features_init_zero {false, "", false, 0, false, 0, false, 0, false, 0, false, "", false, 0, false, 0, false, "", false, "", 0, {CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero, CoinType_init_zero}, false, 0, false, {0, {0}}, false, {0, {0}}, false, 0, false, 0, false, 0} #define ClearSession_init_zero {0} #define ApplySettings_init_zero {false, "", false, "", false, 0, false, {0, {0}}} #define ChangePin_init_zero {false, 0} @@ -1206,7 +1206,7 @@ extern const pb_field_t DebugLinkFlashErase_fields[2]; /* Maximum encoded size of messages (where known) */ #define Initialize_size 0 #define GetFeatures_size 0 -#define Features_size (242 + 6*CoinType_size) +#define Features_size (248 + 7*CoinType_size) #define ClearSession_size 0 #define ApplySettings_size 1083 #define ChangePin_size 2