pub fn poseidon2_hash2(
a: FpBN256,
b: FpBN256,
dom_sep: Option<FpBN256>,
) -> FpBN256Expand 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 hashb- Second field element to hashdom_sep- Optional domain separator (uses 0 if None)
§Returns
Returns the first lane (state[0]) of the permutation result.