semaphore_rs_poseidon/
lib.rs1use ruint::aliases::U256;
2use semaphore_rs_hasher::Hasher;
3
4pub mod constants;
5pub mod poseidon;
6
7pub struct Poseidon;
8
9impl Hasher for Poseidon {
10 type Hash = U256;
11
12 fn hash_node(left: &Self::Hash, right: &Self::Hash) -> Self::Hash {
13 poseidon::hash2(*left, *right)
14 }
15}