Skip to main content

batch_double_sha256

Function batch_double_sha256 

Source
pub fn batch_double_sha256(inputs: &[&[u8]]) -> Vec<[u8; 32]>
Expand description

Batch double SHA256: Compute SHA256(SHA256(x)) for multiple inputs

This is Bitcoin’s standard hash function used for transaction IDs, block hashes, etc.

§Arguments

  • inputs - Slice of byte slices to hash

§Returns

Vector of 32-byte hashes, one per input (in same order)