irontide-dht 0.165.0

Kademlia DHT for BitTorrent (BEP 5)
Documentation

Kademlia DHT implementation: BEP 5 routing, BEP 42 security, BEP 44 storage, BEP 51 indexing.

Implements the Mainline DHT protocol: KRPC message encoding, Kademlia routing table, peer discovery, and announce operations.

Architecture

The DHT runs as an actor: DhtHandle::start() spawns a background task that owns all state (routing table, UDP socket, pending queries). The returned DhtHandle is a cheap, cloneable sender for submitting commands.