1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-13 18:18:08 +00:00

WIP - revert protobuf autoformatting

This commit is contained in:
grdddj 2023-05-12 14:22:02 +02:00
parent 3c1c2f3da6
commit 14976d8a96

View File

@ -80,9 +80,7 @@ message DebugLinkReseedRandom {
*/ */
message DebugLinkRecordScreen { message DebugLinkRecordScreen {
optional string target_directory = 1; // empty or missing to stop recording optional string target_directory = 1; // empty or missing to stop recording
optional uint32 refresh_index = 2 optional uint32 refresh_index = 2 [default=0]; // which index to give the screenshots (after emulator restarts)
[default =
0]; // which index to give the screenshots (after emulator restarts)
} }
/** /**
@ -91,10 +89,8 @@ message DebugLinkRecordScreen {
* @next DebugLinkState * @next DebugLinkState
*/ */
message DebugLinkGetState { message DebugLinkGetState {
optional bool wait_word_list = optional bool wait_word_list = 1; // Trezor T only - wait until mnemonic words are shown
1; // Trezor T only - wait until mnemonic words are shown optional bool wait_word_pos = 2; // Trezor T only - wait until reset word position is requested
optional bool wait_word_pos =
2; // Trezor T only - wait until reset word position is requested
optional bool wait_layout = 3; // wait until current layout changes optional bool wait_layout = 3; // wait until current layout changes
} }
@ -108,30 +104,22 @@ message DebugLinkState {
optional string matrix = 3; // current PIN matrix optional string matrix = 3; // current PIN matrix
optional bytes mnemonic_secret = 4; // current mnemonic secret optional bytes mnemonic_secret = 4; // current mnemonic secret
optional common.HDNodeType node = 5; // current BIP-32 node optional common.HDNodeType node = 5; // current BIP-32 node
optional bool passphrase_protection = optional bool passphrase_protection = 6; // is node/mnemonic encrypted using passphrase?
6; // is node/mnemonic encrypted using passphrase? optional string reset_word = 7; // word on device display during ResetDevice workflow
optional string reset_word = optional bytes reset_entropy = 8; // current entropy during ResetDevice workflow
7; // word on device display during ResetDevice workflow optional string recovery_fake_word = 9; // (fake) word on display during RecoveryDevice workflow
optional bytes reset_entropy = optional uint32 recovery_word_pos = 10; // index of mnemonic word the device is expecting during RecoveryDevice workflow
8; // current entropy during ResetDevice workflow optional uint32 reset_word_pos = 11; // index of mnemonic word the device is expecting during ResetDevice workflow
optional string recovery_fake_word = optional management.BackupType mnemonic_type = 12; // current mnemonic type (BIP-39/SLIP-39)
9; // (fake) word on display during RecoveryDevice workflow repeated string tokens = 13; // current layout represented as a list of string tokens
optional uint32 recovery_word_pos =
10; // index of mnemonic word the device is expecting during
// RecoveryDevice workflow
optional uint32 reset_word_pos = 11; // index of mnemonic word the device is
// expecting during ResetDevice workflow
optional management.BackupType mnemonic_type =
12; // current mnemonic type (BIP-39/SLIP-39)
repeated string tokens =
13; // current layout represented as a list of string tokens
} }
/** /**
* Request: Ask device to restart * Request: Ask device to restart
* @start * @start
*/ */
message DebugLinkStop {} message DebugLinkStop {
}
/** /**
* Response: Device wants host to log event * Response: Device wants host to log event
@ -185,6 +173,7 @@ message DebugLinkFlashErase {
optional uint32 sector = 1; optional uint32 sector = 1;
} }
/** /**
* Request: Erase the SD card * Request: Erase the SD card
* @start * @start
@ -196,6 +185,7 @@ message DebugLinkEraseSdCard {
// if false, it will be all 0xFF bytes. // if false, it will be all 0xFF bytes.
} }
/** /**
* Request: Start or stop tracking layout changes * Request: Start or stop tracking layout changes
* @start * @start
@ -206,9 +196,11 @@ message DebugLinkWatchLayout {
// if false, stop. // if false, stop.
} }
/** /**
* Request: Remove all the previous debug event state * Request: Remove all the previous debug event state
* @start * @start
* @next Success * @next Success
*/ */
message DebugLinkResetDebugEvents {} message DebugLinkResetDebugEvents {
}