Create precomputed transaction data for script verification.
Synopsis
Declared in <kernel/bitcoinkernel.h>
[[nodiscard, __nonnull__]]
btck_PrecomputedTransactionData*
btck_precomputed_transaction_data_create(
btck_Transaction const* tx_to,
btck_TransactionOutput const** spent_outputs,
size_t spent_outputs_len);
Return Value
The precomputed data, or null on error.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
tx_to [in] |
Non‐null. |
spent_outputs [in] |
Nullable for non‐taproot verification. Points to an array of outputs spent by the transaction. |
spent_outputs_len [in] |
Length of the spent_outputs array. |
Created with MrDocs