From cc9de142be3f4829d09c4e27771207965eef9a79 Mon Sep 17 00:00:00 2001 From: Hanting Zhang Date: Thu, 11 Jan 2024 08:39:15 +0000 Subject: [PATCH] somehow it works? --- src/proof/mod.rs | 6 +++--- src/proof/nova.rs | 6 +++--- src/proof/supernova.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/proof/mod.rs b/src/proof/mod.rs index d1daa03861..78039d0f27 100644 --- a/src/proof/mod.rs +++ b/src/proof/mod.rs @@ -100,7 +100,7 @@ where /// Generate the recursive SNARK, encoded in `ProveOutput` fn prove_recursively( - pp: &Self::PublicParams, + pp: &'a Self::PublicParams, z0: &[F], steps: Vec>, store: &'a Store, @@ -174,7 +174,7 @@ pub trait Prover<'a, F: CurveCycleEquipped, C: Coprocessor + 'a> { /// Generate a proof from a sequence of frames fn prove( &self, - pp: &Self::PublicParams, + pp: &'a Self::PublicParams, frames: &[Frame], store: &'a Store, ) -> Result<(Self::RecursiveSnark, Vec, Vec, usize), ProofError> { @@ -205,7 +205,7 @@ pub trait Prover<'a, F: CurveCycleEquipped, C: Coprocessor + 'a> { /// Evaluate an expression with an environment and then generate the corresponding proof fn evaluate_and_prove( &self, - pp: &Self::PublicParams, + pp: &'a Self::PublicParams, expr: Ptr, env: Ptr, store: &'a Store, diff --git a/src/proof/nova.rs b/src/proof/nova.rs index 9ed1b39a79..2dc79f742d 100644 --- a/src/proof/nova.rs +++ b/src/proof/nova.rs @@ -159,7 +159,7 @@ where /// A proof for the intermediate steps of a recursive computation along with /// the number of steps used for verification Recursive( - Box, E2, C1LEM<'a, F, C>, C2>>, + Box, E2, C1LEM<'a, F, C>, C2>>, usize, PhantomData<&'a C>, ), @@ -234,7 +234,7 @@ where #[tracing::instrument(skip_all, name = "nova::prove_recursively")] fn prove_recursively( - pp: &PublicParams>, + pp: &'a PublicParams>, z0: &[F], steps: Vec>, store: &'a Store, @@ -257,7 +257,7 @@ where tracing::debug!("steps.len: {num_steps}"); // produce a recursive SNARK - let mut recursive_snark: Option, E2, C1LEM<'a, F, C>, C2>> = + let mut recursive_snark: Option, E2, C1LEM<'a, F, C>, C2>> = None; // the shadowing here is voluntary diff --git a/src/proof/supernova.rs b/src/proof/supernova.rs index 1e0decc608..ac9613d4a4 100644 --- a/src/proof/supernova.rs +++ b/src/proof/supernova.rs @@ -134,7 +134,7 @@ where < as Engine>::Scalar as ff::PrimeField>::Repr: Abomonation, { /// A proof for the intermediate steps of a recursive computation - Recursive(Box, E2>>), + Recursive(Box, E2>>), /// A proof for the final step of a recursive computation Compressed( Box, E2, C1LEM<'a, F, C>, C2, SS1, SS2>>, @@ -177,14 +177,14 @@ where #[tracing::instrument(skip_all, name = "supernova::prove_recursively")] fn prove_recursively( - pp: &PublicParams>, + pp: &'a PublicParams>, z0: &[F], steps: Vec>, store: &'a Store, _reduction_count: usize, _lang: Arc>, ) -> Result { - let mut recursive_snark_option: Option, E2>> = None; + let mut recursive_snark_option: Option, E2>> = None; let z0_primary = z0; let z0_secondary = Self::z0_secondary();