Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
simbahebinbo committed Jul 11, 2023
1 parent 24877c1 commit ef65bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/blake2b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct Blake2bHasher(Blake2b);

impl Default for Blake2bHasher {
fn default() -> Self {
println!("~~~~~~~~~~~~~~~~~~~ Blake2bHasher default entry");
let blake2b = Blake2bBuilder::new(BLAKE2B_LEN)
// .personal(PERSONALIZATION)
// .key(BLAKE2B_KEY)
Expand Down
1 change: 1 addition & 0 deletions src/merkle_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ impl CompiledMerkleProof {
leaves: Vec<(H256, H256)>,
) -> Result<bool> {
let calculated_root = self.compute_root::<H>(leaves)?;
println!("~~~~~~~~~~~~~~ calculated_root: {:?}, root: {:?}", calculated_root, root);
Ok(&calculated_root == root)
}
}
Expand Down

0 comments on commit ef65bbc

Please sign in to comment.