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 proven_block;
17pub use proven_block::ProvenBlock;
18
19pub mod account_tree;
20pub mod nullifier_tree;
21
22mod blockchain;
23pub use blockchain::Blockchain;
24
25mod block_account_update;
26pub use block_account_update::BlockAccountUpdate;
27
28mod account_update_witness;
29pub use account_update_witness::AccountUpdateWitness;
30
31mod block_inputs;
32pub use block_inputs::BlockInputs;
33
34mod note_tree;
35pub use note_tree::{BlockNoteIndex, BlockNoteTree};
36
37mod signer;
38pub use signer::BlockSigner;
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)>;