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§
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> 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: UnwindSafe + RefUnwindSafe,
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