Struct snarkvm_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: PairingEngine> Clone for PreparedVerifierKey<E>
impl<E: PairingEngine> Clone for PreparedVerifierKey<E>
sourceimpl<E: PairingEngine> Debug for PreparedVerifierKey<E>
impl<E: PairingEngine> Debug for PreparedVerifierKey<E>
sourceimpl<E: PairingEngine> Default for PreparedVerifierKey<E>
impl<E: PairingEngine> Default for PreparedVerifierKey<E>
Auto 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 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