pub struct MmrProof {
pub forest: usize,
pub position: usize,
pub merkle_path: MerklePath,
}
Fields§
§forest: usize
The state of the MMR when the MmrProof was created.
position: usize
The position of the leaf value on this MmrProof.
merkle_path: MerklePath
The Merkle opening, starting from the value’s sibling up to and excluding the root of the responsible tree.
Implementations§
source§impl MmrProof
impl MmrProof
sourcepub fn relative_pos(&self) -> usize
pub fn relative_pos(&self) -> usize
Converts the leaf global position into a local position that can be used to verify the merkle_path.
sourcepub fn peak_index(&self) -> usize
pub fn peak_index(&self) -> usize
Returns index of the MMR peak against which the Merkle path in this proof can be verified.
Trait Implementations§
impl StructuralPartialEq for MmrProof
Auto Trait Implementations§
impl Freeze for MmrProof
impl RefUnwindSafe for MmrProof
impl Send for MmrProof
impl Sync for MmrProof
impl Unpin for MmrProof
impl UnwindSafe for MmrProof
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)