pub struct EvaluationKey<P: Pairing> {
pub g: P::G1Affine,
pub h: P::G2Affine,
pub beta_h: P::G2Affine,
pub prepared_h: P::G2PairngRepr,
pub prepared_beta_h: P::G2PairngRepr,
}
Expand description
Evaluation Key is used to verify opening proofs made about a committed polynomial.
Fields§
§g: P::G1Affine
Kzg G1 generator
h: P::G2Affine
Kzg G2 generator
beta_h: P::G2Affine
\beta times the above generator of G2.
prepared_h: P::G2PairngRepr
The generator of G2, prepared for use in pairings
prepared_beta_h: P::G2PairngRepr
\beta times the above generator of G2, prepared for use in pairings
Implementations§
Trait Implementations§
Source§impl<P: Clone + Pairing> Clone for EvaluationKey<P>
impl<P: Clone + Pairing> Clone for EvaluationKey<P>
Source§fn clone(&self) -> EvaluationKey<P>
fn clone(&self) -> EvaluationKey<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P: Pairing> Decode for EvaluationKey<P>
impl<P: Pairing> Decode for EvaluationKey<P>
Source§impl<P: Default + Pairing> Default for EvaluationKey<P>
impl<P: Default + Pairing> Default for EvaluationKey<P>
Source§fn default() -> EvaluationKey<P>
fn default() -> EvaluationKey<P>
Returns the “default value” for a type. Read more
Source§impl<P: Pairing> Encode for EvaluationKey<P>
impl<P: Pairing> Encode for EvaluationKey<P>
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl<P: Pairing> EncodeLike for EvaluationKey<P>
impl<P: Eq + Pairing> Eq for EvaluationKey<P>
impl<P: Pairing> StructuralPartialEq for EvaluationKey<P>
Auto Trait Implementations§
impl<P> Freeze for EvaluationKey<P>
impl<P> RefUnwindSafe for EvaluationKey<P>where
<P as Pairing>::G1Affine: RefUnwindSafe,
<P as Pairing>::G2Affine: RefUnwindSafe,
<P as Pairing>::G2PairngRepr: RefUnwindSafe,
impl<P> Send for EvaluationKey<P>
impl<P> Sync for EvaluationKey<P>
impl<P> Unpin for EvaluationKey<P>
impl<P> UnwindSafe for EvaluationKey<P>where
<P as Pairing>::G1Affine: UnwindSafe,
<P as Pairing>::G2Affine: UnwindSafe,
<P as Pairing>::G2PairngRepr: UnwindSafe,
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> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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