Struct poly_commit::EvaluationKey
source · 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::G1AffineKzg G1 generator
h: P::G2AffineKzg G2 generator
beta_h: P::G2Affine\beta times the above generator of G2.
prepared_h: P::G2PairngReprThe 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>where
P::G1Affine: Clone,
P::G2Affine: Clone,
P::G2PairngRepr: Clone,
impl<P: Clone + Pairing> Clone for EvaluationKey<P>where P::G1Affine: Clone, P::G2Affine: Clone, P::G2PairngRepr: Clone,
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: Debug + Pairing> Debug for EvaluationKey<P>where
P::G1Affine: Debug,
P::G2Affine: Debug,
P::G2PairngRepr: Debug,
impl<P: Debug + Pairing> Debug for EvaluationKey<P>where P::G1Affine: Debug, P::G2Affine: Debug, P::G2PairngRepr: Debug,
source§impl<P: Pairing> Decode for EvaluationKey<P>where
P::G1Affine: Decode,
P::G2Affine: Decode,
P::G2PairngRepr: Decode,
impl<P: Pairing> Decode for EvaluationKey<P>where P::G1Affine: Decode, P::G2Affine: Decode, P::G2PairngRepr: Decode,
source§impl<P: Pairing> Encode for EvaluationKey<P>where
P::G1Affine: Encode,
P::G2Affine: Encode,
P::G2PairngRepr: Encode,
impl<P: Pairing> Encode for EvaluationKey<P>where P::G1Affine: Encode, P::G2Affine: Encode, P::G2PairngRepr: Encode,
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) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> 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
source§impl<P: PartialEq + Pairing> PartialEq<EvaluationKey<P>> for EvaluationKey<P>where
P::G1Affine: PartialEq,
P::G2Affine: PartialEq,
P::G2PairngRepr: PartialEq,
impl<P: PartialEq + Pairing> PartialEq<EvaluationKey<P>> for EvaluationKey<P>where P::G1Affine: PartialEq, P::G2Affine: PartialEq, P::G2PairngRepr: PartialEq,
source§fn eq(&self, other: &EvaluationKey<P>) -> bool
fn eq(&self, other: &EvaluationKey<P>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<P: Pairing> EncodeLike<EvaluationKey<P>> for EvaluationKey<P>where P::G1Affine: Encode, P::G2Affine: Encode, P::G2PairngRepr: Encode,
impl<P: Eq + Pairing> Eq for EvaluationKey<P>where P::G1Affine: Eq, P::G2Affine: Eq, P::G2PairngRepr: Eq,
impl<P: Pairing> StructuralEq for EvaluationKey<P>
impl<P: Pairing> StructuralPartialEq for EvaluationKey<P>
Auto Trait Implementations§
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>where <P as Pairing>::G2Affine: Send, <P as Pairing>::G2PairngRepr: Send,
impl<P> Sync for EvaluationKey<P>where <P as Pairing>::G2Affine: Sync, <P as Pairing>::G2PairngRepr: Sync,
impl<P> Unpin for EvaluationKey<P>where <P as Pairing>::G1Affine: Unpin, <P as Pairing>::G2Affine: Unpin, <P as Pairing>::G2PairngRepr: Unpin,
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