pub fn poseidon2_compression_sparse(left: &BigInt, right: &BigInt) -> BigIntExpand description
Poseidon2 hash of two field elements using optimized compression mode
Hash function for BigInt values, used for inner nodes of the sparse Merkle tree. Converts BigInt inputs to field elements, performs Poseidon2 compression, and converts the result back to BigInt.
§Arguments
left- Left input as BigIntright- Right input as BigInt
§Returns
Returns the hash result as a BigInt value.