diff --git a/snark-verifier/src/pcs/kzg/accumulation.rs b/snark-verifier/src/pcs/kzg/accumulation.rs index 122ddad7..54a4176d 100644 --- a/snark-verifier/src/pcs/kzg/accumulation.rs +++ b/snark-verifier/src/pcs/kzg/accumulation.rs @@ -2,7 +2,7 @@ use crate::{ loader::{native::NativeLoader, LoadedScalar, Loader}, pcs::{kzg::KzgAccumulator, AccumulationScheme, AccumulationSchemeProver}, util::{ - arithmetic::{Curve, CurveAffine, Field, MultiMillerLoop, PrimeField}, + arithmetic::{Curve, CurveAffine, Field, MultiMillerLoop}, msm::Msm, transcript::{TranscriptRead, TranscriptWrite}, }, @@ -20,7 +20,6 @@ impl AccumulationScheme for KzgAs where M: MultiMillerLoop, M::G1Affine: CurveAffine, - M::Fr: PrimeField, L: Loader, MOS: Clone + Debug, { @@ -142,7 +141,6 @@ impl AccumulationSchemeProver for KzgAs where M: MultiMillerLoop, M::G1Affine: CurveAffine, - M::Fr: PrimeField, MOS: Clone + Debug, { type ProvingKey = KzgAsProvingKey; diff --git a/snark-verifier/src/pcs/kzg/decider.rs b/snark-verifier/src/pcs/kzg/decider.rs index cfc64005..bd2d8f5e 100644 --- a/snark-verifier/src/pcs/kzg/decider.rs +++ b/snark-verifier/src/pcs/kzg/decider.rs @@ -68,7 +68,7 @@ mod native { AccumulationDecider, }, util::{ - arithmetic::{Group, MillerLoopResult, MultiMillerLoop, PrimeField}, + arithmetic::{Group, MillerLoopResult, MultiMillerLoop}, Itertools, }, Error, @@ -79,7 +79,6 @@ mod native { where M: MultiMillerLoop, M::G1Affine: CurveAffine, - M::Fr: PrimeField, MOS: Clone + Debug, { type DecidingKey = KzgDecidingKey; diff --git a/snark-verifier/src/pcs/kzg/multiopen/bdfg21.rs b/snark-verifier/src/pcs/kzg/multiopen/bdfg21.rs index 02452221..7c2313b5 100644 --- a/snark-verifier/src/pcs/kzg/multiopen/bdfg21.rs +++ b/snark-verifier/src/pcs/kzg/multiopen/bdfg21.rs @@ -1,4 +1,4 @@ -use halo2_curves::group::prime::PrimeCurveAffine; +use halo2_curves::{ff::PrimeField, group::prime::PrimeCurveAffine}; use crate::{ cost::{Cost, CostEstimation}, @@ -8,7 +8,7 @@ use crate::{ PolynomialCommitmentScheme, Query, }, util::{ - arithmetic::{CurveAffine, Fraction, MultiMillerLoop, PrimeField}, + arithmetic::{CurveAffine, Fraction, MultiMillerLoop}, msm::Msm, transcript::TranscriptRead, Itertools, @@ -30,7 +30,6 @@ impl PolynomialCommitmentScheme for KzgAs where M: MultiMillerLoop, M::G1Affine: CurveAffine, - M::Fr: PrimeField + Ord, L: Loader, { type VerifyingKey = KzgSuccinctVerifyingKey; @@ -373,7 +372,6 @@ where impl CostEstimation for KzgAs where M: MultiMillerLoop, - M::Fr: PrimeField, { type Input = Vec>; diff --git a/snark-verifier/src/pcs/kzg/multiopen/gwc19.rs b/snark-verifier/src/pcs/kzg/multiopen/gwc19.rs index 288f1aba..aa5b800b 100644 --- a/snark-verifier/src/pcs/kzg/multiopen/gwc19.rs +++ b/snark-verifier/src/pcs/kzg/multiopen/gwc19.rs @@ -26,7 +26,6 @@ impl PolynomialCommitmentScheme for KzgAs where M: MultiMillerLoop, M::G1Affine: CurveAffine, - M::Fr: PrimeField, L: Loader, { type VerifyingKey = KzgSuccinctVerifyingKey; @@ -164,7 +163,6 @@ where impl CostEstimation for KzgAs where M: MultiMillerLoop, - M::Fr: PrimeField, { type Input = Vec>; diff --git a/snark-verifier/src/system/halo2/test/kzg.rs b/snark-verifier/src/system/halo2/test/kzg.rs index 2340e624..6528a822 100644 --- a/snark-verifier/src/system/halo2/test/kzg.rs +++ b/snark-verifier/src/system/halo2/test/kzg.rs @@ -1,6 +1,6 @@ use crate::{ system::halo2::test::{read_or_create_srs, MainGateWithRange}, - util::arithmetic::{fe_to_limbs, CurveAffine, MultiMillerLoop, PrimeField}, + util::arithmetic::{fe_to_limbs, CurveAffine, MultiMillerLoop}, }; use halo2_curves::{serde::SerdeObject, CurveExt}; use halo2_proofs::poly::{commitment::ParamsProver, kzg::commitment::ParamsKZG}; @@ -21,7 +21,6 @@ pub const BITS: usize = 68; pub fn setup(k: u32) -> ParamsKZG where - M::Fr: PrimeField, M::G1Affine: SerdeObject + CurveAffine, M::G1: CurveExt, {