arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
miden-crypto/src/merkle/mmr/delta.rs
src/merkle/mmr/delta.rsRaw
 1use alloc::vec::Vec;
 2
 3use super::super::RpoDigest;
 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: usize,
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<RpoDigest>,
18}