poseidon2_compression_sparse

Function poseidon2_compression_sparse 

Source
pub fn poseidon2_compression_sparse(left: &BigInt, right: &BigInt) -> BigInt
Expand 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 BigInt
  • right - Right input as BigInt

§Returns

Returns the hash result as a BigInt value.