Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobottazzi committed Nov 2, 2023
1 parent 989c08e commit bb06e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zk_prover/src/merkle_sum_tree/aggregation_mst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl<const N_ASSETS: usize, const N_BYTES: usize> AggregationMerkleSumTree<N_ASS
&self.mini_trees[index]
}

/// Generates a MerkleProof for the user with the given index in the mini tree with the given index
/// Generates a MerkleProof for the user with the given index in the mini tree with the given index (according to the order in which the mini trees were passed to the constructor)
pub fn generate_proof(
&self,
user_index: usize,
Expand Down
2 changes: 1 addition & 1 deletion zk_prover/src/merkle_sum_tree/utils/create_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn create_proof<const N_ASSETS: usize, const N_BYTES: usize>(
let mut path_indices = vec![Fp::from(0); depth];
let mut current_index = index;

let leaf = &nodes[0][index]; // Added this line to store the leaf node
let leaf = &nodes[0][index];

for level in 0..depth {
let position = current_index % 2;
Expand Down

0 comments on commit bb06e7c

Please sign in to comment.