1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

protob: Add Decred support

This commit is contained in:
Saleem Rashid 2017-12-17 21:56:31 +00:00 committed by Pavol Rusnak
parent 5afb028b2f
commit 65c3251a42
2 changed files with 5 additions and 0 deletions

View File

@ -598,6 +598,7 @@ message SignTx {
optional string coin_name = 3 [default='Bitcoin']; // coin to use optional string coin_name = 3 [default='Bitcoin']; // coin to use
optional uint32 version = 4 [default=1]; // transaction version optional uint32 version = 4 [default=1]; // transaction version
optional uint32 lock_time = 5 [default=0]; // transaction lock_time optional uint32 lock_time = 5 [default=0]; // transaction lock_time
optional uint32 decred_expiry = 6;
} }
/** /**

View File

@ -197,6 +197,7 @@ message TxInputType {
optional InputScriptType script_type = 6 [default=SPENDADDRESS]; // defines template of input script 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 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 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 required OutputScriptType script_type = 4; // output script type
optional MultisigRedeemScriptType multisig = 5; // defines multisig address; script_type must be PAYTOMULTISIG 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 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 { message TxOutputBinType {
required uint64 amount = 1; required uint64 amount = 1;
required bytes script_pubkey = 2; required bytes script_pubkey = 2;
optional uint32 decred_script_version = 3;
} }
/** /**
@ -236,6 +239,7 @@ message TransactionType {
optional uint32 outputs_cnt = 7; optional uint32 outputs_cnt = 7;
optional bytes extra_data = 8; optional bytes extra_data = 8;
optional uint32 extra_data_len = 9; optional uint32 extra_data_len = 9;
optional uint32 decred_expiry = 10;
} }
/** /**