mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 09:01:29 +01:00
mmr: added partial mmr
This commit is contained in:
16
src/merkle/mmr/delta.rs
Normal file
16
src/merkle/mmr/delta.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use super::super::{RpoDigest, Vec};
|
||||
|
||||
/// Container for the update data of a [PartialMmr]
|
||||
#[derive(Debug)]
|
||||
pub struct MmrDelta {
|
||||
/// The new version of the [Mmr]
|
||||
pub forest: usize,
|
||||
|
||||
/// Update data.
|
||||
///
|
||||
/// The data is packed as follows:
|
||||
/// 1. All the elements needed to perform authentication path updates. These are the right
|
||||
/// siblings required to perform tree merges on the [PartialMmr].
|
||||
/// 2. The new peaks.
|
||||
pub data: Vec<RpoDigest>,
|
||||
}
|
||||
Reference in New Issue
Block a user