pub struct StackedPcsData<F, Digest> {
pub layout: StackedLayout,
pub matrix: ColMajorMatrix<F>,
pub tree: MerkleTree<F, Digest>,
}Fields§
§layout: StackedLayoutLayout of the unstacked collection of matrices within the stacked matrix.
matrix: ColMajorMatrix<F>The stacked matrix of evaluations with height 2^{l_skip + n_stack}.
tree: MerkleTree<F, Digest>Merkle tree of the Reed-Solomon codewords of the stacked matrix.
Depends on k_whir parameter.
Implementations§
Source§impl<F, Digest> StackedPcsData<F, Digest>
impl<F, Digest> StackedPcsData<F, Digest>
Sourcepub fn new(
layout: StackedLayout,
matrix: ColMajorMatrix<F>,
tree: MerkleTree<F, Digest>,
) -> Self
pub fn new( layout: StackedLayout, matrix: ColMajorMatrix<F>, tree: MerkleTree<F, Digest>, ) -> Self
Constructs a new StackedPcsData.
Source§impl<F, Digest: Clone> StackedPcsData<F, Digest>
impl<F, Digest: Clone> StackedPcsData<F, Digest>
Sourcepub fn commit(&self) -> Result<Digest, StackedPcsError>
pub fn commit(&self) -> Result<Digest, StackedPcsError>
Returns the root of the Merkle tree.
pub fn mat_view( &self, unstacked_mat_idx: usize, ) -> StridedColMajorMatrixView<'_, F>
Trait Implementations§
Source§impl<F: Clone, Digest: Clone> Clone for StackedPcsData<F, Digest>
impl<F: Clone, Digest: Clone> Clone for StackedPcsData<F, Digest>
Source§fn clone(&self) -> StackedPcsData<F, Digest>
fn clone(&self) -> StackedPcsData<F, Digest>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, F, Digest> Deserialize<'de> for StackedPcsData<F, Digest>where
F: Deserialize<'de>,
Digest: Deserialize<'de>,
impl<'de, F, Digest> Deserialize<'de> for StackedPcsData<F, Digest>where
F: Deserialize<'de>,
Digest: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<F, Digest> Freeze for StackedPcsData<F, Digest>
impl<F, Digest> RefUnwindSafe for StackedPcsData<F, Digest>where
F: RefUnwindSafe,
Digest: RefUnwindSafe,
impl<F, Digest> Send for StackedPcsData<F, Digest>
impl<F, Digest> Sync for StackedPcsData<F, Digest>
impl<F, Digest> Unpin for StackedPcsData<F, Digest>
impl<F, Digest> UnsafeUnpin for StackedPcsData<F, Digest>
impl<F, Digest> UnwindSafe for StackedPcsData<F, Digest>where
F: UnwindSafe,
Digest: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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