Skip to content

Commit

Permalink
fix: remove uneeded Abomonation bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Jan 30, 2024
1 parent 9ba8a37 commit 3d5e341
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/spartan/batched.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use ff::Field;
use serde::{Deserialize, Serialize};

use abomonation::Abomonation;
use itertools::Itertools;
use once_cell::sync::OnceCell;
use rayon::prelude::*;
Expand Down Expand Up @@ -103,8 +102,6 @@ impl<E: Engine, EE: EvaluationEngineTrait<E>> DigestHelperTrait<E> for VerifierK

impl<E: Engine, EE: EvaluationEngineTrait<E>> BatchedRelaxedR1CSSNARKTrait<E>
for BatchedRelaxedR1CSSNARK<E, EE>
where
<E::Scalar as ff::PrimeField>::Repr: Abomonation,
{
type ProverKey = ProverKey<E, EE>;

Expand Down
10 changes: 2 additions & 8 deletions src/spartan/batched_ppsnark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ use crate::{
},
zip_with, zip_with_for_each, Commitment, CommitmentKey, CompressedCommitment,
};
use abomonation::Abomonation;
use ff::{Field, PrimeField};
use ff::Field;
use itertools::{chain, Itertools as _};
use once_cell::sync::*;
use rayon::prelude::*;
Expand Down Expand Up @@ -126,8 +125,6 @@ pub struct BatchedRelaxedR1CSSNARK<E: Engine, EE: EvaluationEngineTrait<E>> {

impl<E: Engine, EE: EvaluationEngineTrait<E>> BatchedRelaxedR1CSSNARKTrait<E>
for BatchedRelaxedR1CSSNARK<E, EE>
where
<E::Scalar as PrimeField>::Repr: Abomonation,
{
type ProverKey = ProverKey<E, EE>;
type VerifierKey = VerifierKey<E, EE>;
Expand Down Expand Up @@ -1088,10 +1085,7 @@ where
}
}

impl<E: Engine, EE: EvaluationEngineTrait<E>> BatchedRelaxedR1CSSNARK<E, EE>
where
<E::Scalar as PrimeField>::Repr: Abomonation,
{
impl<E: Engine, EE: EvaluationEngineTrait<E>> BatchedRelaxedR1CSSNARK<E, EE> {
/// Runs the batched Sumcheck protocol for the claims of multiple instance of possibly different sizes.
///
/// # Details
Expand Down
6 changes: 2 additions & 4 deletions src/spartan/ppsnark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ pub struct RelaxedR1CSSNARK<E: Engine, EE: EvaluationEngineTrait<E>> {
eval_arg: EE::EvaluationArgument,
}

impl<E: Engine, EE: EvaluationEngineTrait<E>> RelaxedR1CSSNARK<E, EE>
{
impl<E: Engine, EE: EvaluationEngineTrait<E>> RelaxedR1CSSNARK<E, EE> {
fn prove_helper<T1, T2, T3, T4>(
mem: &mut T1,
outer: &mut T2,
Expand Down Expand Up @@ -465,8 +464,7 @@ impl<E: Engine, EE: EvaluationEngineTrait<E>> DigestHelperTrait<E> for VerifierK
}
}

impl<E: Engine, EE: EvaluationEngineTrait<E>> RelaxedR1CSSNARKTrait<E> for RelaxedR1CSSNARK<E, EE>
{
impl<E: Engine, EE: EvaluationEngineTrait<E>> RelaxedR1CSSNARKTrait<E> for RelaxedR1CSSNARK<E, EE> {
type ProverKey = ProverKey<E, EE>;
type VerifierKey = VerifierKey<E, EE>;

Expand Down

0 comments on commit 3d5e341

Please sign in to comment.