Browse Source

cleanup trivial (#63)

main
Srinath Setty 2 years ago
committed by GitHub
parent
commit
4311ad1c1b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 23 deletions
  1. +0
    -23
      src/lib.rs

+ 0
- 23
src/lib.rs

@ -247,29 +247,6 @@ where
}
}
/// 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::*;

Loading…
Cancel
Save