mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
protob: Add Decred support
This commit is contained in:
parent
5afb028b2f
commit
65c3251a42
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user