arnaucube
arnaucube/NovaPublic Self-hosted repository
cleanup trivial (#63)

Srinath Setty srinath@microsoft.com
Sun, 15 May 2022 19:29:10 +0530
commit

4311ad1c1b8f18888742ab463b92c180bcbf37b9

parent

07b3c4289bf70f1b34bcf11b2b08a8187a6bba87

1 files changed, 0 insertions(+), 23 deletions(-)

jump to
M src/lib.rs → src/lib.rs

@@ -247,29 +247,6 @@ Ok(())

} } -/// A SNARK that proves the knowledge of a valid `RecursiveSNARK` -pub struct CompressedSNARKTrivial<G: Group> { - W: RelaxedR1CSWitness<G>, -} - -impl<G: Group> CompressedSNARKTrivial<G> { - /// Produces a proof of a instance given its satisfying witness `W`. - pub fn prove(W: &RelaxedR1CSWitness<G>) -> Result<CompressedSNARKTrivial<G>, NovaError> { - Ok(Self { W: W.clone() }) - } - - /// Verifies the proof of a folded instance `U` given its shape `S` public parameters `gens` - pub fn verify( - &self, - gens: &R1CSGens<G>, - S: &R1CSShape<G>, - U: &RelaxedR1CSInstance<G>, - ) -> Result<(), NovaError> { - // check that the witness is a valid witness to the folded instance `U` - S.is_sat_relaxed(gens, U, &self.W) - } -} - #[cfg(test)] mod tests { use super::*;