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