Struct snarkvm_algorithms::polycommit::kzg10::PreparedVerifierKey
source · pub struct PreparedVerifierKey<E: PairingEngine> {
pub prepared_g: Vec<E::G1Affine>,
pub prepared_gamma_g: Vec<E::G1Affine>,
pub prepared_h: <E::G2Affine as PairingCurve>::Prepared,
pub prepared_beta_h: <E::G2Affine as PairingCurve>::Prepared,
}
Expand description
PreparedVerifierKey
is the fully prepared version for checking evaluation proofs for a given commitment.
We omit gamma here for simplicity.
Fields
prepared_g: Vec<E::G1Affine>
The generator of G1, prepared for power series.
prepared_gamma_g: Vec<E::G1Affine>
The generator of G1 that is used for making a commitment hiding, prepared for power series
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.
Implementations
sourceimpl<E: PairingEngine> PreparedVerifierKey<E>
impl<E: PairingEngine> PreparedVerifierKey<E>
sourcepub fn prepare(vk: &VerifierKey<E>) -> Self
pub fn prepare(vk: &VerifierKey<E>) -> Self
prepare PreparedVerifierKey
from VerifierKey
Trait Implementations
sourceimpl<E: Clone + PairingEngine> Clone for PreparedVerifierKey<E>where
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedVerifierKey<E>where
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G2Affine: Clone,
E::G2Affine: Clone,
sourcefn clone(&self) -> PreparedVerifierKey<E>
fn clone(&self) -> PreparedVerifierKey<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 moreAuto Trait Implementations
impl<E> RefUnwindSafe for PreparedVerifierKey<E>where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for PreparedVerifierKey<E>
impl<E> Sync for PreparedVerifierKey<E>
impl<E> Unpin for PreparedVerifierKey<E>where
<E as PairingEngine>::G1Affine: Unpin,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for PreparedVerifierKey<E>where
<E as PairingEngine>::G1Affine: UnwindSafe,
<<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more