From b2b3abc7ed71285a6805e3cb9fd7910075b817ae Mon Sep 17 00:00:00 2001 From: slush Date: Tue, 13 Nov 2012 16:06:40 +0000 Subject: [PATCH] protobuf specs changes --- bitkey_proto/bitkey.proto | 9 ++++++++- bitkey_proto/mapping.py | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bitkey_proto/bitkey.proto b/bitkey_proto/bitkey.proto index 212661d..2390fe6 100644 --- a/bitkey_proto/bitkey.proto +++ b/bitkey_proto/bitkey.proto @@ -17,12 +17,14 @@ message Features { optional bool otp = 2; optional bool pin = 3; optional bool spv = 4; - repeated Algorithm algo = 5; + optional uint64 maxfee_kb = 5; + repeated Algorithm algo = 6; } // Description: Test if another side is still alive. // Response: None or Success message Ping { + optional string message = 1; } // Description: Response message for previous request with given id. @@ -75,6 +77,11 @@ message Entropy { required bytes entropy = 1; } +// Response: Success, OtpRequest, PinRequest, Failure +message SetMaxFeeKb { + required uint64 maxfee_kb= 1; +} + // Response: MasterPublicKey, Failure message GetMasterPublicKey { required Algorithm algo = 1 [default=BIP32]; diff --git a/bitkey_proto/mapping.py b/bitkey_proto/mapping.py index de225b5..4400954 100644 --- a/bitkey_proto/mapping.py +++ b/bitkey_proto/mapping.py @@ -26,6 +26,7 @@ map_type_to_class = { 22: proto.SignedInput, 23: proto.TxInput, 24: proto.TxOutput, + 25: proto.SetMaxFeeKb, } map_class_to_type = {}