Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
donatik27 authored Nov 28, 2024
1 parent aafd6a0 commit 806a8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions halo2-ecc/src/ecc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ where
let zero_cell = ctx.load_zero();
rounded_bits.resize(rounded_bitlen, zero_cell);
// is_started[idx] holds whether there is a 1 in bits with index at least (rounded_bitlen - idx)
// is_started[idx] holds whether there is a 1 in bits with an index at least (rounded_bitlen - idx)
let mut is_started = Vec::with_capacity(rounded_bitlen);
is_started.resize(rounded_bitlen - total_bits + 1, zero_cell);
for idx in 1..=total_bits {
Expand Down Expand Up @@ -755,7 +755,7 @@ where
&rounded_bits
[rounded_bitlen - window_bits * (idx + 1)..rounded_bitlen - window_bits * idx],
);
// this all needs strict add_unequal since A can be non-randomly chosen by adversary
// this all needs strict add_unequal since A can be non-randomly chosen by an adversary
curr_point = ec_add_unequal(chip, ctx, curr_point, add_point, true);
}
}
Expand Down

0 comments on commit 806a8ad

Please sign in to comment.