Browse Source

mmr: add into_parts for the peaks

km/mkdocs-impl
Augusto F. Hack 1 year ago
committed by Bobbin Threadbare
parent
commit
9f95582654
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/merkle/mmr/peaks.rs

+ 5
- 0
src/merkle/mmr/peaks.rs

@ -54,6 +54,11 @@ impl MmrPeaks {
&self.peaks
}
/// Returns the current num_leaves and peaks of the [Mmr].
pub fn into_parts(self) -> (usize, Vec<RpoDigest>) {
(self.num_leaves, self.peaks)
}
/// Hashes the peaks.
///
/// The procedure will:

Loading…
Cancel
Save