pub struct ProofStep {
pub siblings: Vec<Vec<u8>>,
pub position: usize,
}Expand description
A single level in a Merkle proof path.
Fields§
§siblings: Vec<Vec<u8>>Sibling digests at this level (excluding the path node). Empty for promoted (lone-child) nodes.
position: usizePosition of the path node among all children (0-indexed).
Implementations§
Source§impl ProofStep
impl ProofStep
Sourcepub fn shape(&self) -> SkeletonStep
pub fn shape(&self) -> SkeletonStep
Project this step’s structural shape — position and sibling count —
as a crate::topology::SkeletonStep. Used by
verify_inclusion_path_structure to compare against the canonical
skeleton without open-coding the field correspondence.
Trait Implementations§
impl Eq for ProofStep
impl StructuralPartialEq for ProofStep
Auto Trait Implementations§
impl Freeze for ProofStep
impl RefUnwindSafe for ProofStep
impl Send for ProofStep
impl Sync for ProofStep
impl Unpin for ProofStep
impl UnsafeUnpin for ProofStep
impl UnwindSafe for ProofStep
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