Create precomputed transaction data for script verification.
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);
| 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. |