Struct lambdaworks_crypto::commitments::kzg::KateZaveruchaGoldberg
source · pub struct KateZaveruchaGoldberg<F: IsPrimeField, P: IsPairing> { /* private fields */ }Implementations§
source§impl<F: IsPrimeField, P: IsPairing> KateZaveruchaGoldberg<F, P>
impl<F: IsPrimeField, P: IsPairing> KateZaveruchaGoldberg<F, P>
pub fn new(srs: StructuredReferenceString<P::G1Point, P::G2Point>) -> Self
Trait Implementations§
source§impl<F: Clone + IsPrimeField, P: Clone + IsPairing> Clone for KateZaveruchaGoldberg<F, P>where
P::G1Point: Clone,
P::G2Point: Clone,
impl<F: Clone + IsPrimeField, P: Clone + IsPairing> Clone for KateZaveruchaGoldberg<F, P>where P::G1Point: Clone, P::G2Point: Clone,
source§fn clone(&self) -> KateZaveruchaGoldberg<F, P>
fn clone(&self) -> KateZaveruchaGoldberg<F, 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<const N: usize, F: IsPrimeField<RepresentativeType = UnsignedInteger<N>>, P: IsPairing> IsCommitmentScheme<F> for KateZaveruchaGoldberg<F, P>
impl<const N: usize, F: IsPrimeField<RepresentativeType = UnsignedInteger<N>>, P: IsPairing> IsCommitmentScheme<F> for KateZaveruchaGoldberg<F, P>
type Commitment = <P as IsPairing>::G1Point
fn commit(&self, p: &Polynomial<FieldElement<F>>) -> Self::Commitment
fn open( &self, x: &FieldElement<F>, y: &FieldElement<F>, p: &Polynomial<FieldElement<F>> ) -> Self::Commitment
fn verify( &self, x: &FieldElement<F>, y: &FieldElement<F>, p_commitment: &Self::Commitment, proof: &Self::Commitment ) -> bool
fn open_batch( &self, x: &FieldElement<F>, ys: &[FieldElement<F>], polynomials: &[Polynomial<FieldElement<F>>], upsilon: &FieldElement<F> ) -> Self::Commitment
fn verify_batch( &self, x: &FieldElement<F>, ys: &[FieldElement<F>], p_commitments: &[Self::Commitment], proof: &Self::Commitment, upsilon: &FieldElement<F> ) -> bool
Auto Trait Implementations§
impl<F, P> RefUnwindSafe for KateZaveruchaGoldberg<F, P>where F: RefUnwindSafe, <P as IsPairing>::G1Point: RefUnwindSafe, <P as IsPairing>::G2Point: RefUnwindSafe,
impl<F, P> Send for KateZaveruchaGoldberg<F, P>where F: Send, <P as IsPairing>::G1Point: Send, <P as IsPairing>::G2Point: Send,
impl<F, P> Sync for KateZaveruchaGoldberg<F, P>where F: Sync, <P as IsPairing>::G1Point: Sync, <P as IsPairing>::G2Point: Sync,
impl<F, P> Unpin for KateZaveruchaGoldberg<F, P>where F: Unpin, <P as IsPairing>::G1Point: Unpin, <P as IsPairing>::G2Point: Unpin,
impl<F, P> UnwindSafe for KateZaveruchaGoldberg<F, P>where F: UnwindSafe, <P as IsPairing>::G1Point: UnwindSafe, <P as IsPairing>::G2Point: 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