[−][src]Struct dusk_plonk::proof_system::verifier::Verifier
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][−]
&self,
proof: &Proof,
opening_key: &OpeningKey,
public_inputs: &[Scalar]
) -> Result<(), Error>
Verifies a proof
Trait Implementations
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,