A decentralized sequencer integrated with the Espresso Network for fast transaction confirmations. This implementation follows the Felten-Shoup Decentralized Timeboost specification, using Sailfish consensus with an optional encrypted mempool based on the SG01 threshold decryption scheme.
This repository provides a complete decentralized sequencer implementation with configurable transaction ordering policies:
- Timeboost Mode: Priority-based ordering with express lanes via Timeboost contracts
- FCFS Mode: First-come-first-served ordering
Both modes support an optional encrypted mempool using threshold encryption for transaction privacy before ordering.
Written in Rust with comprehensive testing infrastructure.
timeboost/
├── Core Components
│ ├── timeboost/ # Main orchestration and API layer
│ ├── timeboost-builder/ # Block certification and Espresso submission
│ ├── timeboost-sequencer/ # Transaction ordering and threshold decryption
│ ├── timeboost-types/ # Shared type definitions
│ ├── timeboost-crypto/ # Threshold encryption (TPKE) and DKG
│ ├── timeboost-config/ # Node and committee configuration
│ └── timeboost-utils/ # Common utilities
│
├── Consensus Layer
│ ├── sailfish/ # Consensus coordinator and handover management
│ ├── sailfish-consensus/ # DAG-based BFT consensus
│ ├── sailfish-rbc/ # Reliable broadcast channel
│ └── sailfish-types/ # Consensus type definitions
│
├── Networking
│ ├── cliquenet/ # P2P networking (Noise protocol, X25519)
│ └── multisig/ # Signatures and quorum certificates
│
└── Infrastructure
├── adapters/ # CBOR encoding adapters
├── robusta/ # Espresso network client
├── state-io/ # Persistent state backends
├── test-utils/ # Test infrastructure
├── tests/ # Integration tests
└── times/ # Performance metrics
- Rust toolchain (Minimum supported rust version: 1.88) - Install via rustup
- just - Command runner for project tasks - Install just
- cargo-nextest - Next-generation test runner for Cargo - Install nextest
- Foundry - Solidity development and testing toolkit - Install Foundry
- Docker - For running integration tests - Install Docker
Debug build
just buildRelease build
just build-releaseRun in Docker
just docker run-integrationjust lintjust testCopyright (c) 2025 Espresso Systems. Sailfish and Decentralized Timeboost were developed by Espresso Systems. While we plan to adopt an open source license, we have not yet selected one. As such, all rights are reserved for the time being. Please reach out to us if you have thoughts on licensing.