From e973056669a9ce7808d0b8753f5316f41ee4f5fc Mon Sep 17 00:00:00 2001 From: slush0 Date: Tue, 4 Feb 2014 17:47:29 +0100 Subject: [PATCH] Added ButtonRequestType enum --- protob/messages.proto | 4 ++-- protob/types.proto | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/protob/messages.proto b/protob/messages.proto index 244aab2fee..18f5fc5ab5 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -129,8 +129,8 @@ message Failure { // Computer should respond with ButtonAck message or Cancel to cancel // the original request. message ButtonRequest { - optional string code = 1; - optional string data = 2; + optional ButtonRequestType code = 1; + optional bytes data = 2 [(binary) = true]; } // Computer agrees to wait for HW button press. diff --git a/protob/types.proto b/protob/types.proto index 8afb4b4c77..251d6597cc 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -48,6 +48,10 @@ enum RequestType { TXOUTPUT = 1; } +enum ButtonRequestType { + ButtonRequest_FeeOverThreshold = 1; +} + // Structure of BIP32 (hierarchical deterministic) node // Used for imports of private key into the device and exporting public key out of device message HDNodeType {