mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 00:21:29 +01:00
spark-based commitments to R1CS matrices (#152)
* spark-based commitments to R1CS matrices * small fixes
This commit is contained in:
@@ -17,8 +17,10 @@ type G1 = pasta_curves::pallas::Point;
|
||||
type G2 = pasta_curves::vesta::Point;
|
||||
type EE1 = nova_snark::provider::ipa_pc::EvaluationEngine<G1>;
|
||||
type EE2 = nova_snark::provider::ipa_pc::EvaluationEngine<G2>;
|
||||
type S1 = nova_snark::spartan::RelaxedR1CSSNARK<G1, EE1>;
|
||||
type S2 = nova_snark::spartan::RelaxedR1CSSNARK<G2, EE2>;
|
||||
type CC1 = nova_snark::spartan::spark::TrivialCompComputationEngine<G1, EE1>;
|
||||
type CC2 = nova_snark::spartan::spark::TrivialCompComputationEngine<G2, EE2>;
|
||||
type S1 = nova_snark::spartan::RelaxedR1CSSNARK<G1, EE1, CC1>;
|
||||
type S2 = nova_snark::spartan::RelaxedR1CSSNARK<G2, EE2, CC2>;
|
||||
type C1 = NonTrivialTestCircuit<<G1 as Group>::Scalar>;
|
||||
type C2 = TrivialTestCircuit<<G2 as Group>::Scalar>;
|
||||
|
||||
@@ -50,7 +52,7 @@ fn bench_compressed_snark(c: &mut Criterion) {
|
||||
);
|
||||
|
||||
// Produce prover and verifier keys for CompressedSNARK
|
||||
let (pk, vk) = CompressedSNARK::<_, _, _, _, S1, S2>::setup(&pp);
|
||||
let (pk, vk) = CompressedSNARK::<_, _, _, _, S1, S2>::setup(&pp).unwrap();
|
||||
|
||||
// produce a recursive SNARK
|
||||
let num_steps = 3;
|
||||
|
||||
Reference in New Issue
Block a user