05 — Discovery
weave-dht
Find who has what without a registry. Provider records, signed envelopes, configurable stores, relay support. Run a daemon, a library, or a daemonless lookup — same wire protocol.
A closer lookFind a way to a peer.
Peer discovery connects an identifier to a reachable participant. The drawing illustrates discovery, not live network traffic.
- 01Ask the network
- 02Discover a peer
- 03Make contact
01 — Concepts
01
Kademlia-style overlay, agent-aware.
02
Provider records, signed envelopes, configurable stores.
03
Run as daemon, library, or daemonless lookup — same wire protocol.
04
No registry, no central servers.
02 — Code
A handful of lines.
// Given a configured WeaveNode and admitted discovery scope.
let discovered = node.discover_peers().await?;
// Discovery does not grant access or prove artifact availability.