pub fn batch_compute_sighashes(
tx: &Transaction,
prevouts: &[TransactionOutput],
sighash_type: SighashType,
) -> Result<Vec<[u8; 32]>, ConsensusError>Expand description
Batch compute sighashes for all inputs of a transaction
This function computes sighashes for all inputs at once, which is useful when validating transactions with many inputs. The sighashes are computed in parallel when the production feature is enabled.
§Arguments
tx- The transaction being signedprevouts- Previous transaction outputs (for input validation)sighash_type- Type of sighash to calculate (must be the same for all inputs)
§Returns
Vector of 32-byte hashes, one per input (in same order)