diff --git a/snark-verifier/src/pcs/kzg/decider.rs b/snark-verifier/src/pcs/kzg/decider.rs index bd2d8f5e..a39ca1ae 100644 --- a/snark-verifier/src/pcs/kzg/decider.rs +++ b/snark-verifier/src/pcs/kzg/decider.rs @@ -132,9 +132,9 @@ mod evm { impl AccumulationDecider> for KzgAs where M: MultiMillerLoop, - M::G1Affine: CurveAffine, + M::Fr: PrimeField, + M::G1Affine: CurveAffine, M::G2Affine: CurveAffine, - ::ScalarExt: PrimeField, MOS: Clone + Debug, { type DecidingKey = KzgDecidingKey; @@ -183,11 +183,7 @@ mod evm { loader.code_mut().runtime_append(code); let challenge = loader.scalar(Value::Memory(challenge_ptr)); - let powers_of_challenge = - LoadedScalar::<::ScalarExt>::powers( - &challenge, - lhs.len(), - ); + let powers_of_challenge = LoadedScalar::::powers(&challenge, lhs.len()); let [lhs, rhs] = [lhs, rhs].map(|msms| { msms.iter() .zip(powers_of_challenge.iter()) diff --git a/snark-verifier/src/system/halo2/test/kzg.rs b/snark-verifier/src/system/halo2/test/kzg.rs index 6528a822..7b5ee136 100644 --- a/snark-verifier/src/system/halo2/test/kzg.rs +++ b/snark-verifier/src/system/halo2/test/kzg.rs @@ -30,7 +30,7 @@ where pub fn main_gate_with_range_with_mock_kzg_accumulator< C: CurveAffine, M: MultiMillerLoop, ->() -> MainGateWithRange<::ScalarExt> +>() -> MainGateWithRange where M::G2Affine: CurveAffine + SerdeObject, M::G1Affine: CurveAffine + SerdeObject,