pub struct PreparedVerifierKey<E: Pairing> {
pub prepared_g: Vec<E::G1Affine>,
pub prepared_h: E::G2Prepared,
pub prepared_beta_h: E::G2Prepared,
}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_h: E::G2PreparedThe generator of G2, prepared for use in pairings.
prepared_beta_h: E::G2Prepared\beta times the above generator of G2, prepared for use in pairings.
Implementations§
Source§impl<E: Pairing> PreparedVerifierKey<E>
impl<E: Pairing> PreparedVerifierKey<E>
Sourcepub fn prepare(vk: &VerifierKey<E>) -> Self
pub fn prepare(vk: &VerifierKey<E>) -> Self
prepare PreparedVerifierKey from VerifierKey
Trait Implementations§
Source§impl<E: Pairing> Clone for PreparedVerifierKey<E>
impl<E: Pairing> Clone for PreparedVerifierKey<E>
Source§impl<E: Pairing> Debug for PreparedVerifierKey<E>
impl<E: Pairing> Debug for PreparedVerifierKey<E>
Auto Trait Implementations§
impl<E> Freeze for PreparedVerifierKey<E>
impl<E> RefUnwindSafe for PreparedVerifierKey<E>
impl<E> Send for PreparedVerifierKey<E>
impl<E> Sync for PreparedVerifierKey<E>
impl<E> Unpin for PreparedVerifierKey<E>
impl<E> UnwindSafe for PreparedVerifierKey<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more