Struct snarkvm_algorithms::snark::groth16::PreparedVerifyingKey
source · [−]pub struct PreparedVerifyingKey<E: PairingEngine> {
pub vk: VerifyingKey<E>,
pub alpha_g1_beta_g2: E::Fqk,
pub gamma_g2_neg_pc: <E::G2Affine as PairingCurve>::Prepared,
pub delta_g2_neg_pc: <E::G2Affine as PairingCurve>::Prepared,
}
Expand description
Preprocessed verification key parameters that enable faster verification at the expense of larger size in memory.
Fields
vk: VerifyingKey<E>
alpha_g1_beta_g2: E::Fqk
gamma_g2_neg_pc: <E::G2Affine as PairingCurve>::Prepared
delta_g2_neg_pc: <E::G2Affine as PairingCurve>::Prepared
Trait Implementations
sourceimpl<E: Clone + PairingEngine> Clone for PreparedVerifyingKey<E> where
E::Fqk: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedVerifyingKey<E> where
E::Fqk: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
sourcefn clone(&self) -> PreparedVerifyingKey<E>
fn clone(&self) -> PreparedVerifyingKey<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 PreparedVerifyingKey<E> where
E::Fqk: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
impl<E: Debug + PairingEngine> Debug for PreparedVerifyingKey<E> where
E::Fqk: Debug,
E::G2Affine: Debug,
E::G2Affine: Debug,
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 PreparedVerifyingKey<E>
impl<E: PairingEngine> From<ProvingKey<E>> for PreparedVerifyingKey<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> Prepare<PreparedVerifyingKey<E>> for VerifyingKey<E>
impl<E: PairingEngine> Prepare<PreparedVerifyingKey<E>> for VerifyingKey<E>
fn prepare(&self) -> PreparedVerifyingKey<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for PreparedVerifyingKey<E> where
<E as PairingEngine>::Fqk: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for PreparedVerifyingKey<E>
impl<E> Sync for PreparedVerifyingKey<E>
impl<E> Unpin for PreparedVerifyingKey<E> where
<E as PairingEngine>::Fqk: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for PreparedVerifyingKey<E> where
<E as PairingEngine>::Fqk: UnwindSafe,
<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