#p2p #networking #node #discovery #bittorrent #dht #mechanism

iroh-pkarr-node-discovery

A discovery mechanism for iroh-net that uses the bittorrent mainline DHT via pkarr

5 unstable releases

0.3.0 May 3, 2024
0.2.0 Mar 28, 2024
0.1.2 Jan 21, 2024
0.1.1 Jan 20, 2024
0.1.0 Jan 20, 2024

#2174 in Network programming

Download history 31/week @ 2024-01-21 32/week @ 2024-02-18 44/week @ 2024-02-25 5/week @ 2024-03-03 6/week @ 2024-03-10 1/week @ 2024-03-17 176/week @ 2024-03-24 28/week @ 2024-03-31 3/week @ 2024-04-07 3/week @ 2024-04-21 117/week @ 2024-04-28 24/week @ 2024-05-05

144 downloads per month
Used in iroh-mainline-content-dis…

Apache-2.0/MIT

36KB
273 lines

Pkarr based node discovery for iroh-net

Node discovery is being able to find connecting information about an iroh node based on just its node id.

This crate implements a discovery mechanism for iroh-net based on https://pkarr.org/.

TLDR: Each node publishes its address to the mainline DHT as a DNS packet, signed with its private key. The DNS packet contains the node's direct addresses and optionally a DERP URL.

Dependencies

~40–76MB
~1.5M SLoC