Skip to main content

batch_hash160

Function batch_hash160 

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

Batch HASH160: Compute RIPEMD160(SHA256(x)) for multiple inputs

This is Bitcoin’s HASH160 operation (OP_HASH160 in script).

§Arguments

  • inputs - Slice of byte slices to hash

§Returns

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