1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-18 11:21:11 +00:00

use PinMatrixRequestType instead of arbitrary string

This commit is contained in:
Pavol Rusnak 2014-03-10 18:08:34 +01:00
parent 29dfac6691
commit d18ad92fc1
2 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,7 @@ message ButtonAck {
// //
// Response: PinMatrixAck, Cancel // Response: PinMatrixAck, Cancel
message PinMatrixRequest { message PinMatrixRequest {
optional string message = 1; // Human readable message optional PinMatrixRequestType type = 1;
} }
// Message is sent by the computer as a response to PinMatrixRequest previously sent by the device. // Message is sent by the computer as a response to PinMatrixRequest previously sent by the device.

View File

@ -57,6 +57,12 @@ enum ButtonRequestType {
ButtonRequest_SignTx = 8; ButtonRequest_SignTx = 8;
} }
enum PinMatrixRequestType {
PinMatrixRequestType_Current = 1;
PinMatrixRequestType_NewFirst = 2;
PinMatrixRequestType_NewSecond = 3;
}
// Structure of BIP32 (hierarchical deterministic) node // Structure of BIP32 (hierarchical deterministic) node
// Used for imports of private key into the device and exporting public key out of device // Used for imports of private key into the device and exporting public key out of device
message HDNodeType { message HDNodeType {