pub struct LagrangeBasis<'a, E: PairingEngine> {
    pub lagrange_basis_at_beta_g: Cow<'a, [E::G1Affine]>,
    pub powers_of_beta_times_gamma_g: Cow<'a, [E::G1Affine]>,
    pub domain: EvaluationDomain<E::Fr>,
}Expand description
LagrangeBasis is used to commit to and create evaluation proofs for a
given polynomial.
Fields§
§lagrange_basis_at_beta_g: Cow<'a, [E::G1Affine]>Group elements of the form β^i G, for different values of i.
powers_of_beta_times_gamma_g: Cow<'a, [E::G1Affine]>Group elements of the form β^i γG, for different values of i.
domain: EvaluationDomain<E::Fr>Domain representing the multiplicative subgroup the powers
in self.lagrange_basis_at_beta_g are defined over.
Implementations§
Source§impl<E: PairingEngine> LagrangeBasis<'_, E>
 
impl<E: PairingEngine> LagrangeBasis<'_, E>
Trait Implementations§
Source§impl<'a, E: Clone + PairingEngine> Clone for LagrangeBasis<'a, E>
 
impl<'a, E: Clone + PairingEngine> Clone for LagrangeBasis<'a, E>
Source§fn clone(&self) -> LagrangeBasis<'a, E>
 
fn clone(&self) -> LagrangeBasis<'a, E>
Returns a duplicate 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<'a, E: Debug + PairingEngine> Debug for LagrangeBasis<'a, E>
 
impl<'a, E: Debug + PairingEngine> Debug for LagrangeBasis<'a, E>
Source§impl<'a, E: Hash + PairingEngine> Hash for LagrangeBasis<'a, E>
 
impl<'a, E: Hash + PairingEngine> Hash for LagrangeBasis<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for LagrangeBasis<'a, E>
impl<'a, E> RefUnwindSafe for LagrangeBasis<'a, E>
impl<'a, E> Send for LagrangeBasis<'a, E>
impl<'a, E> Sync for LagrangeBasis<'a, E>
impl<'a, E> Unpin for LagrangeBasis<'a, E>
impl<'a, E> UnwindSafe for LagrangeBasis<'a, E>where
    <E as PairingEngine>::Fr: UnwindSafe,
    <E as PairingEngine>::G1Affine: RefUnwindSafe + 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> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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