Skip to main content

MultipointEval

Struct MultipointEval 

Source
pub struct MultipointEval<F>(/* private fields */);

Implementations§

Source§

impl<F> MultipointEval<F>
where F: InnerTransparentField + FromPrimitiveWithConfig + Send + Sync + 'static, F::Inner: ConstTranscribable + Zero + Default + Send + Sync, F::Modulus: ConstTranscribable,

Source

pub fn prove_as_subprotocol( transcript: &mut impl Transcript, trace_mles: &[DenseMultilinearExtension<F::Inner>], eval_point: &[F], up_evals: &[F], down_evals: &[F], shifts: &[ShiftSpec], field_cfg: &F::Config, ) -> Result<(Proof<F>, ProverState<F>), MultipointEvalError<F>>

Multi-point evaluation protocol prover.

Runs the combined sumcheck over eq(b, r') * \sum_j(\gamma_j * v_j(b)) + \sum_k \alpha_k * next_{c_k}(r', b) * v_{src_k}(b). Returns only the sumcheck proof and the challenge point r_0; the caller is responsible for computing and sending lifted_evals at r_0.

Source

pub fn verify_as_subprotocol( transcript: &mut impl Transcript, proof: Proof<F>, eval_point: &[F], up_evals: &[F], down_evals: &[F], shifts: &[ShiftSpec], num_vars: usize, field_cfg: &F::Config, ) -> Result<Subclaim<F>, MultipointEvalError<F>>

Multi-point evaluation protocol verifier (sumcheck phase).

Runs the sumcheck verification and computes the intermediate values needed for the open-eval consistency check. Returns a Subclaim carrying r_0, gammas, alphas, eq_at_r0, and shifts_at_r0. The caller finalizes via verify_subclaim once open_evals are available.

Source

pub fn verify_subclaim( subclaim: &Subclaim<F>, open_evals: &[F], shifts: &[ShiftSpec], field_cfg: &F::Config, ) -> Result<(), MultipointEvalError<F>>

Finalize the multi-point evaluation check given open_evals.

Verifies that eq_at_r0 * \sum_j(gamma_j * open_eval_j) + \sum_k(alpha_k * shift_at_r0_k * open_eval[source_col_k]) equals the sumcheck’s expected evaluation. This is a pure arithmetic check with no transcript interaction.

Auto Trait Implementations§

§

impl<F> Freeze for MultipointEval<F>

§

impl<F> RefUnwindSafe for MultipointEval<F>
where F: RefUnwindSafe,

§

impl<F> Send for MultipointEval<F>
where F: Send,

§

impl<F> Sync for MultipointEval<F>
where F: Sync,

§

impl<F> Unpin for MultipointEval<F>
where F: Unpin,

§

impl<F> UnsafeUnpin for MultipointEval<F>

§

impl<F> UnwindSafe for MultipointEval<F>
where F: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<F, T> IntoWithConfig<F> for T
where F: PrimeField + FromWithConfig<T>,

§

fn into_with_cfg(self, cfg: &<F as PrimeField>::Config) -> F

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V