pub struct VerifyFriAuthenticationPaths;
Expand description
Verify Merkle authentication paths in a FRI context.
Verify a batch of Merkle membership claims in a FRI context where only the
a-indices are known and the b-indices must be calculated on the fly. This
snippet can be used for both a and b-indices. For a-indices the
xor_bit_mask
value must be set to the domain length, and for b indices,
xor_bit_mask
must be set to 3/2 times the domain length. The
xor_bit_mask
is used to convert a leaf index into a Merkle tree node
index.
Behavior: crashes the VM if just one of the authentication paths is invalid. Goes into an infinite loop if a node index value is initialized to 0 or 1 through wrong domain-length values. Also cannot handle empty lists, so this snippet must verify at least one authentication path.
Trait Implementations§
Source§impl BasicSnippet for VerifyFriAuthenticationPaths
impl BasicSnippet for VerifyFriAuthenticationPaths
fn inputs(&self) -> Vec<(DataType, String)>
fn outputs(&self) -> Vec<(DataType, String)>
fn entrypoint(&self) -> String
fn code(&self, _library: &mut Library) -> Vec<LabelledInstruction>
fn annotated_code(&self, library: &mut Library) -> Vec<LabelledInstruction>
fn link_for_isolated_run(&self) -> Vec<LabelledInstruction>
Source§fn init_stack_for_isolated_run(&self) -> Vec<BFieldElement>
fn init_stack_for_isolated_run(&self) -> Vec<BFieldElement>
fn stack_diff(&self) -> isize
Source§impl Clone for VerifyFriAuthenticationPaths
impl Clone for VerifyFriAuthenticationPaths
Source§fn clone(&self) -> VerifyFriAuthenticationPaths
fn clone(&self) -> VerifyFriAuthenticationPaths
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VerifyFriAuthenticationPaths
impl Debug for VerifyFriAuthenticationPaths
Source§impl Default for VerifyFriAuthenticationPaths
impl Default for VerifyFriAuthenticationPaths
Source§fn default() -> VerifyFriAuthenticationPaths
fn default() -> VerifyFriAuthenticationPaths
Source§impl Hash for VerifyFriAuthenticationPaths
impl Hash for VerifyFriAuthenticationPaths
Source§impl PartialEq for VerifyFriAuthenticationPaths
impl PartialEq for VerifyFriAuthenticationPaths
Source§fn eq(&self, other: &VerifyFriAuthenticationPaths) -> bool
fn eq(&self, other: &VerifyFriAuthenticationPaths) -> bool
self
and other
values to be equal, and is used by ==
.impl Copy for VerifyFriAuthenticationPaths
impl Eq for VerifyFriAuthenticationPaths
impl StructuralPartialEq for VerifyFriAuthenticationPaths
Auto Trait Implementations§
impl Freeze for VerifyFriAuthenticationPaths
impl RefUnwindSafe for VerifyFriAuthenticationPaths
impl Send for VerifyFriAuthenticationPaths
impl Sync for VerifyFriAuthenticationPaths
impl Unpin for VerifyFriAuthenticationPaths
impl UnwindSafe for VerifyFriAuthenticationPaths
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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>
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>
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