#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

4 releases

0.2.0 Mar 28, 2024
0.1.2 Jan 21, 2024
0.1.1 Jan 20, 2024
0.1.0 Jan 20, 2024

#20 in #dht

Download history 34/week @ 2024-01-19 26/week @ 2024-02-16 36/week @ 2024-02-23 19/week @ 2024-03-01 4/week @ 2024-03-08 3/week @ 2024-03-15 107/week @ 2024-03-22 121/week @ 2024-03-29

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

Apache-2.0/MIT

34KB
226 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://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

~39–78MB
~1.5M SLoC