miden-crypto/src/merkle/mmr/delta.rs
src/merkle/mmr/delta.rsRaw
1use super::super::RpoDigest;
2use alloc::vec::Vec;
3
4/// Container for the update data of a [super::PartialMmr]
5#[derive(Debug)]
6pub struct MmrDelta {
7 /// The new version of the [super::Mmr]
8 pub forest: usize,
9
10 /// Update data.
11 ///
12 /// The data is packed as follows:
13 /// 1. All the elements needed to perform authentication path updates. These are the right
14 /// siblings required to perform tree merges on the [super::PartialMmr].
15 /// 2. The new peaks.
16 pub data: Vec<RpoDigest>,
17}