Skip to main content

BooleanBackend

Trait BooleanBackend 

Source
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§

Source

type Commitment: Clone + Serialize + DeserializeOwned

Succinct binding commitment sent to the verifier.

Source

type ProverData

Prover-side data retained between committing and opening.

Source

type Proof: Clone + Serialize + DeserializeOwned

The proof one opening carries.

Source

type Error: Debug

Why a commitment or an opening was refused.

Required Methods§

Source

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".

Implementors§

Source§

impl<EF, Dft, MT, Challenger> BooleanBackend<EF> for BooleanWhirPcs<EF, Dft, MT, Challenger>
where EF: Field + TranscriptField + TowerLevel + Coordinates + Ord + Send + Sync, Dft: WhirDomain<EF, EF>, MT: Mmcs<EF>,

Source§

impl<EF, MT, MX> BooleanBackend<EF> for BooleanPcs<EF, MT, MX>
where EF: EncodableLevel + TowerLevel, MT: Mmcs<EF>, MX: Mmcs<EF, Error = MT::Error>,

Source§

type Commitment = <MT as Mmcs<EF>>::Commitment

Source§

type ProverData = BinaryPcsProverData<EF, EF, MT>

Source§

type Proof = BooleanProof<EF, MT, MX>

Source§

type Error = BooleanPcsError<EF, <MT as Mmcs<EF>>::Error>