BitSDK Integration
Bitplanet is built on BitSDK, our customized implementation of the Cosmos SDK modular blockchain framework. BitSDK extends Cosmos SDK v0.53.3 with Bitplanet-specific enhancements while maintaining full compatibility with the Cosmos ecosystem.
What is BitSDK?
BitSDK is Bitplanet's enhanced version of Cosmos SDK, providing:
All standard Cosmos SDK v0.53.3 functionality
Custom modules for AI attribution (x/brahma)
Enhanced EVM integration through BitEVM (based on Cosmos EVM v1.0.0-rc2)
Optimizations for AI-focused token economics
This page explains how Bitplanet leverages BitSDK's infrastructure and capabilities.
How Bitplanet Leverages BitSDK
Bitplanet uses BitSDK as its foundation, inheriting core blockchain functionality while adding custom modules for AI attribution.
Core Framework
Application Structure:
Bitplanet is a BitSDK application (
EVMDtype)Uses standard module architecture
Extends BaseApp for transaction processing
Integrates custom modules (x/brahma, x/precompile) alongside standard modules
Module System:
State Management
Bitplanet uses BitSDK's KVStore for all state persistence. For detailed storage architecture and data structures, see State Management.
IAVL Tree Storage:
Immutable state snapshots at each block height
Merkle proofs for light client verification
Deterministic state commitment in block headers
Module Stores:
State Root (App Hash)
auth (accounts)
bank (balances)
staking (validators)
brahma (AI tensors, core grants)
... (other modules)
Each module has isolated storage space, preventing cross-module conflicts.
Transaction Processing
BitSDK handles the complete transaction lifecycle:
Transaction Flow:
Bitplanet leverages:
AnteHandler chain: Signature verification, fee deduction, gas metering
Message routing: Automatic routing to correct module based on message type
Gas system: Prevents infinite loops and DOS attacks
Fee market: Transaction prioritization and validator compensation
Consensus
Bitplanet uses CometBFT (Tendermint) consensus provided by BitSDK:
What BitSDK Provides:
Byzantine Fault Tolerant consensus (tolerates 1/3 malicious validators)
Instant finality (no chain reorganizations)
Validator set management
Block production and propagation
Bitplanet's Configuration:
Block time: ~6 seconds (deterministic)
Validator selection: Top validators by stake
Slashing for misbehavior (downtime, double-signing)
Governance
Bitplanet leverages BitSDK's on-chain governance:
Governance Capabilities:
Parameter updates for any module
Software upgrade coordination
Custom proposal types (e.g., CoreGrantApplication)
How Bitplanet Uses It:
All 12 x/brahma parameters are governance-controlled, enabling community-driven protocol evolution.
Module Keepers
Bitplanet's custom modules use standard BitSDK keepers:
x/brahma Integration:
AccountKeeper - Query and manage accounts
BankKeeper - Transfer tokens, check balances
MintKeeper - Query inflation parameters
EVMKeeper - Interact with EVM state
This enables x/brahma to:
Mint/burn tokens (via BankKeeper)
Query inflation data (via MintKeeper)
Call EVM contracts (via EVMKeeper)
All using standard BitSDK interfaces
gRPC/REST APIs
BitSDK provides automatic API generation:
What Bitplanet Gets:
gRPC server (port 9090)
REST gateway via gRPC-Gateway (port 1317)
Automatic endpoint generation from protobuf definitions
Query and transaction submission interfaces
Example:
CLI Generation
BitSDK's AutoCLI automatically generates command-line interfaces:
Auto-Generated Commands:
No manual CLI code needed - derived from protobuf definitions.
IBC Support
Bitplanet inherits Inter-Blockchain Communication protocol:
What This Enables:
Cross-chain token transfers
IBC channel creation and management
Light client verification
Packet relay infrastructure
Custom Enhancement: The x/transfer module is extended to support ERC-20 token transfers over IBC, combining Cosmos and EVM ecosystems.
Benefits of BitSDK Foundation
Proven Infrastructure
Battle-Tested:
Years of production use across 50+ chains
Validator ecosystem and tooling
Well-understood security model
Standard Tooling:
Compatible with Cosmos ecosystem tools
Familiar interfaces for Cosmos developers
Existing infrastructure (explorers, wallets)
Modular Architecture
Clean Separation:
Standard modules handle common functionality
Custom modules add Bitplanet-specific features
No need to reimplement core blockchain logic
Easy Integration:
Development Efficiency
What Bitplanet Doesn't Need to Build:
Consensus mechanism
P2P networking
State storage and commitment
Transaction mempool
Account system
Fee handling
API servers
CLI framework
Focus on Core Innovation:
AI attribution logic (x/brahma) - see AI Tensor Matrix
EVM integration (x/vm)
Reward distribution algorithms - see Inflation Mechanism
Custom precompiles (x/precompile)
Upgradability
BitSDK Enables:
Coordinated on-chain upgrades
Height-based upgrade plans
Migration scripts for state changes
No hard forks required
Example Upgrade Flow:
Bitplanet-Specific Customizations
While leveraging BitSDK built on Cosmos SDK foundation, Bitplanet adds:
Custom Modules
x/brahma:
AI tensor tracking
Core grant management
Reward distribution (via BeginBlock hook)
x/precompile:
EVM-Cosmos bridge contracts
Precompile address registry
x/vm (BitEVM):
Full EVM execution environment
Ethereum transaction compatibility
Extended Modules
x/transfer (IBC):
Overrides standard ICS-20 implementation
Supports ERC-20 token transfers over IBC
x/erc20:
Bidirectional Cosmos coin ↔ ERC-20 conversion
Seamless ecosystem bridging
Hooks Integration
BeginBlock Hook:
The x/brahma module hooks into BitSDK's block lifecycle to distribute rewards automatically.
Integration Architecture
Key Insight: Bitplanet builds on top of BitSDK rather than forking it, enabling seamless upgrades and ecosystem compatibility.
Last updated