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 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<'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