pub struct VerifyingKey<E: PairingEngine> { /* private fields */ }Expand description
A verification key in the GM17 SNARK.
Trait Implementations§
Source§impl<E: PairingEngine> CanonicalDeserialize for VerifyingKey<E>
impl<E: PairingEngine> CanonicalDeserialize for VerifyingKey<E>
Source§fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
Self from reader.Source§fn deserialize_uncompressed<R: Read>(
reader: R,
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>( reader: R, ) -> Result<Self, SerializationError>
Reads
Self from reader without compression.Source§fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
self from reader without compression, and without performing
validity checks. Should be used only when the input is trusted.Source§impl<E: PairingEngine> CanonicalSerialize for VerifyingKey<E>
impl<E: PairingEngine> CanonicalSerialize for VerifyingKey<E>
Source§fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
Serializes
self into writer.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read morefn serialized_size(&self) -> usize
Source§fn serialize_uncompressed<W: Write>(
&self,
writer: W,
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>( &self, writer: W, ) -> Result<(), SerializationError>
Serializes
self into writer without compression.Source§fn serialize_unchecked<W: Write>(
&self,
writer: W,
) -> Result<(), SerializationError>
fn serialize_unchecked<W: Write>( &self, writer: W, ) -> Result<(), SerializationError>
Serializes
self into writer without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output.fn uncompressed_size(&self) -> usize
Source§impl<E: Clone + PairingEngine> Clone for VerifyingKey<E>
impl<E: Clone + PairingEngine> Clone for VerifyingKey<E>
Source§fn clone(&self) -> VerifyingKey<E>
fn clone(&self) -> VerifyingKey<E>
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<E: PairingEngine> Default for VerifyingKey<E>
impl<E: PairingEngine> Default for VerifyingKey<E>
Source§impl<E: PairingEngine> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
impl<E: PairingEngine> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
Source§fn from(other: PreparedVerifyingKey<E>) -> Self
fn from(other: PreparedVerifyingKey<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PairingEngine> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
impl<E: PairingEngine> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
Source§fn from(other: VerifyingKey<E>) -> Self
fn from(other: VerifyingKey<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq + PairingEngine> PartialEq for VerifyingKey<E>
impl<E: PartialEq + PairingEngine> PartialEq for VerifyingKey<E>
Source§impl<E: PairingEngine> ToBytes for VerifyingKey<E>
impl<E: PairingEngine> ToBytes for VerifyingKey<E>
impl<E: Eq + PairingEngine> Eq for VerifyingKey<E>
impl<E: PairingEngine> StructuralPartialEq for VerifyingKey<E>
Auto Trait Implementations§
impl<E> Freeze for VerifyingKey<E>
impl<E> RefUnwindSafe for VerifyingKey<E>
impl<E> Send for VerifyingKey<E>
impl<E> Sync for VerifyingKey<E>
impl<E> Unpin for VerifyingKey<E>
impl<E> UnwindSafe for VerifyingKey<E>
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> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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