Struct snarkvm_algorithms::snark::groth16::VerifyingKey
source · [−]pub struct VerifyingKey<E: PairingEngine> {
pub alpha_g1: E::G1Affine,
pub beta_g2: E::G2Affine,
pub gamma_g2: E::G2Affine,
pub delta_g2: E::G2Affine,
pub gamma_abc_g1: Vec<E::G1Affine>,
}
Expand description
A verification key in the Groth16 SNARK.
Fields
alpha_g1: E::G1Affine
beta_g2: E::G2Affine
gamma_g2: E::G2Affine
delta_g2: E::G2Affine
gamma_abc_g1: Vec<E::G1Affine>
Implementations
sourceimpl<E: PairingEngine> VerifyingKey<E>
impl<E: PairingEngine> VerifyingKey<E>
Trait Implementations
sourceimpl<E: PairingEngine> CanonicalDeserialize for VerifyingKey<E>
impl<E: PairingEngine> CanonicalDeserialize for VerifyingKey<E>
sourcefn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
Reads Self
from reader
.
sourcefn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
Reads Self
from reader
without compression.
sourceimpl<E: PairingEngine> CanonicalSerialize for VerifyingKey<E>
impl<E: PairingEngine> CanonicalSerialize for VerifyingKey<E>
sourcefn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
Serializes self
into writer
.
fn serialized_size(&self) -> usize
sourcefn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
sourceimpl<E: Clone + PairingEngine> Clone for VerifyingKey<E> where
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
E::G1Affine: Clone,
impl<E: Clone + PairingEngine> Clone for VerifyingKey<E> where
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
E::G1Affine: Clone,
sourcefn clone(&self) -> VerifyingKey<E>
fn clone(&self) -> VerifyingKey<E>
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<E: Debug + PairingEngine> Debug for VerifyingKey<E> where
E::G1Affine: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
E::G1Affine: Debug,
impl<E: Debug + PairingEngine> Debug for VerifyingKey<E> where
E::G1Affine: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
E::G1Affine: Debug,
sourceimpl<E: PairingEngine> Default for VerifyingKey<E>
impl<E: PairingEngine> Default for VerifyingKey<E>
sourceimpl<E: PairingEngine> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
impl<E: PairingEngine> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
sourcefn from(other: PreparedVerifyingKey<E>) -> Self
fn from(other: PreparedVerifyingKey<E>) -> Self
Performs the conversion.
sourceimpl<E: PairingEngine> From<ProvingKey<E>> for VerifyingKey<E>
impl<E: PairingEngine> From<ProvingKey<E>> for VerifyingKey<E>
sourcefn from(other: ProvingKey<E>) -> Self
fn from(other: ProvingKey<E>) -> Self
Performs the conversion.
sourceimpl<E: PairingEngine> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
impl<E: PairingEngine> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
sourcefn from(other: VerifyingKey<E>) -> Self
fn from(other: VerifyingKey<E>) -> Self
Performs the conversion.
sourceimpl<E: PairingEngine> FromBytes for VerifyingKey<E>
impl<E: PairingEngine> FromBytes for VerifyingKey<E>
sourceimpl<E: PartialEq + PairingEngine> PartialEq<VerifyingKey<E>> for VerifyingKey<E> where
E::G1Affine: PartialEq,
E::G2Affine: PartialEq,
E::G2Affine: PartialEq,
E::G2Affine: PartialEq,
E::G1Affine: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq<VerifyingKey<E>> for VerifyingKey<E> where
E::G1Affine: PartialEq,
E::G2Affine: PartialEq,
E::G2Affine: PartialEq,
E::G2Affine: PartialEq,
E::G1Affine: PartialEq,
sourcefn eq(&self, other: &VerifyingKey<E>) -> bool
fn eq(&self, other: &VerifyingKey<E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerifyingKey<E>) -> bool
fn ne(&self, other: &VerifyingKey<E>) -> bool
This method tests for !=
.
sourceimpl<E: PairingEngine> Prepare<PreparedVerifyingKey<E>> for VerifyingKey<E>
impl<E: PairingEngine> Prepare<PreparedVerifyingKey<E>> for VerifyingKey<E>
fn prepare(&self) -> PreparedVerifyingKey<E>
sourceimpl<E: PairingEngine> ToBytes for VerifyingKey<E>
impl<E: PairingEngine> ToBytes for VerifyingKey<E>
sourceimpl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for VerifyingKey<E>
impl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for VerifyingKey<E>
fn to_field_elements(&self) -> Result<Vec<E::Fq>, ConstraintFieldError>
sourceimpl<E: PairingEngine> ToMinimalBits for VerifyingKey<E>
impl<E: PairingEngine> ToMinimalBits for VerifyingKey<E>
sourcefn to_minimal_bits(&self) -> Vec<bool>
fn to_minimal_bits(&self) -> Vec<bool>
Returns self
as a minimal boolean array.
impl<E: PairingEngine> StructuralPartialEq for VerifyingKey<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for VerifyingKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
impl<E> Send for VerifyingKey<E>
impl<E> Sync for VerifyingKey<E>
impl<E> Unpin for VerifyingKey<E> where
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
impl<E> UnwindSafe for VerifyingKey<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more