From 65c3251a4280112d8069a2f6c7117e5043c75d24 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sun, 17 Dec 2017 21:56:31 +0000 Subject: [PATCH] protob: Add Decred support --- protob/messages.proto | 1 + protob/types.proto | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/protob/messages.proto b/protob/messages.proto index 4faca73ea..e31d5b0fe 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -598,6 +598,7 @@ message SignTx { optional string coin_name = 3 [default='Bitcoin']; // coin to use optional uint32 version = 4 [default=1]; // transaction version optional uint32 lock_time = 5 [default=0]; // transaction lock_time + optional uint32 decred_expiry = 6; } /** diff --git a/protob/types.proto b/protob/types.proto index a6aaeee5a..33c01ea28 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -197,6 +197,7 @@ message TxInputType { optional InputScriptType script_type = 6 [default=SPENDADDRESS]; // defines template of input script optional MultisigRedeemScriptType multisig = 7; // Filled if input is going to spend multisig tx optional uint64 amount = 8; // amount of previous transaction output (for segwit only) + optional uint32 decred_tree = 9; } /** @@ -211,6 +212,7 @@ message TxOutputType { required OutputScriptType script_type = 4; // output script type optional MultisigRedeemScriptType multisig = 5; // defines multisig address; script_type must be PAYTOMULTISIG optional bytes op_return_data = 6; // defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0 + optional uint32 decred_script_version = 7; } /** @@ -220,6 +222,7 @@ message TxOutputType { message TxOutputBinType { required uint64 amount = 1; required bytes script_pubkey = 2; + optional uint32 decred_script_version = 3; } /** @@ -236,6 +239,7 @@ message TransactionType { optional uint32 outputs_cnt = 7; optional bytes extra_data = 8; optional uint32 extra_data_len = 9; + optional uint32 decred_expiry = 10; } /**