pub struct GkrSumcheckClaim<F: Field> {
pub n_vars: usize,
pub degree: usize,
pub sum: F,
pub r: Vec<F>,
}
Expand description
A claim for the GKR Sumcheck protocol
Specifically the claim is that for
- an $n$-variate polynomial $f$,
- a random vector $r$, called the GKR challenge,
- a claimed sum $s$,
that $\sum_{x \in {0, 1}^n} f(x) * \mathsf{eq}(x, r) = s$. where $\mathsf{eq}(x, y) = \prod_{i=0}^{n-1} x_i y_i + (1-x_i)(1-y_i)$ is the multilinear extension of the equality indicator partially evaluated at $r$.
Fields§
§n_vars: usize
§degree: usize
§sum: F
§r: Vec<F>
Trait Implementations§
source§impl<F: Field> AbstractSumcheckClaim<F> for GkrSumcheckClaim<F>
impl<F: Field> AbstractSumcheckClaim<F> for GkrSumcheckClaim<F>
source§impl<F: Clone + Field> Clone for GkrSumcheckClaim<F>
impl<F: Clone + Field> Clone for GkrSumcheckClaim<F>
source§fn clone(&self) -> GkrSumcheckClaim<F>
fn clone(&self) -> GkrSumcheckClaim<F>
Returns a copy of the value. Read more
1.6.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 GkrSumcheckClaim<F>
impl<F> RefUnwindSafe for GkrSumcheckClaim<F>
impl<F> Send for GkrSumcheckClaim<F>
impl<F> Sync for GkrSumcheckClaim<F>
impl<F> Unpin for GkrSumcheckClaim<F>
impl<F> UnwindSafe for GkrSumcheckClaim<F>
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more