Struct dusk_plonk::proof_system::verifier::Verifier [−][src]
pub struct Verifier { pub verifier_key: Option<VerifierKey>, pub preprocessed_transcript: Transcript, // some fields omitted }
Expand description
Abstraction structure designed verify Proof
s.
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
Creates a new Verifier
instance with some expected size.
Returns the number of gates in the circuit.
Returns a mutable copy of the underlying composer.
Preprocess a circuit to obtain a VerifierKey
and a circuit
descriptor so that the Verifier
instance can verify Proof
s
for this circuit descriptor instance.
Keys the Transcript
with additional seed information
Wrapper around Transcript::append_message
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Verifier
impl UnwindSafe for Verifier