Overview
Component Architecture
┌──────────────────────────────────────────────────────────────────────────┐
│ NCN Network v2 │
│ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ User Layer │ │
│ │ ┌──────────────────────────────────────────────────────┐ │ │
│ │ │ Test Client │ │ │
│ │ │ Example application for testing the network │ │ │
│ │ └──────────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Gateway Layer │ │
│ │ ┌──────────────────────────────────────────────────────┐ │ │
│ │ │ Gateway Node │ │ │
│ │ │ • Routes inference requests │ │ │
│ │ │ • Manages compute reservations │ │ │
│ │ │ • Processes payments │ │ │
│ │ │ • Subnet CLI for management │ │ │
│ │ └──────────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Compute Layer │ │
│ │ ┌──────────────────────────────────────────────────────┐ │ │
│ │ │ Compute Node │ │ │
│ │ │ • Executes AI models │ │ │
│ │ │ • Sandboxed Python execution │ │ │
│ │ │ • Signs computation results │ │ │
│ │ │ • Model caching and management │ │ │
│ │ └──────────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Coordination Layer │ │
│ │ ┌──────────────────────────────────────────────────────┐ │ │
│ │ │ P2P Registry │ │ │
│ │ │ • Node discovery │ │ │
│ │ │ • Validator consensus │ │ │
│ │ │ • Subnet management │ │ │
│ │ │ • DHT-based storage │ │ │
│ │ └──────────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Blockchain Layer │ │
│ │ ┌──────────────────────────────────────────────────────┐ │ │
│ │ │ Smart Contracts │ │ │
│ │ │ • InferencePayment (payment handling) │ │ │
│ │ │ • NCNToken (ERC20 payment token) │ │ │
│ │ │ • ValidatorRegistry (on-chain validators) │ │ │
│ │ └──────────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────────────┘Component Summary
Component
Purpose
Technology
Documentation
Communication Protocols
Source
Destination
Protocol
Port
Data Flow
Inference Request Flow
Build Instructions
Build All Components
Build Individual Components
Build Smart Contracts
Dependencies
Rust Crates (Workspace)
Python Dependencies
Smart Contract Dependencies
Configuration Quick Reference
Component
Config File
Key Settings
Quick Start
1. Start P2P Registry
2. Start Gateway
3. Start Compute Node
4. Run Test Client
Next Steps
Last updated
