Replies: 1 comment
-
|
I think there's a little bit of a bootstrapping problem with this. So you need another system still to resolve these iroh endpoint public keys into IP addresses. That said, I think this might only be a shortcoming of the current If that problem is solved, then I think something like that can be done, although I don't think it's going to be much better than the current system. Practically, I think running multiple In any case, at this point this is likely to be another helper crate IMHO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to start a discussion about bringing DHT capabilities directly into iroh, building on the work in the iroh-dht-experiment repository.
Currently, the available discovery methods are (m)DNS, pkarr, or mainline DHT. Except for mDNS (which is local-only), all of them require additional server infrastructure or setup to enable node discovery. This means you can't build a purely iroh-based system for internet-wide discovery without depending on external services.
The iroh-dht-experiment repo showcases a Kademlia implementation with a 32-byte keyspace working over iroh connections. This solves key limitations with mainline DHT: the 20-byte keyspace requires hashing our BLAKE3 identifiers and could be a starting point for a custom iroh DHT discovery.
Would it be possible to create an iroh-only DHT discovery based on this? I would love to build a system that only uses iroh nodes (and maybe relays) and that enables discovery, similar to what the libp2p kad and identify protocols can do. This would give applications the option to run fully distributed systems without requiring DNS servers, pkarr infrastructure, or bootstrapping into the mainline DHT.
If this makes sense as a direction, what would the integration path look like? Should it be a separate crate or something more deeply embedded in iroh itself?
Beta Was this translation helpful? Give feedback.
All reactions