diff --git a/rln/src/lib.rs b/rln/src/lib.rs index 7fe6670..6442ba7 100644 --- a/rln/src/lib.rs +++ b/rln/src/lib.rs @@ -2,8 +2,8 @@ #![allow(unused_imports)] pub mod ffi; -pub mod identity; pub mod hash; +pub mod identity; pub mod merkle_tree; pub mod poseidon_tree; pub mod public; diff --git a/rln/src/poseidon_tree.rs b/rln/src/poseidon_tree.rs index 48aff88..7cbdbe7 100644 --- a/rln/src/poseidon_tree.rs +++ b/rln/src/poseidon_tree.rs @@ -18,7 +18,7 @@ pub type Branch = merkle_tree::Branch; #[allow(dead_code)] pub type Proof = merkle_tree::Proof; -#[derive(Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct PoseidonHash; #[allow(clippy::fallible_impl_from)] // TODO @@ -70,6 +70,10 @@ pub mod test { )) ); let proof = tree.proof(3).expect("proof should exist"); + + //println!("Proof {:#?}", proof); + //println!("Tree {:#?}", tree); + assert_eq!( proof, crate::merkle_tree::Proof(vec![