pub struct MerkleProof {
pub leaf: B256,
pub siblings: Vec<B256>,
pub path_indices: Vec<usize>,
pub root: B256,
}
Expand description
Represents a Merkle proof for a specific leaf in the Merkle tree.
Fields§
§leaf: B256
The leaf node for which the proof is generated.
siblings: Vec<B256>
The sibling hashes required to reconstruct the root.
path_indices: Vec<usize>
The path indices indicating the position (left/right) at each level.
root: B256
The Merkle root of the tree.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MerkleProof
impl RefUnwindSafe for MerkleProof
impl Send for MerkleProof
impl Sync for MerkleProof
impl Unpin for MerkleProof
impl UnwindSafe for MerkleProof
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