battleware_node/application/
mod.rs1use std::num::NonZero;
2
3use crate::indexer::Indexer;
4use battleware_types::Evaluation;
5use commonware_cryptography::{
6 bls12381::primitives::{group, poly::Poly},
7 ed25519::PublicKey,
8};
9
10mod actor;
11pub use actor::Actor;
12mod ingress;
13use commonware_runtime::buffer::PoolRef;
14pub use ingress::Mailbox;
15mod mempool;
16
17pub struct Config<I: Indexer> {
19 pub participants: Vec<PublicKey>,
21
22 pub polynomial: Poly<Evaluation>,
24
25 pub share: group::Share,
27
28 pub mailbox_size: usize,
31
32 pub partition_prefix: String,
34
35 pub mmr_items_per_blob: NonZero<u64>,
37
38 pub mmr_write_buffer: NonZero<usize>,
40
41 pub log_items_per_section: NonZero<u64>,
43
44 pub log_write_buffer: NonZero<usize>,
46
47 pub locations_items_per_blob: NonZero<u64>,
49
50 pub buffer_pool: PoolRef,
52
53 pub indexer: I,
55
56 pub execution_concurrency: usize,
58}