zebra_chain::sapling::commitment::pedersen_hashes

Function pedersen_hash

source
pub fn pedersen_hash(domain: [u8; 8], M: &BitVec<u8, Lsb0>) -> Fq
Expand description

Pedersen Hash Function

This is technically returning 255 (l_MerkleSapling) bits, not 256.

https://zips.z.cash/protocol/protocol.pdf#concretepedersenhash