1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

chore(proto): backwards compatibility changes for protobuf defs

This commit is contained in:
mroz 2021-11-01 17:14:31 +01:00 committed by matejcik
parent 3488138285
commit 6c7e4a520d

View File

@ -34,8 +34,7 @@ enum SafetyCheckLevel {
*/ */
message Initialize { message Initialize {
optional bytes session_id = 1; // assumed device session id; Trezor clears caches if it is different or empty optional bytes session_id = 1; // assumed device session id; Trezor clears caches if it is different or empty
// optional bool skip_passphrase = 2; // removed as part of passphrase redesign optional boolean _skip_passphrase = 2 [deprecated=true]; // removed as part of passphrase redesign
reserved 2;
optional bool derive_cardano = 3; // whether to derive Cardano Icarus root keys in this session optional bool derive_cardano = 3; // whether to derive Cardano Icarus root keys in this session
} }
@ -67,7 +66,7 @@ message Features {
optional bytes bootloader_hash = 14; // hash of the bootloader optional bytes bootloader_hash = 14; // hash of the bootloader
optional bool imported = 15; // was storage imported from an external source? optional bool imported = 15; // was storage imported from an external source?
optional bool unlocked = 16; // is the device unlocked? called "pin_cached" previously optional bool unlocked = 16; // is the device unlocked? called "pin_cached" previously
// optional bool passphrase_cached = 17; // is passphrase already cached in session? DEPRECATED optional bool _passphrase_cached = 17 [deprecated=true]; // is passphrase already cached in session?
optional bool firmware_present = 18; // is valid firmware loaded? optional bool firmware_present = 18; // is valid firmware loaded?
optional bool needs_backup = 19; // does storage need backup? (equals to Storage.needs_backup) optional bool needs_backup = 19; // does storage need backup? (equals to Storage.needs_backup)
optional uint32 flags = 20; // device flags (equals to Storage.flags) optional uint32 flags = 20; // device flags (equals to Storage.flags)
@ -143,7 +142,7 @@ message ApplySettings {
optional string label = 2; optional string label = 2;
optional bool use_passphrase = 3; optional bool use_passphrase = 3;
optional bytes homescreen = 4; optional bytes homescreen = 4;
// optional PassphraseSourceType passphrase_source = 5; DEPRECATED optional uint32 _passphrase_source = 5 [deprecated=true]; // ASK = 0; DEVICE = 1; HOST = 2;
optional uint32 auto_lock_delay_ms = 6; optional uint32 auto_lock_delay_ms = 6;
optional uint32 display_rotation = 7; // in degrees from North optional uint32 display_rotation = 7; // in degrees from North
optional bool passphrase_always_on_device = 8; // do not prompt for passphrase, enforce device entry optional bool passphrase_always_on_device = 8; // do not prompt for passphrase, enforce device entry