Important
Under active development. Not production-ready.
InferaDB Ledger is a distributed blockchain database optimized for authorization workloads. It commits every state change cryptographically, replicates via Raft consensus, and lets clients verify independently. Ledger is the persistent storage layer used by the InferaDB Engine and InferaDB Control.
- Sub-millisecond Reads — O(1) lookups via B+ tree indexes, no merkle overhead on hot path
- Cryptographic Auditability — Per-vault blockchain with chain-linked state roots, SHA-256 commitments, tamper-evident history
- Strong Consistency — Raft consensus ensures permission changes are immediately visible cluster-wide
- Fault Isolation — Per-vault chains prevent failures from cascading across tenants
- Horizontal Scaling — Shard groups distribute namespaces across independent Raft clusters
Development or single-server deployment:
inferadb-ledger --data /var/lib/ledger --singleProduction cluster (run on each of 3 nodes):
inferadb-ledger --data /var/lib/ledger --cluster 3 --peers ledger.example.comFor clusters, --peers tells each node how to find the others. Pass one of:
- DNS domain (e.g.,
ledger.example.com) — looks up A records - File path (e.g.,
/var/lib/ledger/peers.json) — reads addresses from JSON
See the deployment guide for multi-node setup, Kubernetes, adding/removing nodes, backup, and recovery.
| CLI | Purpose | Default |
|---|---|---|
--listen |
Bind address for gRPC API | 127.0.0.1:50051 |
--data |
Persistent storage (logs, state, snapshots) | (ephemeral) |
--single |
Development or single-server deployment (details) | |
--join |
Add this server to an existing cluster (details) | |
--cluster |
Start a new N-node cluster (details) | 3 |
--peers |
How to find other nodes: DNS domain or file path | (disabled) |
See Configuration Reference for environment variables and all options including metrics, batching, and tuning.
git clone https://github.com/inferadb/ledger.git
cd ledger
# Install development tools
mise trust && mise install
# Build
just build
# Run tests
just test- Technical White Paper — Start here to understand how Ledger works, see benchmark results, and evaluate whether it fits your use case
- Technical Design Document — Authoritative specification for contributors; explains the reasoning behind architectural decisions
Join us on Discord for questions and discussions.
Dual-licensed under MIT or Apache 2.0.
