[][src]Struct dusk_plonk::proof_system::verifier::Verifier

pub struct Verifier {
    pub verifier_key: Option<VerifierKey>,
    pub preprocessed_transcript: Transcript,
    // some fields omitted
}

Verifier verifies a proof

Fields

verifier_key: Option<VerifierKey>

VerificationKey which is used to verify a specific PLONK circuit

preprocessed_transcript: Transcript

Store the messages exchanged during the preprocessing stage This is copied each time, we make a proof, so that we can use the same verifier to Verify multiple proofs from the same circuit. If this is not copied, then the verification procedure will modify the transcript, making it unusable for future proofs.

Implementations

impl Verifier[src]

pub fn new(label: &'static [u8]) -> Verifier[src]

Creates a new verifier object

pub fn circuit_size(&self) -> usize[src]

Returns the number of gates in the circuit

pub fn mut_cs(&mut self) -> &mut StandardComposer[src]

Returns a mutable copy of the underlying composer

pub fn preprocess(&mut self, commit_key: &CommitKey) -> Result<(), Error>[src]

Preprocess a proof

pub fn key_transcript(&mut self, label: &'static [u8], message: &[u8])[src]

Keys the transcript with additional seed information Wrapper around transcript.append_message

pub fn verify(
    &self,
    proof: &Proof,
    opening_key: &OpeningKey,
    public_inputs: &[Scalar]
) -> Result<(), Error>
[src]

Verifies a proof

Trait Implementations

impl Default for Verifier[src]

Auto Trait Implementations

impl RefUnwindSafe for Verifier

impl Send for Verifier

impl Sync for Verifier

impl Unpin for Verifier

impl UnwindSafe for Verifier

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,