Skip to content

Commit

Permalink
ensure extended_k <= S
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Aug 21, 2023
1 parent f9838c1 commit 15fd313
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions halo2_proofs/src/poly/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ impl<F: WithSmallOrderMulGroup<3>> EvaluationDomain<F> {
extended_k += 1;
}

// ensure extended_k <= S
assert!(extended_k <= F::S);

let mut extended_omega = F::ROOT_OF_UNITY;

// Get extended_omega, the 2^{extended_k}'th root of unity
Expand Down

0 comments on commit 15fd313

Please sign in to comment.