Skip to content

Architecture

Understanding how Kaizen Core works internally.

Kaizen Core Technical Architecture

Overview

Kaizen Core is a blockchain-like system optimized for prediction markets:

  • Single sequencer (Write node) for ordering
  • Multiple read nodes for query scalability
  • 100ms checkpoints with streaming execution
  • Deterministic STF for fraud proofs

Node Types

NodePurposePorts
Write NodeSequencer - orders and executes transactions8545, 9000
Read Node (aggressive)Low-latency queries, ~16 min history8547, 9001
Read Node (archive)Full history for indexing8548, 9002

All nodes run the same STF - read nodes re-execute blocks from the write node.

Key Properties

PropertyDescription
Streaming ExecutionTransactions execute immediately on arrival
100ms CheckpointsOracle updates + state commits
DeterministicSame block → same state (enables fraud proofs)
Pull-based OracleWrite node pulls prices from Oracle Service

Guides

Quick Reference

Transaction Flow

TX arrives → Validate → Execute immediately → Add to pending

                                            Checkpoint (100ms)

                                    Oracle pull → Commit → Broadcast

Settlement Flow

Thesis Created → Active → [Settler monitors]

                 Breach detected? → SolverWins
                 Deadline passed? → UserWins

Component Map

┌─────────────────────────────────────────────────────┐
│                    Kaizen Node                       │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌────────┐ │
│  │ RPC/WS  │→ │ Engine  │→ │ Storage │  │Indexer │ │
│  │ Server  │  │  (STF)  │  │(RocksDB)│  │(PgSQL) │ │
│  └─────────┘  └─────────┘  └─────────┘  └────────┘ │
└─────────────────────────────────────────────────────┘
         ↑               ↑
    Clients          External
  (Frontend,        (Oracle,
   Solver)          Settler)