poseidon2_hash2

Function poseidon2_hash2 

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

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

Performs a Poseidon2 permutation on two 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
  • dom_sep - Optional domain separator (uses 0 if None)

§Returns

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