light_indexed_merkle_tree/changelog.rs
1use light_concurrent_merkle_tree::event::RawIndexedElement;
2
3/// NET_HEIGHT = HEIGHT - CANOPY_DEPTH
4#[derive(Clone, Debug, PartialEq, Eq)]
5pub struct IndexedChangelogEntry<I, const NET_HEIGHT: usize>
6where
7 I: Clone,
8{
9 /// Element that was a subject to the change.
10 pub element: RawIndexedElement<I>,
11 /// Merkle proof of that operation.
12 pub proof: [[u8; 32]; NET_HEIGHT],
13 /// Index of a changelog entry in `ConcurrentMerkleTree` corresponding to
14 /// the same operation.
15 pub changelog_index: usize,
16}