mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-07 14:41:31 +01:00
mmr: add into_parts for the peaks
This commit is contained in:
committed by
Bobbin Threadbare
parent
26560605bf
commit
800994c69b
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user