#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

7 releases (4 breaking)

new 0.5.0 Jul 23, 2024
0.4.0 Jun 27, 2024
0.3.0 May 3, 2024
0.2.0 Mar 28, 2024
0.1.2 Jan 21, 2024

#1933 in Network programming

Download history 190/week @ 2024-03-27 16/week @ 2024-04-03 1/week @ 2024-04-10 1/week @ 2024-04-17 2/week @ 2024-04-24 132/week @ 2024-05-01 11/week @ 2024-05-08 2/week @ 2024-05-15 4/week @ 2024-05-22 2/week @ 2024-06-05 125/week @ 2024-06-26 29/week @ 2024-07-03

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

Apache-2.0/MIT

37KB
285 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

~41–78MB
~1.5M SLoC