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>
impl<F: Clone + IsPrimeField, P: Clone + IsPairing> Clone for KateZaveruchaGoldberg<F, P>
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> Freeze for KateZaveruchaGoldberg<F, P>
impl<F, P> RefUnwindSafe for KateZaveruchaGoldberg<F, P>where
F: RefUnwindSafe,
<P as IsPairing>::G2Point: RefUnwindSafe,
<P as IsPairing>::G1Point: RefUnwindSafe,
impl<F, P> Send for KateZaveruchaGoldberg<F, P>
impl<F, P> Sync for KateZaveruchaGoldberg<F, P>
impl<F, P> Unpin for KateZaveruchaGoldberg<F, P>
impl<F, P> UnwindSafe for KateZaveruchaGoldberg<F, P>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)