mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
Added ButtonRequest, ButtonAck, ButtonCancel messages
This commit is contained in:
parent
89f0ca3f7e
commit
694452c861
1354
bitkeylib/bitkey_pb2.py
Normal file
1354
bitkeylib/bitkey_pb2.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,9 @@ map_type_to_class = {
|
||||
23: proto.TxInput,
|
||||
24: proto.TxOutput,
|
||||
25: proto.SetMaxFeeKb,
|
||||
26: proto.ButtonRequest,
|
||||
27: proto.ButtonAck,
|
||||
28: proto.ButtonCancel,
|
||||
100: proto.DebugLinkDecision,
|
||||
101: proto.DebugLinkGetState,
|
||||
102: proto.DebugLinkState,
|
||||
|
@ -95,6 +95,21 @@ message UUID {
|
||||
required bytes UUID = 1;
|
||||
}
|
||||
|
||||
// Message can be sent by the *device* as a resopnse to any request.
|
||||
// Device is waiting for HW button press. No action is required from computer
|
||||
// Computer should respond with ButtonAck message or ButtonCancel to cancel
|
||||
// the original request.
|
||||
message ButtonRequest {
|
||||
}
|
||||
|
||||
// Computer agrees to wait for HW button press.
|
||||
message ButtonAck {
|
||||
}
|
||||
|
||||
// Computer want to cancel current action (don't wait to HW button press)
|
||||
message ButtonCancel {
|
||||
}
|
||||
|
||||
// Message can be sent by the *device* as a response to any request.
|
||||
// Message asks computer to send back OtpAck with the password printed on the device's display.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user