pub struct MerklePathEvent {
pub root_id: u8,
pub left: [u8; 32],
pub right: [u8; 32],
pub parent: [u8; 32],
pub parent_depth: usize,
pub parent_index: usize,
pub flush_left: bool,
pub flush_right: bool,
}
Expand description
A table representing a step in verifying a merkle path for inclusion.
Fields§
§root_id: u8
§left: [u8; 32]
§right: [u8; 32]
§parent: [u8; 32]
§parent_depth: usize
§parent_index: usize
§flush_left: bool
§flush_right: bool
Implementations§
Source§impl MerklePathEvent
impl MerklePathEvent
Sourcepub fn fire(&self, node_channel: &mut Channel<NodeFlushToken>)
pub fn fire(&self, node_channel: &mut Channel<NodeFlushToken>)
Method to fire the event, pushing the parent digest if the parent flag is set and pulling the left or right child depending on the flush flags.
Trait Implementations§
Source§impl Clone for MerklePathEvent
impl Clone for MerklePathEvent
Source§fn clone(&self) -> MerklePathEvent
fn clone(&self) -> MerklePathEvent
Returns a copy of the value. Read more
1.0.0 · 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 MerklePathEvent
impl Debug for MerklePathEvent
Source§impl Hash for MerklePathEvent
impl Hash for MerklePathEvent
Source§impl PartialEq for MerklePathEvent
impl PartialEq for MerklePathEvent
impl Copy for MerklePathEvent
impl Eq for MerklePathEvent
impl StructuralPartialEq for MerklePathEvent
Auto Trait Implementations§
impl Freeze for MerklePathEvent
impl RefUnwindSafe for MerklePathEvent
impl Send for MerklePathEvent
impl Sync for MerklePathEvent
impl Unpin for MerklePathEvent
impl UnwindSafe for MerklePathEvent
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