pub struct SumcheckClaim<F: Field> { /* private fields */ }Expand description
A sumcheck claim: the polynomial and its purported sum.
The claim asserts that
sum_{x in {0,1}^n} poly(x) = claimed_sum.
Implementations§
Source§impl<F: Field> SumcheckClaim<F>
impl<F: Field> SumcheckClaim<F>
Sourcepub fn new(poly: MultilinearPoly<F>, claimed_sum: F) -> Self
pub fn new(poly: MultilinearPoly<F>, claimed_sum: F) -> Self
Create a new sumcheck claim.
Sourcepub fn poly(&self) -> &MultilinearPoly<F>
pub fn poly(&self) -> &MultilinearPoly<F>
The polynomial being summed.
Sourcepub fn claimed_sum(&self) -> &F
pub fn claimed_sum(&self) -> &F
The claimed sum.
Trait Implementations§
Source§impl<F: Clone + Field> Clone for SumcheckClaim<F>
impl<F: Clone + Field> Clone for SumcheckClaim<F>
Source§fn clone(&self) -> SumcheckClaim<F>
fn clone(&self) -> SumcheckClaim<F>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<F> Freeze for SumcheckClaim<F>where
F: Freeze,
impl<F> RefUnwindSafe for SumcheckClaim<F>where
F: RefUnwindSafe,
impl<F> Send for SumcheckClaim<F>where
F: Send,
impl<F> Sync for SumcheckClaim<F>where
F: Sync,
impl<F> Unpin for SumcheckClaim<F>where
F: Unpin,
impl<F> UnsafeUnpin for SumcheckClaim<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for SumcheckClaim<F>where
F: 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