pub fn hash_pairs<const NUM_BLOCKS: usize, const NUM_LEAVES: usize>(
pairs: &[[u8; 32]; NUM_LEAVES],
) -> [[u8; 32]; NUM_BLOCKS]
Expand description
Similar to hash_pair()
, but hashes multiple pairs at once efficiently.
ยงPanics
Panics when NUM_LEAVES != NUM_BLOCKS * BLOCK_LEN / OUT_LEN
.