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, runtimeicn-identity- DIDs, keysicn-trust- Trust graphicn-net- QUIC/TLSicn-gossip- Pub/subicn-ledger- Mutual crediticn-ccl- Contractsicn-compute- Distributed tasksicn-governance- Proposals/votingicn-store- Persistence
APIs (2)
icn-gateway- REST + WebSocketicn-rpc- JSON-RPC
Infrastructure (5)
icn-obs- Metricsicn-security- Byzantine detectionicn-time- Clock syncicn-privacy- Metadata protectionicn-snapshot- Backup/restore
Future (5)
icn-federation- Inter-coopicn-steward- SDIS enrollmenticn-crypto-pq- Post-quantumicn-zkp- Zero-knowledgeicn-testkit- Test utilities
Binaries (3)
icnd- Daemonicnctl- CLIicn-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
- Read ARCHITECTURE_INDEX.md
- Browse ARCHITECTURE_VISUAL.md
- Study ARCHITECTURE_MAP.md
- Deep-dive ARCHITECTURE.md
- Get started GETTING_STARTED.md
๐ Resources
- Repo: https://github.com/InterCooperative-Network/icn
- Docs:
cargo doc --open --workspace - License: MIT OR Apache-2.0
Last Updated: December 17, 2025
System Version (Snapshot): 0.1.0 - Pilot-ready assessment โ