Skip to content

Commit

Permalink
Update plonky2/src/hash/merkle_proofs.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Robin Salen <[email protected]>
  • Loading branch information
sai-deng and Nashtare authored Jul 15, 2024
1 parent 7b1ce45 commit 782f5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plonky2/src/hash/merkle_proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn verify_batch_merkle_proof_to_cap<F: RichField, H: Hasher<F>>(
let mut current_digest = H::hash_or_noop(&leaf_data[0]);
let mut current_height = leaf_heights[0];
let mut leaf_data_index = 1;
for &sibling_digest in proof.siblings.iter() {
for &sibling_digest in &proof.siblings {
let bit = leaf_index & 1;
leaf_index >>= 1;
current_digest = if bit == 1 {
Expand Down

0 comments on commit 782f5eb

Please sign in to comment.