Struct snarkvm_polycommit::kzg10::VerifierKey
source · [−]pub struct VerifierKey<E: PairingEngine> {
pub g: E::G1Affine,
pub gamma_g: E::G1Affine,
pub h: E::G2Affine,
pub beta_h: E::G2Affine,
pub prepared_h: <E::G2Affine as PairingCurve>::Prepared,
pub prepared_beta_h: <E::G2Affine as PairingCurve>::Prepared,
}
Expand description
VerifierKey
is used to check evaluation proofs for a given commitment.
Fields
g: E::G1Affine
The generator of G1.
gamma_g: E::G1Affine
The generator of G1 that is used for making a commitment hiding.
h: E::G2Affine
The generator of G2.
beta_h: E::G2Affine
\beta times the above generator of G2.
prepared_h: <E::G2Affine as PairingCurve>::Prepared
The generator of G2, prepared for use in pairings.
prepared_beta_h: <E::G2Affine as PairingCurve>::Prepared
\beta times the above generator of G2, prepared for use in pairings.
Trait Implementations
sourceimpl<E: PairingEngine> CanonicalDeserialize for VerifierKey<E>
impl<E: PairingEngine> CanonicalDeserialize for VerifierKey<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 VerifierKey<E>
impl<E: PairingEngine> CanonicalSerialize for VerifierKey<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: PairingEngine> Clone for VerifierKey<E>
impl<E: PairingEngine> Clone for VerifierKey<E>
sourceimpl<E: PairingEngine> Debug for VerifierKey<E>
impl<E: PairingEngine> Debug for VerifierKey<E>
sourceimpl<E: PairingEngine> Default for VerifierKey<E>
impl<E: PairingEngine> Default for VerifierKey<E>
sourceimpl<E: PairingEngine> FromBytes for VerifierKey<E>
impl<E: PairingEngine> FromBytes for VerifierKey<E>
sourceimpl<E: PairingEngine> ToBytes for VerifierKey<E>
impl<E: PairingEngine> ToBytes for VerifierKey<E>
sourceimpl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for VerifierKey<E>
impl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for VerifierKey<E>
fn to_field_elements(&self) -> Result<Vec<E::Fq>, ConstraintFieldError>
Auto Trait Implementations
impl<E> RefUnwindSafe for VerifierKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for VerifierKey<E>
impl<E> Sync for VerifierKey<E>
impl<E> Unpin for VerifierKey<E> where
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for VerifierKey<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: 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