Crate: kinetic-host
Stage: 13
Reading Time: 45 mins
Depends On: kinetic-core, kinetic-network, kinetic-storage
What Is This?
Note
kinetic-hostis the binary for domain owners who want to publicly serve content through the Kinetic network. Unlike the infrastructure node (kinetic-node) which is a passive DHT relay, the host is an active content server — it receives real HTTP traffic from Kinetic users and forwards it to a local web backend.
How It Differs From the Other Binaries
| Feature | kinetic-node | kinetic-host | kinetic-daemon |
|---|---|---|---|
| Role | DHT backbone | Content server | User client |
| P2P identity | Static Ed25519 | Dual: static host key + ephemeral PoW | Ephemeral PoW |
| Serves HTTP | No | Yes — reverse proxies to local backend | No (proxy client only) |
| User-facing API | /health, /peer_id | /health, /peer_id | Full registration API |
| DNS resolver | No | No | Yes |
| mDNS | Disabled | Config-driven | Config-driven |
| API port | 16003 | 16004 | 16000 |
What Makes It Uniquely Complex
- Dual-key architecture: Has both a static long-lived host key (
host.key) and an ephemeral epoch-bound PoW keypair. The host key is the permanent identity visible to clients. The PoW key is the active libp2p peer identity for Sybil resistance. - Hot-swap network loop: When the Drand epoch advances and the current PoW key expires, the host mines a new keypair and restarts the entire
NetworkEventLoopwithout downtime — traffic continues flowing during the swap. HostRoutingRecordpublishing: Every 30 seconds, publishes a signed record to the DHT mapping its permanent host key → current ephemeral Peer ID. Clients look up the host key and use this record to find the current P2P address.- Reverse proxy: Receives
ProxyRequestmessages over libp2p, forwards them to a local HTTP server, and returns the response over the same P2P channel.
Files
02_main.md— Boot sequence with focus on dual identity + hot-swap wiring03_heartbeat.md— PoW hot-swap andHostRoutingRecordpublisher (most unique code)04_proxy.md— P2P reverse proxy: path validation, body size limits, backend forwarding05_gossip_service_api.md— Governance gossip (simpler than node), service manager, health API