pub struct MmrPeaks<const MAX_N: u64>{
pub num_leaves: u64,
pub peaks: [[u8; 32]; { _ }],
}
Expand description
MMR peaks for MerkleMountainRange
.
Primarily intended to be used with MerkleMountainRange::from_peaks()
, can be sent over the
network, etc.
Fields§
§num_leaves: u64
Number of leaves in MMR
peaks: [[u8; 32]; { _ }]
MMR peaks, first Self::num_peaks()
elements are occupied by values, the rest are ignored
and do not need to be retained.
Implementations§
Trait Implementations§
Source§impl<const MAX_N: u64> Ord for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Ord for MmrPeaks<MAX_N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const MAX_N: u64> PartialOrd for MmrPeaks<MAX_N>
impl<const MAX_N: u64> PartialOrd for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Copy for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Eq for MmrPeaks<MAX_N>
impl<const MAX_N: u64> StructuralPartialEq for MmrPeaks<MAX_N>
Auto Trait Implementations§
impl<const MAX_N: u64> Freeze for MmrPeaks<MAX_N>
impl<const MAX_N: u64> RefUnwindSafe for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Send for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Sync for MmrPeaks<MAX_N>
impl<const MAX_N: u64> Unpin for MmrPeaks<MAX_N>
impl<const MAX_N: u64> UnwindSafe for MmrPeaks<MAX_N>
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