ensure extended_k <= S

This commit is contained in:
zhiqiangxu 2023-08-21 22:10:20 +08:00
parent f9838c127e
commit 15fd313eef
1 changed files with 3 additions and 0 deletions

View File

@ -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