|
|
|
@ -268,7 +268,8 @@ message TxAck {
|
|
|
|
|
optional bytes witness = 13; // witness data, only set for EXTERNAL inputs
|
|
|
|
|
optional bytes ownership_proof = 14; // SLIP-0019 proof of ownership, only set for EXTERNAL inputs
|
|
|
|
|
optional bytes commitment_data = 15; // optional commitment data for the SLIP-0019 proof of ownership
|
|
|
|
|
|
|
|
|
|
optional bytes orig_hash = 16; // tx_hash of the original transaction where this input was spent (used when creating a replacement transaction)
|
|
|
|
|
optional uint32 orig_index = 17; // index of the input in the original transaction (used when creating a replacement transaction)
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* Structure representing compiled transaction output
|
|
|
|
@ -291,6 +292,8 @@ message TxAck {
|
|
|
|
|
// optional uint32 decred_script_version = 7; // only for Decred // deprecated -> only 0 is supported
|
|
|
|
|
// optional bytes block_hash_bip115 = 8; // BIP-115 support dropped
|
|
|
|
|
// optional uint32 block_height_bip115 = 9; // BIP-115 support dropped
|
|
|
|
|
optional bytes orig_hash = 10; // tx_hash of the original transaction where this output was present (used when creating a replacement transaction)
|
|
|
|
|
optional uint32 orig_index = 11; // index of the output in the original transaction (used when creating a replacement transaction)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -311,12 +314,12 @@ message TxInput {
|
|
|
|
|
optional MultisigRedeemScriptType multisig = 7; // Filled if input is going to spend multisig tx
|
|
|
|
|
required uint64 amount = 8; // amount of previous transaction output
|
|
|
|
|
optional uint32 decred_tree = 9; // only for Decred
|
|
|
|
|
reserved 10, 11, 12; // fields which are in use, or have been in the past, in TxInputType
|
|
|
|
|
optional bytes witness = 13; // witness data, only set for EXTERNAL inputs
|
|
|
|
|
optional bytes ownership_proof = 14; // SLIP-0019 proof of ownership, only set for EXTERNAL inputs
|
|
|
|
|
optional bytes commitment_data = 15; // optional commitment data for the SLIP-0019 proof of ownership
|
|
|
|
|
|
|
|
|
|
// fields which are in use, or have been in the past, in TxInputType
|
|
|
|
|
reserved 10, 11, 12;
|
|
|
|
|
optional bytes orig_hash = 16; // tx_hash of the original transaction where this input was spent (used when creating a replacement transaction)
|
|
|
|
|
optional uint32 orig_index = 17; // index of the input in the original transaction (used when creating a replacement transaction)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Data type for transaction output to be signed.
|
|
|
|
@ -329,9 +332,9 @@ message TxOutput {
|
|
|
|
|
optional OutputScriptType script_type = 4 [default=PAYTOADDRESS]; // 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
|
|
|
|
|
|
|
|
|
|
// fields which are in use, or have been in the past, in TxOutputType
|
|
|
|
|
reserved 7, 8, 9;
|
|
|
|
|
reserved 7, 8, 9; // fields which are in use, or have been in the past, in TxOutputType
|
|
|
|
|
optional bytes orig_hash = 10; // tx_hash of the original transaction where this output was present (used when creating a replacement transaction)
|
|
|
|
|
optional uint32 orig_index = 11; // index of the output in the original transaction (used when creating a replacement transaction)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Data type for metadata about previous transaction which contains the UTXO being spent.
|
|
|
|
@ -477,7 +480,7 @@ message TxAckPrevOutput {
|
|
|
|
|
*
|
|
|
|
|
* @next TxRequest
|
|
|
|
|
*/
|
|
|
|
|
message TxAckPrevExtraData {
|
|
|
|
|
message TxAckPrevExtraData {
|
|
|
|
|
option (wire_type) = 22;
|
|
|
|
|
|
|
|
|
|
required TxAckPrevExtraDataWrapper tx = 1;
|
|
|
|
|