pub trait AccumulationSchemeProver<C>: AccumulationScheme<C, NativeLoader>where
C: CurveAffine,{
type ProvingKey: Clone + Debug;
// Required method
fn create_proof<T, R>(
pk: &Self::ProvingKey,
instances: &[Self::Accumulator],
transcript: &mut T,
rng: R,
) -> Result<Self::Accumulator, Error>
where T: TranscriptWrite<C>,
R: Rng;
}
Expand description
Accumulation scheme prover.
Required Associated Types§
Sourcetype ProvingKey: Clone + Debug
type ProvingKey: Clone + Debug
Proving key.
Required Methods§
Sourcefn create_proof<T, R>(
pk: &Self::ProvingKey,
instances: &[Self::Accumulator],
transcript: &mut T,
rng: R,
) -> Result<Self::Accumulator, Error>where
T: TranscriptWrite<C>,
R: Rng,
fn create_proof<T, R>(
pk: &Self::ProvingKey,
instances: &[Self::Accumulator],
transcript: &mut T,
rng: R,
) -> Result<Self::Accumulator, Error>where
T: TranscriptWrite<C>,
R: Rng,
Create a proof that argues if old AccumulationScheme::Accumulator
s
are properly accumulated into the new one, and returns the new one as
output.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.