pub struct ProvingKey<E: PairingEngine> { /* private fields */ }Expand description
Full public (prover and verifier) parameters for the GM17 zkSNARK.
Trait Implementations§
Source§impl<E: PairingEngine> CanonicalDeserialize for ProvingKey<E>
impl<E: PairingEngine> CanonicalDeserialize for ProvingKey<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 ProvingKey<E>
impl<E: PairingEngine> CanonicalSerialize for ProvingKey<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 ProvingKey<E>
impl<E: Clone + PairingEngine> Clone for ProvingKey<E>
Source§fn clone(&self) -> ProvingKey<E>
fn clone(&self) -> ProvingKey<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: PartialEq + PairingEngine> PartialEq for ProvingKey<E>
impl<E: PartialEq + PairingEngine> PartialEq for ProvingKey<E>
impl<E: Eq + PairingEngine> Eq for ProvingKey<E>
impl<E: PairingEngine> StructuralPartialEq for ProvingKey<E>
Auto Trait Implementations§
impl<E> Freeze for ProvingKey<E>
impl<E> RefUnwindSafe for ProvingKey<E>
impl<E> Send for ProvingKey<E>
impl<E> Sync for ProvingKey<E>
impl<E> Unpin for ProvingKey<E>
impl<E> UnwindSafe for ProvingKey<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