poseidon2_hash3

Function poseidon2_hash3 

Source
pub fn poseidon2_hash3(
    a: FpBN256,
    b: FpBN256,
    c: FpBN256,
    dom_sep: Option<FpBN256>,
) -> FpBN256
Expand description

Poseidon2 hash of 3 field elements (t = 4, r=3, c=1)

Performs a Poseidon2 permutation on three field elements with an optional domain separator, returning the first element (state[0]).

§Arguments

  • a - First field element to hash
  • b - Second field element to hash
  • c - Third field element to hash
  • dom_sep - Optional domain separator (uses 0 if None)

§Returns

Returns the first element (state[0]) of the permutation result.