Node Architecture
This document provides a deep dive into the internal architecture of a NONOS node.
High-Level Structure
┌─────────────────────────────────────────────────────────────────────┐
│ NONOS NODE │
└─────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ External Interface │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ HTTP API │ │ P2P │ │ Ethereum │ │
│ │ :8420 │ │ :9000 │ │ RPC │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
└─────────┼────────────────┼────────────────┼─────────────────┘
│ │ │
┌─────────┼────────────────┼────────────────┼─────────────────┐
│ ▼ ▼ ▼ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Service Router │ │
│ └──────────────────────┬──────────────────────────────┘ │
│ │ │
│ ┌──────────────────────┼──────────────────────────────┐ │
│ │ ▼ │ │
│ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
│ │ │ ZK │ │ Cache │ │ Tracker │ │ Health │ │ │
│ │ │Identity │ │ Mixer │ │ Blocker │ │ Beacon │ │ │
│ │ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │ │
│ │ │ │ │ │ │ │
│ │ Privacy Services Layer │ │
│ └──────────────────────┬──────────────────────────────┘ │
│ │ │
│ ┌──────────────────────┼──────────────────────────────┐ │
│ │ ▼ │ │
│ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
│ │ │Kademlia │ │GossipSub│ │ Noise │ │ Request │ │ │
│ │ │ DHT │ │ Topics │ │Protocol │ │Response │ │ │
│ │ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │ │
│ │ │ │ │ │ │ │
│ │ Network Layer (libp2p) │ │
│ └──────────────────────┬──────────────────────────────┘ │
│ │ │
│ ┌──────────────────────┼──────────────────────────────┐ │
│ │ ▼ │ │
│ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
│ │ │ Stake │ │ Reward │ │Contract │ │ Metrics │ │ │
│ │ │ Manager │ │ Tracker │ │ Client │ │Collector│ │ │
│ │ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │ │
│ │ │ │
│ │ Economic Layer │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Core Layer │
└─────────────────────────────────────────────────────────────┘Component Details
Core Layer
Privacy Services Layer
Network Layer
Economic Layer
Data Flow
Request Processing
Threading Model
Configuration
Last updated
Was this helpful?


