Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

PoseidonCHasher

Computes the Poseidon commutative hash of a sorted pair of felt252 values.

Fully qualified path: openzeppelin_merkle_tree::hashes::PoseidonCHasher

pub impl PoseidonCHasher of CommutativeHasher;

Impl functions

commutative_hash

Computes the Poseidon hash of the concatenation of two values, sorting the pair first.

Fully qualified path: openzeppelin_merkle_tree::hashes::PoseidonCHasher::commutative_hash

fn commutative_hash(a: felt252, b: felt252) -> felt252