mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 00:51:29 +01:00
mmr: optimized peak hash for Miden VM
This commit is contained in:
@@ -174,7 +174,7 @@ impl Mmr {
|
||||
self.forest += 1;
|
||||
}
|
||||
|
||||
/// Returns an accumulator representing the current state of the MMMR.
|
||||
/// Returns an accumulator representing the current state of the MMR.
|
||||
pub fn accumulator(&self) -> MmrPeaks {
|
||||
let peaks: Vec<Word> = TrueBitPositionIterator::new(self.forest)
|
||||
.rev()
|
||||
@@ -192,7 +192,7 @@ impl Mmr {
|
||||
}
|
||||
}
|
||||
|
||||
/// An iterator over inner nodes in the [Mmm]. The order of iteration is unspecified.
|
||||
/// An iterator over inner nodes in the MMR. The order of iteration is unspecified.
|
||||
pub fn inner_nodes(&self) -> MmrNodes {
|
||||
MmrNodes {
|
||||
mmr: self,
|
||||
|
||||
Reference in New Issue
Block a user