spark-based commitments to R1CS matrices (#152)

* spark-based commitments to R1CS matrices

* small fixes
This commit is contained in:
Srinath Setty
2023-03-20 18:16:06 -07:00
committed by GitHub
parent eb97499907
commit 7b1bb44e45
20 changed files with 1758 additions and 98 deletions

View File

@@ -19,7 +19,10 @@ pub trait RelaxedR1CSSNARKTrait<G: Group>:
type VerifierKey: Send + Sync + Serialize + for<'de> Deserialize<'de>;
/// Produces the keys for the prover and the verifier
fn setup(ck: &CommitmentKey<G>, S: &R1CSShape<G>) -> (Self::ProverKey, Self::VerifierKey);
fn setup(
ck: &CommitmentKey<G>,
S: &R1CSShape<G>,
) -> Result<(Self::ProverKey, Self::VerifierKey), NovaError>;
/// Produces a new SNARK for a relaxed R1CS
fn prove(