Lumina Chain is a high-performance, production-grade Layer 1 blockchain specifically designed for stablecoin operations and enterprise financial applications. Built in Rust for maximum performance and security, Lumina Chain provides a robust, scalable, and secure foundation for the next generation of financial applications.
Note: This repository was previously private and has now been made public. You may see like 5000 commits in the next few weeks as we clean up the codebase and add documentation. But then it will plateau and we will focus on adding new features and improvements. It is a testbed for a future blockchain architecture this is not made to be operatible yet.
- High Performance: 8,000+ TPS with sub-900ms finality
- BFT Consensus: Malachite BFT consensus for enterprise-grade reliability
- Zero-Knowledge Proofs: Privacy-preserving transactions with ZK-SNARKs
- Dual-Token System: LUSD (senior tranche) and LJUN (junior tranche)
- Enterprise Security: Formal verification, hardware security modules
- Cross-Chain: IBC protocol support for interoperability
- Real-time Proof of Reserves: ZK-SNARK based reserve verification
- Dual-Tranche Stability: Senior/Junior tranche system for risk management
- Regulatory Compliance: Built-in compliance with travel rule, AML/KYC
- Privacy: Confidential transactions with zero-knowledge proofs
- Cross-Chain: IBC protocol for cross-chain interoperability
- Public RPC:
https://rpc.testnet.lumina.example - Block Explorer:
https://explorer.testnet.lumina.example - Faucet:
https://faucet.testnet.lumina.example(rate-limited, captcha + allowlist) - Genesis:
testnet/genesis.json - Bootnodes:
testnet/bootnodes.md
- 📖 Complete Documentation - Full documentation index
- 🏗️ Architecture Overview - System architecture and design
- 🛠️ Developer Guide - Setup and development guide
- 🔧 API Reference - Complete API documentation
- 🔒 Security Policy - Vulnerability reporting and disclosure
- 🧮 Dual-Tranche Math Spec - Collateral, rebalancing, wipeout and queue rules
- 🚀 Deployment Guide - Production deployment
- 📖 API Documentation - API usage and examples
- 🧭 Roadmap - Milestones and upcoming work
- 🤝 Contributing - How to contribute
- Rust 1.75+ and Cargo
- Docker and Docker Compose
- Git
# Clone the repository
git clone https://github.com/luminachain/lumina.git
cd lumina
# Build the project
cargo build --release
# Or use Docker
docker build -t lumina-node .# Start a single node
cargo run --bin lumina-node -- --validator
# Or with Docker
docker run -p 26656:26656 -p 26657:26657 lumina-node# Check node status
curl http://localhost:26657/status
# Query account balance
lumina query bank balances [address]
# Send a transaction
lumina tx bank send [from] [to] [amount]Lumina Chain is built with a modular, layered architecture:
┌─────────────────────────────────┐
│ Application Layer │
│ • DEX, DeFi, Stablecoins │
├─────────────────────────────────┤
│ Execution Layer │
│ • Smart Contracts │
│ • ZK Circuits │
├─────────────────────────────────┤
│ Consensus Layer │
│ • BFT Consensus │
│ • Validator Set │
├─────────────────────────────────┤
│ Networking Layer │
│ • P2P, RPC, API │
└─────────────────────────────────┘
- Consensus Layer: Malachite BFT consensus with 2/3+1 Byzantine fault tolerance
- Execution Layer: Deterministic state machine with 50+ native stablecoin instructions
- Storage Layer: RocksDB with Merkle Patricia Trie for efficient state management
- Networking: libp2p with TLS 1.3, QUIC transport
- Privacy Layer: ZK-SNARKs for confidential transactions
# Clone and build
git clone https://github.com/luminachain/lumina.git
cd lumina
cargo build --release
# Run tests
cargo test --all-features
# Run benchmarks
cargo bench# docker-compose.yml
version: '3.8'
services:
lumina-node:
image: luminachain/node:latest
ports:
- "26656:26656" # P2P
- "26657:26657" # RPC
- "1317:1317" # REST API
volumes:
- ./data:/root/.lumina
command: start --home /root/.luminaCreate config.toml:
[network]
chain_id = "lumina-1"
moniker = "my-validator"
[consensus]
timeout_propose = "3s"
timeout_commit = "1s"
[api]
enable = true
address = "0.0.0.0:1317"# Get node status
GET /status
# Query account
GET /cosmos/bank/v1beta1/balances/{address}
# Submit transaction
POST /txsservice Query {
rpc GetBalance(QueryBalanceRequest) returns (QueryBalanceResponse);
rpc GetBlock(GetBlockRequest) returns (BlockResponse);
}- Rust 1.75+
- Docker & Docker Compose
- PostgreSQL (for indexer)
# Run unit tests
cargo test
# Run integration tests
cargo test --test integration
# Run with coverage
cargo tarpaulin --all-features# Format code
cargo fmt
# Lint code
cargo clippy --all-features
# Security audit
cargo audit- Formal Verification: Critical components formally verified
- HSM Support: Hardware Security Module integration
- Zero-Knowledge Proofs: Confidential transactions
- Multi-signature: M-of-N signature schemes
- Audit Trail: Immutable, verifiable audit logs
- Use hardware security modules for validator keys
- Regular security audits and penetration testing
- Multi-signature for treasury management
- Regular key rotation policies
- Set up monitoring (Prometheus, Grafana)
- Configure backup and disaster recovery
- Set up alerting (Prometheus alerts)
- Configure logging (ELK stack)
- Set up monitoring (New Relic, Datadog)
# prometheus.yml
scrape_configs:
- job_name: 'lumina'
static_configs:
- targets: ['localhost:26660']We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Add tests for new features
- Ensure all tests pass
- Submit a pull request
- Follow Rust API guidelines
- Write comprehensive tests
- Update documentation
- Follow conventional commits
Lumina Chain is licensed under the MIT License. See LICENSE for details.
- 📖 Documentation
- 🐛 Issue Tracker
- 💬 Discord Community
- 📧 security@luminachain.com (Security Issues)
| Metric | Target | Current |
|---|---|---|
| TPS | 8,000+ | 8,500+ |
| Finality | < 900ms | 780ms |
| Validators | 100+ | 150+ |
| Uptime | 99.9% | 99.95% |
- Cross-chain IBC bridges
- Advanced privacy with zk-STARKs
- Quantum-resistant cryptography
- Layer 2 scaling solutions
- Tendermint Core team for BFT consensus
- The Rust community for excellent tooling
- All our contributors and validators
Lumina Chain - Building the future of stable, scalable blockchain infrastructure.
Built with Architecture from MeridianAlgo Supported with Developments from AI Made in part with AI