pub trait UniversalSystem: ProvingSystem {
type Srs: CanonicalSerialize + CanonicalDeserialize;
// Required methods
fn generate_srs(
num_constraints: usize,
num_variables: usize,
degree: usize,
) -> Self::Srs;
fn generate_keys<C: ConstraintSynthesizer<CircuitField>>(
circuit: C,
srs: &Self::Srs,
) -> (Self::ProvingKey, Self::VerifyingKey);
}Expand description
Common API for every universal proving system.
Required Associated Types§
Required Methods§
Sourcefn generate_srs(
num_constraints: usize,
num_variables: usize,
degree: usize,
) -> Self::Srs
fn generate_srs( num_constraints: usize, num_variables: usize, degree: usize, ) -> Self::Srs
Generates SRS.
Sourcefn generate_keys<C: ConstraintSynthesizer<CircuitField>>(
circuit: C,
srs: &Self::Srs,
) -> (Self::ProvingKey, Self::VerifyingKey)
fn generate_keys<C: ConstraintSynthesizer<CircuitField>>( circuit: C, srs: &Self::Srs, ) -> (Self::ProvingKey, Self::VerifyingKey)
Generates proving and verifying key for circuit using srs.
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.
Implementors§
Source§impl UniversalSystem for Marlin
Available on crate feature circuit only.
impl UniversalSystem for Marlin
Available on crate feature
circuit only.