diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:31:21 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:31:21 +0000 |
| commit | c402255ea5ef6510a583b79e49f4246dc618c362 (patch) | |
| tree | 1ad4a10d8aaabce31877d4f750c596c24a3537b2 /benches/bigfile.rs | |
| parent | 7bdb59e386b93c37cdc2c2b88fc2945ab0e64d57 (diff) | |
Proofer uses self hasher on `verify`
Diffstat (limited to 'benches/bigfile.rs')
| -rw-r--r-- | benches/bigfile.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benches/bigfile.rs b/benches/bigfile.rs index b2b013d..3d2088d 100644 --- a/benches/bigfile.rs +++ b/benches/bigfile.rs @@ -48,13 +48,13 @@ fn cleanup_files(filenames: &Vec<String>) -> std::io::Result<()> { fn test_merkle_tree<H: Hasher + Clone + 'static>(hasher: H, files: &Vec<Vec<u8>>) { let tree = MerkleTree::new(hasher.clone(), files); - let proofer = DefaultProofer::new(&hasher, tree.leaves().clone()); + let proofer = DefaultProofer::new(hasher, tree.leaves().clone()); let root = tree.root(); let root_hash = root.hash(); for i in 0..files.len() { let proof = proofer.generate(i).expect("proof generation failed"); - assert!(proofer.verify(&proof, &files[i], root_hash, &hasher)); + assert!(proofer.verify(&proof, &files[i], root_hash)); } } |
