Skip to main content

ProverProjectedCombined

Struct ProverProjectedCombined 

Source
pub struct ProverProjectedCombined<'a, Zt: ZincTypes<D, FD>, U: Uair, C: BaseFieldConfig, const D: usize, const FD: usize> { /* private fields */ }
Expand description

After step 2 via step2_combined (row-major / “combined” projection).

Implementations§

Source§

impl<'a, Zt, U, C, const D: usize, const FD: usize> ProverProjectedCombined<'a, Zt, U, C, D, FD>
where Zt: ZincTypes<D, FD>, Zt::Int: ProjectableToField<C>, Zt::CombR: MulByScalar<Zt::Chal>, <Zt::ArbitraryZt as ZipTypes>::Eval: ProjectableToField<C>, U: Uair<Prime = Zt::Fmod> + 'static, C: BaseFieldConfig<Integer = Zt::Fmod> + ProjectPrimitiveIntegersWithConfig + ProjectElementWithConfig<Zt::Int> + ProjectElementWithConfig<Zt::CombR> + ProjectElementWithConfig<Zt::Chal> + 'static, C::Integer: ConstTranscribable,

Source

pub fn step3_ideal_check( self, ) -> Result<ProverIdealChecked<'a, Zt, U, C, D, FD>, ProtocolError<C::Element>>

Step 3 (combined): Ideal check via prove_combined on the row-major trace. Works for both linear and non-linear constraints.

Also runs one per-prime $F_{q_i}[X]$ ideal check per declared prime in UairSignature::primes(), in order. The per-prime trace and scalars are projected deterministically with q_i’s field_cfg.

Shared evaluation point. All $n + 1$ families share a single MLE evaluation point $r \in [0, q^*)^\mu$ sampled once from the transcript at the start of this step. Each family lifts the shared integer vector into its own field via $C::Element::from_with_cfg$. Since each shared integer is strictly less than every $q_i$, the lift is a type cast: all families agree on the underlying integer.

Trait Implementations§

Source§

impl<'a, Zt: Clone + ZincTypes<D, FD>, U: Clone + Uair, C: Clone + BaseFieldConfig, const D: usize, const FD: usize> Clone for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C::Element: Clone, U::Scalar: Clone,

Source§

fn clone(&self) -> ProverProjectedCombined<'a, Zt, U, C, D, FD>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, Zt: Debug + ZincTypes<D, FD>, U: Debug + Uair, C: Debug + BaseFieldConfig, const D: usize, const FD: usize> Debug for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C::Element: Debug, U::Scalar: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> Freeze for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C: Freeze,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> RefUnwindSafe for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::BinaryLc: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::ArbitraryLc: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::IntLc: RefUnwindSafe, U: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::BinaryZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::ArbitraryZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::IntZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::Fmod: RefUnwindSafe, <U as Uair>::Scalar: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::Int: RefUnwindSafe, <<Zt as ZincTypes<D, FD>>::BinaryZt as ZipTypes>::Cw: RefUnwindSafe, <<Zt as ZincTypes<D, FD>>::ArbitraryZt as ZipTypes>::Cw: RefUnwindSafe, <<Zt as ZincTypes<D, FD>>::IntZt as ZipTypes>::Cw: RefUnwindSafe, <C as SetConfig>::Element: RefUnwindSafe,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> Send for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where U: Send,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> Sync for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where U: Sync,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> Unpin for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C: Unpin, U: Unpin, <Zt as ZincTypes<D, FD>>::Fmod: Unpin, <U as Uair>::Scalar: Unpin, <Zt as ZincTypes<D, FD>>::Int: Unpin, <<Zt as ZincTypes<D, FD>>::BinaryZt as ZipTypes>::Cw: Unpin, <<Zt as ZincTypes<D, FD>>::ArbitraryZt as ZipTypes>::Cw: Unpin, <<Zt as ZincTypes<D, FD>>::IntZt as ZipTypes>::Cw: Unpin, <C as SetConfig>::Element: Unpin,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> UnsafeUnpin for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C: UnsafeUnpin,

§

impl<'a, Zt, U, C, const D: usize, const FD: usize> UnwindSafe for ProverProjectedCombined<'a, Zt, U, C, D, FD>
where C: UnwindSafe, <U as Uair>::Scalar: UnwindSafe, <Zt as ZincTypes<D, FD>>::BinaryLc: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::ArbitraryLc: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::IntLc: RefUnwindSafe, U: UnwindSafe, <Zt as ZincTypes<D, FD>>::BinaryZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::ArbitraryZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::IntZt: RefUnwindSafe, <Zt as ZincTypes<D, FD>>::Fmod: UnwindSafe, <C as SetConfig>::Element: UnwindSafe, <Zt as ZincTypes<D, FD>>::Int: RefUnwindSafe + UnwindSafe, <<Zt as ZincTypes<D, FD>>::BinaryZt as ZipTypes>::Cw: UnwindSafe, <<Zt as ZincTypes<D, FD>>::ArbitraryZt as ZipTypes>::Cw: UnwindSafe, <<Zt as ZincTypes<D, FD>>::IntZt as ZipTypes>::Cw: 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
§

impl<T> AsMaybeUninit for T

§

type Uninit = MaybeUninit<T>

This type in its maybe-uninitialized form.
§

type SizedPart = T

The largest Sized element in Self, used to check for the absence of drop glue via a Copy bound. Read more
§

fn as_ref_uninit(&self) -> &<T as AsMaybeUninit>::Uninit

Converts a &self to its maybe-initialized equivalent.
§

unsafe fn as_mut_uninit(&mut self) -> &mut <T as AsMaybeUninit>::Uninit

Converts a &mut T to its maybe-initialized equivalent. Read more
§

unsafe fn raw_as_uninit<'a>(raw: *const T) -> &'a <T as AsMaybeUninit>::Uninit

Converts a raw pointer to a reference to maybe-uninit. Read more
§

unsafe fn raw_mut_as_uninit<'a>( raw: *mut T, ) -> &'a mut <T as AsMaybeUninit>::Uninit

Converts a raw mutable pointer to a mutable reference to maybe-uninit. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<T> ManuallyDropMut for T

§

type Ret = ManuallyDrop<T>

§

fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>

§

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,