mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-08 09:58:46 +00:00
add pin_cached + passphrase_cached fields to Features message; add GetFeatures message
This commit is contained in:
parent
137ae02853
commit
e96ec085d5
@ -63,6 +63,7 @@ enum MessageType {
|
|||||||
MessageType_DecryptedMessage = 52 [(wire_out) = true];
|
MessageType_DecryptedMessage = 52 [(wire_out) = true];
|
||||||
MessageType_SignIdentity = 53 [(wire_in) = true];
|
MessageType_SignIdentity = 53 [(wire_in) = true];
|
||||||
MessageType_SignedIdentity = 54 [(wire_out) = true];
|
MessageType_SignedIdentity = 54 [(wire_out) = true];
|
||||||
|
MessageType_GetFeatures = 55 [(wire_in) = true];
|
||||||
MessageType_DebugLinkDecision = 100 [(wire_debug_in) = true];
|
MessageType_DebugLinkDecision = 100 [(wire_debug_in) = true];
|
||||||
MessageType_DebugLinkGetState = 101 [(wire_debug_in) = true];
|
MessageType_DebugLinkGetState = 101 [(wire_debug_in) = true];
|
||||||
MessageType_DebugLinkState = 102 [(wire_debug_out) = true];
|
MessageType_DebugLinkState = 102 [(wire_debug_out) = true];
|
||||||
@ -81,9 +82,17 @@ enum MessageType {
|
|||||||
message Initialize {
|
message Initialize {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request: Ask for device details (no device reset)
|
||||||
|
* @next Features
|
||||||
|
*/
|
||||||
|
message GetFeatures {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Response: Reports various information about the device
|
* Response: Reports various information about the device
|
||||||
* @prev Initialize
|
* @prev Initialize
|
||||||
|
* @prev GetFeatures
|
||||||
*/
|
*/
|
||||||
message Features {
|
message Features {
|
||||||
optional string vendor = 1; // name of the manufacturer, e.g. "bitcointrezor.com"
|
optional string vendor = 1; // name of the manufacturer, e.g. "bitcointrezor.com"
|
||||||
@ -101,6 +110,8 @@ message Features {
|
|||||||
optional bytes revision = 13; // SCM revision of firmware
|
optional bytes revision = 13; // SCM revision of firmware
|
||||||
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 pin_cached = 16; // is PIN already cached in session?
|
||||||
|
optional bool passphrase_cached = 17; // is passphrase already cached in session?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user