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