From 4311ad1c1b8f18888742ab463b92c180bcbf37b9 Mon Sep 17 00:00:00 2001 From: Srinath Setty Date: Sun, 15 May 2022 19:29:10 +0530 Subject: [PATCH] cleanup trivial (#63) --- src/lib.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 27ae7ce..73664a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -247,29 +247,6 @@ where } } -/// A SNARK that proves the knowledge of a valid `RecursiveSNARK` -pub struct CompressedSNARKTrivial { - W: RelaxedR1CSWitness, -} - -impl CompressedSNARKTrivial { - /// Produces a proof of a instance given its satisfying witness `W`. - pub fn prove(W: &RelaxedR1CSWitness) -> Result, 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, - S: &R1CSShape, - U: &RelaxedR1CSInstance, - ) -> 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::*;