What is BULK
BULK is a specialized execution layer that runs sophisticated risk, order book, and matching systems natively. BULK handles what requires purpose-built infrastructure: low-latency order matching, BULKBFT consensus on transaction ordering, and real-time risk management. The Solana bridge handles deposits, withdrawals, and asset custody on Solana.Validators
Misbehavior in BULK Net results in protocol penalties (jailing), creating direct economic consequences.Architecture
The core architecture separates pure protocol logic from I/O. Protocol crates (bulk-consensus-proto, bulk-core-proto) contain deterministic state machines - decision algorithms, type definitions, risk calculations. No network calls, no disk I/O. I/O layers (bulk-consensus, bulk-relay, bulk-core) wrap these and handle network transport, database persistence, and bridge connectivity.
This means the consensus and execution logic can be verified, simulated, and tested independently of any specific network implementation.
Order Lifecycle
1. Order Ingress
Traders submit signed transactions via the HTTP API or WebSocket. The ingress layer hashes each transaction for deduplication and broadcasts it to the validator set via authenticated Noise-protocol channels.2. Consensus
Validators exchange compact transaction sketches (minisketch) and reconcile to agree on the transaction set for each round. BULKBFT consensus produces aCommittedBatch - the canonical set of transactions for that round, agreed upon by a supermajority.
See BULKBFT Consensus for protocol details.