miden-crypto 0.25.0

Miden Cryptographic primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use alloc::vec::Vec;

use super::{super::Word, forest::Forest};

/// Container for the update data of a [super::PartialMmr]
#[derive(Debug)]
pub struct MmrDelta {
    /// The new version of the [super::Mmr]
    pub forest: Forest,

    /// 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 [super::PartialMmr].
    /// 2. The new peaks.
    pub data: Vec<Word>,
}