Consensus Architecture of OKTC: A Deep Dive into Cosmos SDK and Tendermint BFT

ยท

Learn how OKTC leverages the Cosmos SDK, EVM compatibility, and Tendermint Core's BFT consensus to deliver a high-performance, secure blockchain with fast finality. This guide explores the modular architecture, key stakeholders, and technical components powering OKTC.

Cosmos SDK: Modular Blockchain Framework

OKTC harnesses the full composability of the Cosmos SDK, enabling developers to build customizable blockchain applications. Key features include:

๐Ÿ‘‰ Explore Cosmos SDK capabilities

Tendermint Core: Byzantine Fault Tolerant Consensus

Tendermint Core provides the foundation for OKTC's consensus with:

Unlike monolithic blockchains, Tendermint separates consensus from application logic, offering unparalleled flexibility.

Byzantine Fault Tolerance (BFT) in OKTC

How BFT Ensures Security

Did You Know?
Tendermint's BFT model never forks under asynchrony if faulty validators are <1/3. Learn more in Delegated Byzantine Fault Tolerance (dBFT).

Consensus Participants

OKTC's ecosystem relies on three key roles:

  1. Validators
    Nodes verifying transactions and proposing blocks. Top 21 validators by stake weight are active per epoch.
  2. Proposers
    Validators selected via weighted round-robin to create new blocks.
  3. Delegators
    OKT holders who delegate voting power based on validator reputation and infrastructure.

Delegator Influence

Delegators shape network security by:

๐Ÿ‘‰ Maximize delegation rewards

Tendermint Consensus Algorithm: Step-by-Step

The 5-Phase Process

  1. NewHeight
    Initializes a new block height.
  2. Propose
    Selected validator broadcasts a block proposal.
  3. Pre-vote
    Validators vote on the proposal. A polka (2/3 approval) is required.
  4. Pre-commit
    Validators lock onto the block if polka is achieved.
  5. Commit
    Block is finalized and added to the chain.

Key Terms:

ABCI: Bridging Tendermint and Applications

The Application Blockchain Interface (ABCI) enables:

Message TypePurpose
DeliverTxProcesses transactions & updates state.
CheckTxValidates transactions pre-mempool.
CommitComputes Merkle root for block headers.

Developers can build in any language by implementing ABCI endpoints.

EVM Compatibility on OKTC

OKTC mirrors Ethereum's developer experience with:


FAQ: OKTC Consensus Explained

What makes Tendermint BFT different from PoW?

Tendermint offers instant finality and energy efficiency by replacing mining with stake-weighted validation.

How are validators chosen?

Validators are ranked by delegated stake. The top 21 by voting power propose blocks in rotation.

Can OKTC interact with Ethereum dApps?

Yes! EVM compatibility allows seamless deployment of Ethereum smart contracts via JSON-RPC.

What happens if <2/3 validators are online?

The network pauses (prioritizing safety) until sufficient validators reconnect.

How does delegation impact security?

Delegators incentivize validators to act honestly by staking to reputable nodes.

Is ABCI mandatory for OKTC apps?

Yes, all applications must implement ABCI to interface with Tendermint Core.