Reorganize various Spartan SNARKs and make the direct interface more generic (#195)

* reorganize different variants of spartan and make direct snark more generic

* cargo fmt
This commit is contained in:
Srinath Setty
2023-07-06 19:51:00 -07:00
committed by GitHub
parent 4087cab1a5
commit e76e6bc0f8
7 changed files with 815 additions and 779 deletions

View File

@@ -799,10 +799,10 @@ mod tests {
use super::*;
type EE1<G1> = provider::ipa_pc::EvaluationEngine<G1>;
type EE2<G2> = provider::ipa_pc::EvaluationEngine<G2>;
type S1<G1> = spartan::RelaxedR1CSSNARK<G1, EE1<G1>>;
type S2<G2> = spartan::RelaxedR1CSSNARK<G2, EE2<G2>>;
type S1Prime<G1> = spartan::pp::RelaxedR1CSSNARK<G1, EE1<G1>>;
type S2Prime<G2> = spartan::pp::RelaxedR1CSSNARK<G2, EE2<G2>>;
type S1<G1> = spartan::snark::RelaxedR1CSSNARK<G1, EE1<G1>>;
type S2<G2> = spartan::snark::RelaxedR1CSSNARK<G2, EE2<G2>>;
type S1Prime<G1> = spartan::ppsnark::RelaxedR1CSSNARK<G1, EE1<G1>>;
type S2Prime<G2> = spartan::ppsnark::RelaxedR1CSSNARK<G2, EE2<G2>>;
use ::bellperson::{gadgets::num::AllocatedNum, ConstraintSystem, SynthesisError};
use core::marker::PhantomData;