mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 00:51:29 +01:00
feat: Falcon 512 signature
This commit is contained in:
@@ -71,10 +71,7 @@ impl Mmr {
|
||||
|
||||
/// Constructor for an empty `Mmr`.
|
||||
pub fn new() -> Mmr {
|
||||
Mmr {
|
||||
forest: 0,
|
||||
nodes: Vec::new(),
|
||||
}
|
||||
Mmr { forest: 0, nodes: Vec::new() }
|
||||
}
|
||||
|
||||
// ACCESSORS
|
||||
@@ -188,10 +185,7 @@ impl Mmr {
|
||||
.map(|offset| self.nodes[offset - 1])
|
||||
.collect();
|
||||
|
||||
MmrPeaks {
|
||||
num_leaves: self.forest,
|
||||
peaks,
|
||||
}
|
||||
MmrPeaks { num_leaves: self.forest, peaks }
|
||||
}
|
||||
|
||||
/// An iterator over inner nodes in the MMR. The order of iteration is unspecified.
|
||||
|
||||
Reference in New Issue
Block a user