penumbra_proof_params

Trait DummyWitness

Source
pub trait DummyWitness: ConstraintSynthesizer<<Bls12_377 as Pairing>::ScalarField> {
    // Required method
    fn with_dummy_witness() -> Self;
}
Expand description

This trait characterizes circuits which can generate constraints.

Required Methods§

Source

fn with_dummy_witness() -> Self

This will create a circuit with dummy witness values, for constraint synthesis

(The reason this is needed is because constraint synthesis encapsulates both the act of generating the constraints, but also that of providing the witness values when proving). ((For the record, I am not a fan of this)).

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§