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::*;