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