Skip to main content

Module dial_addrs

Module dial_addrs 

Source
Expand description

NodeId → registry-published direct dial addresses (ADR 001 § Node Discovery), mirrored into an iroh MemoryLookup that the runtime registers on the node’s endpoint.

A node publishes only its relay URL through pkarr, so a dial by bare NodeId learns no IP address from pkarr and opens over the relay. The CapacityBond registry watcher keeps this directory in step with each node’s on-chain multiaddrs. With its lookup on the endpoint, every EndpointAddr::new(node_id) dial (DHT RPCs, upstream probes and pulls, waiver requests) resolves the registry addresses and connects directly when the node is reachable.

The addresses are self-attested and additive. A stale or wrong address loses the path race to the relay, and the QUIC handshake authenticates the node id, so an address cannot redirect a dial to a different node.

Structs§

DialAddrDirectory
The registry’s NodeId → direct dial addresses projection and the iroh lookup it feeds. Cloning shares both.