pub struct RoundLayout {
pub log_len: usize,
pub is_zk: bool,
pub block_offsets: Vec<usize>,
pub pad_len: usize,
}Expand description
How one round’s oracles sit inside the round oracle M_r they are committed as.
Fields§
§log_len: usizeThe base-2 logarithm of the round oracle’s length.
is_zk: boolWhether the round oracle is masked, which it is if any constituent is.
block_offsets: Vec<usize>Per constituent, in arrival order, the block it occupies.
Constituent i of 2^ℓ_i entries occupies M_r[b_i · 2^ℓ_i .. (b_i + 1) · 2^ℓ_i], and
only its first len_i entries carry content.
pad_len: usizeThe length of the ZK pad, which is the top pad_len coordinates of M_r.
It is n_test_queries for a zero-knowledge round and zero for any other. See the
module documentation for why the pad sits at the top.
Implementations§
Source§impl RoundLayout
impl RoundLayout
Trait Implementations§
Source§impl Clone for RoundLayout
impl Clone for RoundLayout
Source§fn clone(&self) -> RoundLayout
fn clone(&self) -> RoundLayout
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 Debug for RoundLayout
impl Debug for RoundLayout
impl Eq for RoundLayout
Source§impl PartialEq for RoundLayout
impl PartialEq for RoundLayout
Source§fn eq(&self, other: &RoundLayout) -> bool
fn eq(&self, other: &RoundLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoundLayout
Auto Trait Implementations§
impl Freeze for RoundLayout
impl RefUnwindSafe for RoundLayout
impl Send for RoundLayout
impl Sync for RoundLayout
impl Unpin for RoundLayout
impl UnsafeUnpin for RoundLayout
impl UnwindSafe for RoundLayout
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,
§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