Skip to main content

miden_protocol/block/
mod.rs

1mod header;
2pub use header::{BlockHeader, FeeParameters};
3
4mod block_body;
5pub use block_body::BlockBody;
6
7mod block_number;
8pub use block_number::BlockNumber;
9
10mod block_proof;
11pub use block_proof::BlockProof;
12
13mod proposed_block;
14pub use proposed_block::ProposedBlock;
15
16mod signed_block;
17pub use signed_block::SignedBlock;
18
19mod proven_block;
20pub use proven_block::ProvenBlock;
21
22pub mod account_tree;
23pub mod nullifier_tree;
24
25mod blockchain;
26pub use blockchain::Blockchain;
27
28mod block_account_update;
29pub use block_account_update::BlockAccountUpdate;
30
31mod account_update_witness;
32pub use account_update_witness::AccountUpdateWitness;
33
34mod block_inputs;
35pub use block_inputs::BlockInputs;
36
37mod note_tree;
38pub use note_tree::{BlockNoteIndex, BlockNoteTree};
39
40/// The set of notes created in a transaction batch with their index in the batch.
41///
42/// The index is included as some notes may be erased at the block level that were part of the
43/// output notes of a batch. This means the indices here may not be contiguous, i.e. any missing
44/// index belongs to an erased note. To correctly build the [`BlockNoteTree`] of a block, this index
45/// is required.
46pub type OutputNoteBatch = alloc::vec::Vec<(usize, crate::transaction::OutputNote)>;