ICN Architecture Quick Reference Card

Historical quick-reference snapshot (December 2025). Verify current defaults/endpoints/operational claims against active docs before use.

๐ŸŽฏ What is ICN?

Substrate daemon for cooperative internet coordination

  • NOT a blockchain
  • NOT a federation server
  • P2P coordination layer with built-in trust

๐Ÿ—๏ธ Core Stack (8 Layers)

Applications         โ”‚ icnd, icnctl, icn-console
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Gateway              โ”‚ REST + WebSocket + RPC
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Coordination         โ”‚ Compute, Governance, Contracts
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Sync                 โ”‚ Gossip (pub/sub)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
State                โ”‚ Ledger (double-entry)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Trust                โ”‚ Graph (transitive scores)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Network              โ”‚ QUIC/TLS (DID-TLS binding)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Identity             โ”‚ DIDs (Ed25519)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Storage              โ”‚ Sled (key-value)

๐Ÿ“ฆ 25 Crates at a Glance

Core (10)

  • icn-core - Supervisor, runtime
  • icn-identity - DIDs, keys
  • icn-trust - Trust graph
  • icn-net - QUIC/TLS
  • icn-gossip - Pub/sub
  • icn-ledger - Mutual credit
  • icn-ccl - Contracts
  • icn-compute - Distributed tasks
  • icn-governance - Proposals/voting
  • icn-store - Persistence

APIs (2)

  • icn-gateway - REST + WebSocket
  • icn-rpc - JSON-RPC

Infrastructure (5)

  • icn-obs - Metrics
  • icn-security - Byzantine detection
  • icn-time - Clock sync
  • icn-privacy - Metadata protection
  • icn-snapshot - Backup/restore

Future (5)

  • icn-federation - Inter-coop
  • icn-steward - SDIS enrollment
  • icn-crypto-pq - Post-quantum
  • icn-zkp - Zero-knowledge
  • icn-testkit - Test utilities

Binaries (3)

  • icnd - Daemon
  • icnctl - CLI
  • icn-console - TUI

๐Ÿ”‘ Key Concepts

Concept Description
DID did:icn:<base58-pubkey> - Self-certifying ID
Trust Score 0.0-1.0 (transitive web-of-participation)
Gossip Topic Pub/sub channel (e.g., ledger:sync)
Journal Entry Ledger transaction (Merkle-DAG)
SignedEnvelope Message integrity (Ed25519 + replay guard)
TrustGated Access control via trust threshold
Actor Tokio task with message passing
Handle External API to actor (mpsc wrapper)

๐Ÿ” Security Layers

Application  โ”‚ Capabilities (ReadLedger, WriteLedger)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Message      โ”‚ SignedEnvelope + EncryptedEnvelope
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Transport    โ”‚ QUIC/TLS + DID-TLS binding

๐Ÿ“Š Trust Classes

Class Score Capabilities Rate Limit
Unknown 0.0-0.1 None Blocked
Known 0.1-0.3 Read 10/min
Colleague 0.3-0.6 Write 100/min
Close 0.6-0.8 Execute 1K/min
Intimate 0.8-1.0 Admin Unlimited

๐Ÿ”„ Core Data Flows

Ledger Transaction

API โ†’ Ledger (validate) โ†’ Store โ†’ Gossip โ†’ Peers

Compute Task

Submit โ†’ Schedule โ†’ Execute (WASM) โ†’ Result โ†’ Payment

Gossip Sync

Push (announce hash) โ†’ Pull (request entry) โ†’ Apply

๐ŸŽญ Main Actors

Supervisor
  โ”œโ”€ NetworkActor (connections)
  โ”œโ”€ GossipActor (pub/sub)
  โ”œโ”€ Ledger (transactions)
  โ”œโ”€ GovernanceActor (proposals)
  โ””โ”€ ComputeActor (tasks)

๐ŸŽฏ Gossip Topics

Topic Purpose Access
ledger:sync Journal entries TrustGated(0.1)
compute:submit Task submission TrustGated(0.3)
compute:result Task results TrustGated(0.3)
governance:proposal Proposals Public
governance:vote Votes Public
network:candidates NAT traversal Public

๐Ÿ’ป Quick Commands

Build

cd icn/
cargo build --release
cargo test --workspace
cargo clippy --workspace

Run

# Daemon
./target/release/icnd

# With gateway
./target/release/icnd --gateway-enable

# CLI
./target/release/icnctl status
./target/release/icnctl trust add <did> 0.8

# TUI
./target/release/icn-console

๐Ÿ“ˆ Performance (Ryzen 5900X)

Metric Value
Gossip 10K msg/s, 5ms p50
Ledger 5K tx/s, 2ms p50
Trust 50K ops/s, 0.5ms p50
Signatures 20K/s
Node Scale 100+ nodes

๐Ÿ“ Key Files

icn/
โ”œโ”€โ”€ bins/icnd/src/main.rs           # Daemon entry
โ”œโ”€โ”€ crates/icn-core/src/supervisor/ # Actor spawning
โ”œโ”€โ”€ crates/icn-gossip/src/gossip.rs # Gossip actor
โ”œโ”€โ”€ crates/icn-ledger/src/ledger.rs # Ledger logic
โ”œโ”€โ”€ crates/icn-trust/src/graph.rs   # Trust graph
โ””โ”€โ”€ crates/icn-net/src/actor.rs     # Network actor

๐Ÿงช Testing

# All tests (1,134+)
cargo test --workspace

# Specific test with logs
RUST_LOG=debug cargo test <name> -- --nocapture

# Benchmarks
cargo bench -p icn-gossip

๐Ÿ“š Documentation Hierarchy

ARCHITECTURE_INDEX.md       โ† Start here (navigation)
    โ”‚
    โ”œโ”€ ARCHITECTURE_VISUAL.md  โ† Diagrams & flows
    โ”œโ”€ ARCHITECTURE_MAP.md     โ† Complete inventory
    โ””โ”€ ../ARCHITECTURE.md      โ† Design rationale

๐Ÿšฆ Status Snapshot

Pilot-ready assessment (December 2025)

  • โœ… 1,134+ tests passing
  • โœ… 25 crates (40K lines Rust)
  • โœ… 198 documentation files
  • โœ… 85+ integration tests
  • โœ… Byzantine fault tolerance
  • โœ… Storage replication
  • โœ… Distributed compute
  • โœ… Federation layer
  • ๐Ÿ”„ Privacy (partial)
  • ๐Ÿ“‹ Mobile SDKs (planned)

๐Ÿ”— Next Steps

  1. Read ARCHITECTURE_INDEX.md
  2. Browse ARCHITECTURE_VISUAL.md
  3. Study ARCHITECTURE_MAP.md
  4. Deep-dive ARCHITECTURE.md
  5. Get started GETTING_STARTED.md

๐Ÿ“ž Resources


Last Updated: December 17, 2025
System Version (Snapshot): 0.1.0 - Pilot-ready assessment โœ