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 kernel;
11pub use kernel::BlockKernel;
12
13mod block_outputs;
14pub use block_outputs::BlockOutputs;
15
16mod proposed_block;
17pub use proposed_block::ProposedBlock;
18
19mod validator_config;
20pub use validator_config::ValidatorConfig;
21
22mod block_signatures;
23pub use block_signatures::{BlockSignatures, SignatureVerificationError};
24
25mod signed_block;
26pub use signed_block::SignedBlock;
27
28mod proven_block;
29pub use proven_block::ProvenBlock;
30
31pub mod account_tree;
32pub mod nullifier_tree;
33
34mod smt_backend;
35pub use smt_backend::{SmtBackend, SmtBackendReader};
36
37mod blockchain;
38pub use blockchain::Blockchain;
39
40mod block_account_update;
41pub use block_account_update::BlockAccountUpdate;
42
43mod account_update_witness;
44pub use account_update_witness::AccountUpdateWitness;
45
46mod block_inputs;
47pub use block_inputs::BlockInputs;
48
49mod note_tree;
50pub use note_tree::{BlockNoteIndex, BlockNoteTree};
51
52/// The set of notes created in a transaction batch with their index in the batch.
53///
54/// The index is included as some notes may be erased at the block level that were part of the
55/// output notes of a batch. This means the indices here may not be contiguous, i.e. any missing
56/// index belongs to an erased note. To correctly build the [`BlockNoteTree`] of a block, this index
57/// is required.
58pub type OutputNoteBatch = alloc::vec::Vec<(usize, crate::transaction::OutputNote)>;