Struct snarkvm_algorithms::polycommit::kzg10::LagrangeBasis
source · 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
sourceimpl<E: PairingEngine> LagrangeBasis<'_, E>
impl<E: PairingEngine> LagrangeBasis<'_, E>
Trait Implementations
sourceimpl<'a, E: Clone + PairingEngine> Clone for LagrangeBasis<'a, E>where
E::G1Affine: Clone,
E::G1Affine: Clone,
E::Fr: Clone,
impl<'a, E: Clone + PairingEngine> Clone for LagrangeBasis<'a, E>where
E::G1Affine: Clone,
E::G1Affine: Clone,
E::Fr: Clone,
sourcefn clone(&self) -> LagrangeBasis<'a, E>
fn clone(&self) -> LagrangeBasis<'a, E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a, E: Debug + PairingEngine> Debug for LagrangeBasis<'a, E>where
E::G1Affine: Debug,
E::G1Affine: Debug,
E::Fr: Debug,
impl<'a, E: Debug + PairingEngine> Debug for LagrangeBasis<'a, E>where
E::G1Affine: Debug,
E::G1Affine: Debug,
E::Fr: Debug,
Auto Trait Implementations
impl<'a, E> RefUnwindSafe for LagrangeBasis<'a, E>where
<E as PairingEngine>::Fr: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<'a, E> Send for LagrangeBasis<'a, E>
impl<'a, E> Sync for LagrangeBasis<'a, E>
impl<'a, E> Unpin for LagrangeBasis<'a, E>where
<E as PairingEngine>::Fr: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
impl<'a, E> UnwindSafe for LagrangeBasis<'a, E>where
<E as PairingEngine>::Fr: UnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more