1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

Added ButtonRequest, ButtonAck, ButtonCancel messages

This commit is contained in:
slush 2012-12-13 18:47:37 +00:00
parent 89f0ca3f7e
commit 694452c861
3 changed files with 1372 additions and 0 deletions

1354
bitkeylib/bitkey_pb2.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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,

View File

@ -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.
//