hotmint
A Rust BFT consensus framework combining Tendermint's engineering ergonomics with HotStuff-2's protocol efficiency.
This is the top-level facade crate that re-exports the entire Hotmint ecosystem. Add this single dependency to access all sub-crates.
Sub-Crates
| Re-export | Crate | Description |
|---|---|---|
hotmint::types |
hotmint-types | Core data types |
hotmint::crypto |
hotmint-crypto | Ed25519 + Blake3 |
hotmint::consensus |
hotmint-consensus | Consensus engine |
hotmint::storage |
hotmint-storage | Persistent storage (vsdb) |
hotmint::network |
hotmint-network | P2P networking (litep2p) |
hotmint::mempool |
hotmint-mempool | Transaction mempool |
hotmint::abci |
hotmint-abci | IPC proxy (Unix socket) |
hotmint::api |
hotmint-api | JSON-RPC API |
Prelude
use *;
// Imports: Block, BlockHash, Height, ViewNumber, Vote, VoteType,
// QuorumCertificate, DoubleCertificate, TimeoutCertificate,
// ValidatorId, ValidatorInfo, ValidatorSet,
// Signer, Verifier, Signature, Epoch, EpochNumber,
// ConsensusMessage
Quick Start
[]
= { = "https://github.com/rust-util-collections/hotmint" }
= { = "1", = ["full"] }
= "9.3"
use *;
use *;
use Application;
use ConsensusEngineBuilder;
use ConsensusState;
use MemoryBlockStore;
use Ed25519Signer;
;
// 1. Generate signers and build validator set
let signers: =
.map
.collect;
let vs = new;
// 2. Create network service and spawn engine
// (see docs/getting-started.md for the full wiring example)
Demo Binary
# run the built-in 4-node cluster demo
Documentation
See the docs/ directory for comprehensive guides:
License
GPL-3.0-only