summaryrefslogtreecommitdiffstats
path: root/src/proof.rs
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 /src/proof.rs
parent7c1afe0571293554e9c486a0e97aa9215ad64ee5 (diff)
Increase tree's speed avoiding to store data in a vec
Diffstat (limited to 'src/proof.rs')
-rw-r--r--src/proof.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/proof.rs b/src/proof.rs
index 4c42841..c893b08 100644
--- a/src/proof.rs
+++ b/src/proof.rs
@@ -110,12 +110,7 @@ impl Proofer for DefaultProofer<'_> {
buffer.extend_from_slice(right_hash);
let hash = self.hasher.hash(&buffer);
- next_level.push(Node::new_internal(
- &buffer,
- hash,
- left.clone(),
- right.clone(),
- ));
+ next_level.push(Node::new_internal(hash, left.clone(), right.clone()));
}
current_level = next_level;
current_index /= 2;