btck::ScriptPubkey::Verify

Verifies a spending input against this script pubkey.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

bool
Verify(
    int64_t amount,
    Transaction const& tx_to,
    PrecomputedTransactionData const* precomputed_txdata,
    unsigned int input_index,
    ScriptVerificationFlags flags,
    ScriptVerifyStatus& status) const;

Return Value

True when the input satisfies the script.

Parameters

NameDescription
amountThe value of the output being spent, in satoshis.
tx_toThe spending transaction.
precomputed_txdataOptional precomputed signature-hash data, or null.
input_indexThe index of the input under verification.
flagsThe script verification flags to apply.
statusReceives the verification status.