Skip to main content

btck_precomputed_transaction_data_create

Function btck_precomputed_transaction_data_create 

Source
pub unsafe extern "C" fn btck_precomputed_transaction_data_create(
    tx_to: *const btck_Transaction,
    spent_outputs: *mut *const btck_TransactionOutput,
    spent_outputs_len: usize,
) -> *mut btck_PrecomputedTransactionData
Expand description

@brief Create precomputed transaction data for script verification.

@param[in] tx_to Non-null. @param[in] spent_outputs Nullable for non-taproot verification. Points to an array of outputs spent by the transaction. @param[in] spent_outputs_len Length of the spent_outputs array. @return The precomputed data, or null on error.