summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-06-25 08:18:23 +0000
committerSanto Cariotti <santo@dcariotti.me>2025-06-25 08:18:23 +0000
commit7bdb59e386b93c37cdc2c2b88fc2945ab0e64d57 (patch)
tree0b8224e6294df174fdec18f44459c8a33a2a0404 /README.md
parent7c1afe0571293554e9c486a0e97aa9215ad64ee5 (diff)
Increase tree's speed avoiding to store data in a vec
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index b16fa15..4f1e734 100644
--- a/README.md
+++ b/README.md
@@ -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));
}
```