Skip to content

Commit

Permalink
fix: compute system_challenge_offset correctly (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
han0110 authored and jonathanpwang committed Nov 9, 2023
1 parent a9310f6 commit ee667e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snark-verifier/src/system/halo2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ impl<'a, F: PrimeField> Polynomials<'a, F> {
}

fn system_challenge_offset(&self) -> usize {
let num_challenge = self.num_challenge();
num_challenge[..num_challenge.len() - 3].iter().sum()
self.num_challenge.iter().sum()
}

fn theta(&self) -> Expression<F> {
Expand Down

0 comments on commit ee667e9

Please sign in to comment.