diff --git a/protob/config.proto b/protob/config.proto index 6779c95375..6dfe3b129b 100644 --- a/protob/config.proto +++ b/protob/config.proto @@ -1,8 +1,5 @@ /** * Configuration format for TREZOR plugin - * - * @author Marek Palatinus - * @version 1.0 */ // Sugar for easier handling in Java diff --git a/protob/messages.proto b/protob/messages.proto index b52a48dbc2..dd77528b87 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -1,8 +1,5 @@ /** * Messages for TREZOR communication - * - * @author Marek Palatinus - * @version 1.2 */ // Sugar for easier handling in Java @@ -45,6 +42,7 @@ enum MessageType { MessageType_ButtonAck = 27 [(wire_in) = true, (wire_tiny) = true]; MessageType_GetAddress = 29 [(wire_in) = true]; MessageType_Address = 30 [(wire_out) = true]; + MessageType_BackupDevice = 34 [(wire_in) = true]; MessageType_EntropyRequest = 35 [(wire_out) = true]; MessageType_EntropyAck = 36 [(wire_in) = true]; MessageType_SignMessage = 38 [(wire_in) = true]; @@ -361,6 +359,14 @@ message ResetDevice { optional string language = 5 [default='english']; // device language optional string label = 6; // device label optional uint32 u2f_counter = 7; // U2F counter + optional bool skip_backup = 8; // postpone seed backup to BackupDevice workflow +} + +/** + * Request: Perform backup of the device seed if not backed up using ResetDevice + * @next ButtonRequest + */ +message BackupDevice { } /** diff --git a/protob/storage.proto b/protob/storage.proto index 36f95d5705..8415fde099 100644 --- a/protob/storage.proto +++ b/protob/storage.proto @@ -1,8 +1,5 @@ /** * Storage area of TREZOR - * - * @author Marek Palatinus - * @version 1 */ // Sugar for easier handling in Java @@ -26,4 +23,5 @@ message Storage { optional bool imported = 9; // was storage imported from an external source? optional bytes homescreen = 10; // image used as homescreen (logo + label is used when not set) optional uint32 u2f_counter = 11; // sequence number for u2f authentications + optional bool needs_backup = 12; // seed is not backed up yet }