MutableTransactionSignatureCreator::MutableTransactionSignatureCreator

Constructors

Synopses

Declared in <script/sign.h>

Construct a signature creator for one input of a transaction.

MutableTransactionSignatureCreator(
    CMutableTransaction const& tx,
    unsigned int input_idx,
    CAmount const& amount,
    SignOptions const& options);
» more...

Construct a signature creator reusing precomputed transaction data.

MutableTransactionSignatureCreator(
    CMutableTransaction const& tx,
    unsigned int input_idx,
    CAmount const& amount,
    PrecomputedTransactionData const* txdata,
    SignOptions const& options);
» more...

Parameters

NameDescription
txThe transaction whose input is being signed.
input_idxThe index of the input to sign.
amountThe value of the output being spent.
optionsOptions controlling how the input is signed.
txdataPrecomputed transaction data shared across inputs.