pub struct RapView<T, Val, Challenge> {
pub pair: PairView<T, Val>,
pub per_phase: Vec<RapSinglePhaseView<T, Challenge>>,
}
Expand description
The full RAP trace consists of horizontal concatenation of multiple matrices of the same height:
- preprocessed trace matrix
- the main trace matrix is horizontally partitioned into multiple matrices, where each matrix can belong to a separate matrix commitment.
- after each round of challenges, a trace matrix for trace allowed to use those challenges
Each of these matrices is allowed to be in a separate commitment.
Only the main trace matrix is allowed to be partitioned, so that different parts may belong to
different commitments. We do not see any use cases where the preprocessed
or after_challenge
matrices need to be partitioned.
The generic T
may be either just the trace matrix view or the LDE matrix view.
Fields§
§pair: PairView<T, Val>
§per_phase: Vec<RapSinglePhaseView<T, Challenge>>
per_phase[i]
is a view which is calculated after sampling challenges
which depend on observing commitments to pair
and per_phase[..i]
.
Auto Trait Implementations§
impl<T, Val, Challenge> Freeze for RapView<T, Val, Challenge>where
T: Freeze,
impl<T, Val, Challenge> RefUnwindSafe for RapView<T, Val, Challenge>
impl<T, Val, Challenge> Send for RapView<T, Val, Challenge>
impl<T, Val, Challenge> Sync for RapView<T, Val, Challenge>
impl<T, Val, Challenge> Unpin for RapView<T, Val, Challenge>
impl<T, Val, Challenge> UnwindSafe for RapView<T, Val, Challenge>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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