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