Architecture
Technical architecture and key components of LumiWave Protocol
Overview
LumiWave Protocol is a Layer 1 blockchain built on top of Cosmos SDK, using the CometBFT consensus engine. It was scaffolded with Ignite CLI and features a modular architecture that allows flexible extension of chain functionality. Each module operates independently while interacting with others, providing a wide range of blockchain capabilities from token transfers to governance and cross-chain communication.
Technology Stack
| Layer | Technology | Role |
|---|---|---|
| Consensus | CometBFT | Block production via BFT consensus algorithm, P2P networking, instant finality |
| Application | Cosmos SDK | Module-based state machine, transaction routing and processing |
| Smart Contracts | CosmWasm | WebAssembly-based smart contract execution environment (Rust support) |
| Cross-chain | IBC | Token transfers and data communication between Cosmos ecosystem chains |
| Token | TokenFactory | Module for creating and managing native tokens without governance |
Source Structure
lumiwave-protocol/
├── app/ # Cosmos SDK app wiring
├── cmd/lumiwave-protocold/ # Node binary entrypoint
├── x/lumiwaveprotocol/ # Custom module
│ └── tokenfactory/ # Native token creation module
├── proto/ # Protobuf definitions
├── genesis/ # Genesis files (testnet, mainnet)
└── relayer/hermes/ # IBC relayer configurationConsensus Mechanism
CometBFT (formerly Tendermint) uses a Byzantine Fault Tolerant (BFT) consensus algorithm. A block is finalized only when more than 2/3 of all validators sign it, guaranteeing instant finality without forks. This means that once a transaction is included in a block, it becomes an irreversible final state immediately.
| Parameter | Value |
|---|---|
| Block time | ~5-6 seconds |
| Propose timeout | 3 seconds |
| Commit timeout | 5 seconds |
| Finality | Instant (1 block) |
Module Configuration
Core Modules (Cosmos SDK)
- bank: Transfer of LWP and native tokens, balance queries, and multi-send processing
- staking: Token delegation, undelegation, redelegation to validators, and reward management
- gov: On-chain governance proposal creation, voting, and execution for chain parameter changes
- distribution: Distribution of block production rewards and transaction fees to validators and delegators
- slashing: Penalties imposed on validators for double signing or downtime violations
- mint: Inflation adjustment and block reward issuance for network security
Extension Modules
- CosmWasm: Execution environment for smart contracts written in Rust and compiled to WebAssembly. Sandboxed execution ensures chain stability
- TokenFactory: Module allowing anyone to create native token denominations and mint, burn, or manage them without governance proposals
- IBC: Cross-chain protocol supporting token transfers and packet-based data communication with other chains in the Cosmos ecosystem