Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

PedersenCHasher

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

Fully qualified path: openzeppelin_merkle_tree::hashes::PedersenCHasher

pub impl PedersenCHasher of CommutativeHasher;

Impl functions

commutative_hash

Computes the Pedersen hash by chaining the two values with the length, sorting the pair first.

Fully qualified path: openzeppelin_merkle_tree::hashes::PedersenCHasher::commutative_hash

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