wallet::DescriptorScriptPubKeyMan::SignTransaction

Creates signatures for this spkm's inputs and adds them to the transaction.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

virtual
bool
SignTransaction(
    CMutableTransaction& tx,
    std::map<COutPoint, Coin> const& coins,
    int sighash,
    std::map<int, bilingual_str>& input_errors) const override;

Return Value

true if all inputs were signed.

Parameters

NameDescription
txThe transaction to sign, updated in place.
coinsThe previous outputs spent by the transaction's inputs.
sighashThe signature hash type to use.
input_errorsFilled with a per-input error message for any input that could not be signed.