Skip to main content

hash_n_to_one

Function hash_n_to_one 

Source
pub fn hash_n_to_one(inputs: &[[Fp; 4]]) -> [Fp; 4]
Expand description

Iteratively compress inputs left-to-right via hash_two_to_one.

Returns inputs[0] when the slice has a single element, mirroring the Go reference’s HashNToOne.

§Panics

Panics if inputs is empty.