pedersen_hash

Function pedersen_hash 

Source
pub fn pedersen_hash(inputs: &[Fr]) -> Fr
Expand description

Compute the Pedersen hash of a slice of field elements.

This matches the Noir standard library’s pedersen_hash function exactly:

  • Generators are derived from the "pedersen_hash" domain separator
  • A length generator is derived from "pedersen_hash_length"
  • Result is the x-coordinate of the accumulated point