Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ message ResetDevice {
7; // Initialize without ever showing the recovery sentence.
optional uint32 auto_lock_delay_ms = 8; // Screensaver Timeout
optional uint32 u2f_counter = 9; // U2F Counter
optional bool dice_entropy =
10; // collect dice rolls on the device and mix them into the internal
// entropy before it is displayed or committed
}

/**
Expand Down Expand Up @@ -986,6 +989,10 @@ message FirmwareUpload {
*/
message DebugLinkDecision {
required bool yes_no = 1; // true for "Confirm", false for "Cancel"
optional string input =
2; // synthetic keyboard input for on-device entry flows (e.g. dice
// rolls '1'-'6', 'u' for undo); kept short so the decoded struct
// fits the tiny-message buffer
}

/**
Expand Down Expand Up @@ -1020,6 +1027,9 @@ message DebugLinkState {
12; // last auto completed recovery word
optional bytes firmware_hash = 13; // hash of the application and meta header
optional bytes storage_hash = 14; // hash of storage
optional bytes dice_digest =
15; // SHA-256 of the ASCII dice-roll string collected during a
// dice_entropy ResetDevice workflow
}

/**
Expand Down
1 change: 1 addition & 0 deletions types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ enum ButtonRequestType {
ButtonRequest_RemoveWipeCode = 36;
ButtonRequest_ChangeWipeCode = 37;
ButtonRequest_CreateWipeCode = 38;
ButtonRequest_DiceRoll = 39;
}

/**
Expand Down
Loading