State Management
Storage Architecture
IAVL Tree Foundation
Block Header
└─ App Hash (root of all modules)
├─ x/brahma Store Hash
├─ x/evm Store Hash
├─ x/bank Store Hash
└─ ... (other module stores)Module Store Organization
Key Encoding Schemes
Length-Prefixed Encoding (AITensor Keys)
Simple Concatenation (Other Keys)
Storage Patterns
Circular Buffer (Market Cap History)
AI Insertion Order
Tensor Merging (Concurrent RfCs)
Range Queries
Prefix-Based Iteration
Processing Limits
Parameter
Default
Purpose
Storage Optimization
Lazy Loading
Deterministic Ordering
Big-Endian Encoding
Pruning Strategies
Data Integrity
Collision Resistance
Overflow Protection
Validation at Write Time
Last updated