From d18ad92fc1f4956b7544753d8133e0bfa5cc2e4d Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 10 Mar 2014 18:08:34 +0100 Subject: [PATCH] use PinMatrixRequestType instead of arbitrary string --- protob/messages.proto | 2 +- protob/types.proto | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/protob/messages.proto b/protob/messages.proto index 8bfc06e59e..8a4b64b379 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -142,7 +142,7 @@ message ButtonAck { // // Response: PinMatrixAck, Cancel 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. diff --git a/protob/types.proto b/protob/types.proto index bce837c9ef..7739e9319a 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -57,6 +57,12 @@ enum ButtonRequestType { ButtonRequest_SignTx = 8; } +enum PinMatrixRequestType { + PinMatrixRequestType_Current = 1; + PinMatrixRequestType_NewFirst = 2; + PinMatrixRequestType_NewSecond = 3; +} + // Structure of BIP32 (hierarchical deterministic) node // Used for imports of private key into the device and exporting public key out of device message HDNodeType {