feat: add PartialMmr::from_parts() constructor

This commit is contained in:
Bobbin Threadbare
2024-01-29 17:58:00 -08:00
committed by Bobbin Threadbare
parent 1cdd3dbbfa
commit 5fcf98669d
2 changed files with 26 additions and 4 deletions

View File

@@ -132,3 +132,9 @@ impl MmrPeaks {
elements
}
}
impl From<MmrPeaks> for Vec<RpoDigest> {
fn from(peaks: MmrPeaks) -> Self {
peaks.peaks
}
}