diff --git a/halo2_proofs/src/poly/kzg/commitment.rs b/halo2_proofs/src/poly/kzg/commitment.rs index 2eed21276d..c9157f843d 100644 --- a/halo2_proofs/src/poly/kzg/commitment.rs +++ b/halo2_proofs/src/poly/kzg/commitment.rs @@ -90,8 +90,8 @@ where let mut g_lagrange_projective = vec![E::G1::identity(); n as usize]; let mut root = E::Scalar::ROOT_OF_UNITY; for _ in k..E::Scalar::S { - root = root.square(); - } + root = root.square(); + } let n_inv = E::Scalar::from(n) .invert() .expect("inversion should be ok for n = 1<