Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Sep 1, 2023
1 parent c085798 commit d3e3ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions halo2_proofs/src/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fn multiexp_serial<C: CurveAffine>(coeffs: &[C::Scalar], bases: &[C], acc: &mut
tmp as usize
}

// Ideally `segments` should be calculated from the max number of bits among all scalars. But this requires a scan of all scalars, so we don't implement it for now.
let segments = (C::Scalar::NUM_BITS as usize + c - 1) / c;

// this can be optimized
Expand Down

0 comments on commit d3e3ba3

Please sign in to comment.