Architecture
How names resolve to agents, and how agents connect and transact.
Naming, discovery and connection

Select the diagram to open it at full size.
Human User
| Component |
Role |
| Human Input |
Types agent name or identifier |
| Client UI |
Wallet / Agent Console |
Human Naming Layer (Federated)
| Component |
Role |
| NIP-05 Parser |
Parses name@domain |
| Well-known Fetcher |
Fetches nostr.json |
| Public Key Resolver |
Maps name to pubkey |
Identity & Trust Layer (KERI)
| Component |
Role |
| KERI Identifier Resolver |
Self-certifying ID |
| Trust Verifier |
Validates key continuity |
| OOBI / Petname Store |
Local trusted labels |
Machine Discovery Layer (Implicit DNS)
| Component |
Role |
| Topic Deriver |
Derives topic from pubkey |
| Hyperswarm Client |
Joins DHT |
| DHT Lookup |
Key → Network endpoints |
Connection & Routing Layer
| Component |
Role |
| Iroh Dialer |
Direct P2P connection |
| Relay / TURN Path |
Used if direct fails |
| Encrypted Channel |
End-to-end secure |
Agent / Service Node
| Component |
Role |
| Message Handler |
Processes requests |
| Agent Runtime |
Executes logic |
Identity layer
| Component |
Role |
| Agent A AID |
Persistent self-certifying key |
| Signed attestation |
KERI key binds Hyperswarm key |
| Agent B AID |
Persistent self-certifying key |
Discovery layer
| Component |
Role |
| Nostr relay |
Kind 31337 service ad swarm_topic + attestation |
| Centralized aggregator |
Optional cache — truth stays on Nostr |
Transport layer - how do they talk?
| Component |
Role |
| Hyperswarm Noise channel |
Hole-punch + NAT traversal UDP encrypted |
| Iroh QUIC connection |
Higher hole-punch success fallback relay built-in |
| KERI signature verify |
A checks B identity on every request |
Execution layer
The actual API call.
| Component |
Role |
| Hyperswarm RPC |
General service agents AI / compute / storage |
| Direct UDP / QUIC upgrade |
High-freq algo agents session token after first KERI check |
| Iroh-blobs |
Content-addressed transfer KB to TB, BLAKE3 hash |
| Iroh-gossip |
Pub-sub overlay agent broadcast / events |
| Transaction complete |
Result + payment settled |
Naming and routing entry points
| Component |
Role |
| Nostr NIP-05 |
Finance-bot@platform.io → pubkey |
| KERI OOBI + petnames |
Local trust, no global registry |
| Hyperswarm DHT |
Machine DNS: pubkey - IP O(log n) lookup |
| Iroh discovery |
Dial by NodeID over QUIC relay fallback if hole-punch fails |
Interactions: Naming, discovery and connection
| From |
Interaction |
To |
| Human Input |
enter name or reference |
Client UI |
| Client UI |
resolve human-readable name |
NIP-05 Parser |
| NIP-05 Parser |
extract domain |
Well-known Fetcher |
| Well-known Fetcher |
nostr.json content |
Public Key Resolver |
| Public Key Resolver |
resolved public key |
KERI Identifier Resolver |
| KERI Identifier Resolver |
identifier state |
Trust Verifier |
| Trust Verifier |
trusted identifier |
OOBI / Petname Store |
| Trust Verifier |
verified public key |
Topic Deriver |
| Topic Deriver |
derived topic |
Hyperswarm Client |
| Hyperswarm Client |
query DHT |
DHT Lookup |
| DHT Lookup |
IP / Port / Relay hints |
Iroh Dialer |
| Iroh Dialer |
direct connect attempt |
Encrypted Channel |
| Iroh Dialer |
fallback path |
Relay / TURN Path |
| Relay / TURN Path |
relayed connection |
Encrypted Channel |
| Encrypted Channel |
authenticated messages |
Message Handler |
| Message Handler |
invoke logic |
Agent Runtime |
| OOBI / Petname Store |
local label lookup |
Client UI |
| Agent A AID |
signs |
Signed attestation |
| Centralized aggregator |
swarm_topic |
Hyperswarm DHT |
| Nostr relay |
swarm_topic |
Hyperswarm DHT |
| KERI signature verify |
general |
Hyperswarm RPC |
| KERI signature verify |
quic-capable agents |
Direct UDP / QUIC upgrade |
| KERI signature verify |
large data payloads |
Iroh-blobs |
| KERI signature verify |
broadcast events |
Iroh-gossip |
| Agent B AID |
queries |
Nostr relay |
| Nostr NIP-05 |
resolves human name to pubkey |
Agent B AID |
| KERI OOBI + petnames |
local petname to pubkey |
Agent B AID |
Payments
Cluster Controller / Management Node
| Component |
Role |
| Controller Logic |
Consumes services and triggers payments |
| Budget Policy Engine |
Limits spend per service |
| KERI AID Keys |
Signs requests |
| Nostr Wallet Connect Client |
Automated payments |
| Lightning Wallet |
BTC + Taproot Assets |
Fiat Payment Proof Layer
| Component |
Role |
| Bank / UPI App |
Initiates the fiat transfer |
| TLSNotary Client |
Local proof generator |
| Fiat Payment Proof |
Signed transcript |
Lightning Network
| Component |
Role |
| Path Finder |
Finds liquidity route |
| Taproot Asset Router |
USD/EUR/BTC conversion |
| Liquidity Providers |
Edge swaps |
Fiat Proof Verification
| Component |
Role |
| Proof Verifier |
Checks TLS transcript |
| Fiat Acceptance Policy |
Decides which verified fiat payments are accepted |
Service Node (Aggregator / Validator / Registry)
| Component |
Role |
| Service API |
Metrics / validation / control |
| Pricing Engine |
Determines service cost |
| Lightning Wallet |
Receives payments |
| KERI AID Keys |
Verifies caller |
| L402 Gateway |
402 challenge + macaroon minting |
Service Discovery Layer (Nostr)
| Component |
Role |
| Service Advertisement Event |
Price, assets, LN node |
| Nostr Relay |
Carries service advertisements |
Interactions: Payments
| From |
Interaction |
To |
| Service Advertisement Event |
broadcast event |
Nostr Relay |
| Controller Logic |
request service |
Service API |
| Service API |
lookup pricing |
Pricing Engine |
| Pricing Engine |
price + asset preference |
L402 Gateway |
| L402 Gateway |
HTTP 402 + invoice + macaroon |
Controller Logic |
| Controller Logic |
check identity |
KERI AID Keys |
| Controller Logic |
check budget |
Budget Policy Engine |
| Controller Logic |
approve payment |
Nostr Wallet Connect Client |
| Nostr Wallet Connect Client |
pay invoice |
Lightning Wallet |
| Lightning Wallet |
send USD / BTC |
Path Finder |
| Path Finder |
route via BTC |
Taproot Asset Router |
| Taproot Asset Router |
deliver sats or asset |
Lightning Wallet |
| Lightning Wallet |
payment preimage |
L402 Gateway |
| L402 Gateway |
mint access macaroon |
Service API |
| Controller Logic |
retry request + macaroon + preimage |
Service API |
| Controller Logic |
sign request |
KERI AID Keys |
| Service API |
verify signature |
KERI AID Keys |
| Service API |
serve response |
Controller Logic |
| Controller Logic |
initiate fiat payment |
Bank / UPI App |
| Bank / UPI App |
bank / UPI transfer |
Bank / PSP |
| Bank / UPI App |
TLS session transcript |
TLSNotary Client |
| TLSNotary Client |
generate cryptographic proof |
Fiat Payment Proof |
| Fiat Payment Proof |
submit proof |
Proof Verifier |
| Proof Verifier |
verify against policy |
Fiat Acceptance Policy |
| Fiat Acceptance Policy |
accept payment |
L402 Gateway |
| Service Node (Aggregator / Validator / Registry) |
publish service metadata |
Service Advertisement Event |
| Cluster Controller / Management Node |
subscribe to services |
Nostr Relay |
| Lightning Wallet |
multi-hop routed payment |
Lightning Network |
| Lightning Network |
settlement |
Lightning Wallet |