pub trait BooleanBackend<EF> {
type Commitment: Clone + Serialize + DeserializeOwned;
type ProverData;
type Proof: Clone + Serialize + DeserializeOwned;
type Error: Debug;
// Required method
fn num_variables(&self) -> usize;
}Expand description
What a bit commitment keeps and sends, named without reference to a transcript.
Required Associated Types§
Sourcetype Commitment: Clone + Serialize + DeserializeOwned
type Commitment: Clone + Serialize + DeserializeOwned
Succinct binding commitment sent to the verifier.
Sourcetype ProverData
type ProverData
Prover-side data retained between committing and opening.
Sourcetype Proof: Clone + Serialize + DeserializeOwned
type Proof: Clone + Serialize + DeserializeOwned
The proof one opening carries.
Required Methods§
Sourcefn num_variables(&self) -> usize
fn num_variables(&self) -> usize
Variables the committed bit witness has, so 2^n bits in all.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".