Struct dusk_plonk::prelude::VerifierKey
source · [−]pub struct VerifierKey { /* private fields */ }
Expand description
PLONK circuit Verification Key.
This structure is used by the Verifier in order to verify a
Proof
.
Implementations
sourceimpl VerifierKey
impl VerifierKey
sourcepub const fn padded_gates(&self) -> usize
pub const fn padded_gates(&self) -> usize
Returns the Circuit size padded to the next power of two.
Trait Implementations
sourceimpl Clone for VerifierKey
impl Clone for VerifierKey
sourcefn clone(&self) -> VerifierKey
fn clone(&self) -> VerifierKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerifierKey
impl Debug for VerifierKey
sourceimpl PartialEq<VerifierKey> for VerifierKey
impl PartialEq<VerifierKey> for VerifierKey
sourcefn eq(&self, other: &VerifierKey) -> bool
fn eq(&self, other: &VerifierKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerifierKey) -> bool
fn ne(&self, other: &VerifierKey) -> bool
This method tests for !=
.
sourceimpl Serializable<{ 20 * Commitment::SIZE + u64::SIZE }> for VerifierKey
impl Serializable<{ 20 * Commitment::SIZE + u64::SIZE }> for VerifierKey
sourcefn from_bytes(buf: &[u8; 968]) -> Result<VerifierKey, Self::Error>
fn from_bytes(buf: &[u8; 968]) -> Result<VerifierKey, Self::Error>
Deserialize a [&[u8; N]
] into Self
, it might be fail.
impl Copy for VerifierKey
impl Eq for VerifierKey
impl StructuralEq for VerifierKey
impl StructuralPartialEq for VerifierKey
Auto Trait Implementations
impl RefUnwindSafe for VerifierKey
impl Send for VerifierKey
impl Sync for VerifierKey
impl Unpin for VerifierKey
impl UnwindSafe for VerifierKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
impl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
sourceimpl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
impl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
sourcefn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
Parse a string slice as bytes hex representation and returns `