diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:18:23 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:18:23 +0000 |
| commit | 7bdb59e386b93c37cdc2c2b88fc2945ab0e64d57 (patch) | |
| tree | 0b8224e6294df174fdec18f44459c8a33a2a0404 /README.md | |
| parent | 7c1afe0571293554e9c486a0e97aa9215ad64ee5 (diff) | |
Increase tree's speed avoiding to store data in a vec
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ fn main() { let proof = proofer.generate(0).expect("Couldn't generate proof"); assert!(tree.root().hash() == root_hash); - assert!(proofer.verify(&proof, tree.leaves()[0].data(), tree.root().hash(), &hasher)); + assert!(proofer.verify(&proof, std::fs::read(&filenames[0]).unwrap(), tree.root().hash(), &hasher)); } ``` |
