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§
Source§impl VerifierKey
impl VerifierKey
Sourcepub const fn padded_gates(&self) -> u32
pub const fn padded_gates(&self) -> u32
Returns the Circuit size padded to the next power of two.
Trait Implementations§
Source§impl Clone for VerifierKey
impl Clone for VerifierKey
Source§fn clone(&self) -> VerifierKey
fn clone(&self) -> VerifierKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerifierKey
impl Debug for VerifierKey
Source§impl Decode for VerifierKey
impl Decode for VerifierKey
Source§impl Encode for VerifierKey
impl Encode for VerifierKey
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl PartialEq for VerifierKey
impl PartialEq for VerifierKey
Source§impl Serializable<{ 20 * Commitment::SIZE + u64::SIZE }> for VerifierKey
impl Serializable<{ 20 * Commitment::SIZE + u64::SIZE }> for VerifierKey
Source§fn 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 EncodeLike for VerifierKey
impl Eq for VerifierKey
impl StructuralPartialEq for VerifierKey
Auto Trait Implementations§
impl Freeze for VerifierKey
impl RefUnwindSafe for VerifierKey
impl Send for VerifierKey
impl Sync for VerifierKey
impl Unpin for VerifierKey
impl UnwindSafe for VerifierKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<T, const N: usize> DeserializableSlice<N> for Twhere
T: Serializable<N>,
impl<T, const N: usize> DeserializableSlice<N> for Twhere
T: Serializable<N>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more