brugeman on Nostr: I am long time fascinated by mainline DHT, and it's cool you are experimenting with ...
I am long time fascinated by mainline DHT, and it's cool you are experimenting with it. Can we talk about browser js not being able to access DHT directly? User needs to set a custom dns server, which is quite a barrier, and is the middleman that can censor or be censored, is that right?
We could have a custom relay that could query dht for user's outbox relays and fetch requested events from there, acting as dht bridge for web apps. But then it's no different from existing indexer relays that clients hardcode for discovery.
We could also have a custom dns server resolving npubs to their outbox relay. But again users won't change their dns settings.
I go back and forth on this and still don't see what is fundamentally solved by this use of dht, at least for the web. Am I missing something?
Published at
2024-10-30 18:08:25Event JSON
{
"id": "7b55f5812cbbe003c30298d422a056ff563f5ad74b561c349b3932f8ef109577",
"pubkey": "3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd",
"created_at": 1730311705,
"kind": 1,
"tags": [
[
"e",
"17addb8aa093493de3196f5b0b483afb5bb36cf11ab4e2ae2bdfee4788eaa5a0",
"",
"root"
],
[
"e",
"d59eae48c091f75d16d2fe832a3af6f55fe639bf462c3656a3de94bbc9423425"
],
[
"e",
"d735723b4575c4b2b30de8bf74dfc20eaee3db1eebbc7f3064b92b478cddf0d4",
"",
"reply"
],
[
"p",
"930ccef12372dd2f16057cfc54f0dbd94335d8b51b4e2737236b00cab718fcd9"
],
[
"p",
"cd169bd8fbd5179e2a8d498ffc31d3ae0e40825ff2b8a85ea359c4455a107ca8"
],
[
"p",
"de7ecd1e2976a6adb2ffa5f4db81a7d812c8bb6698aa00dcf1e76adb55efd645"
],
[
"p",
"8fb9450003a599bb1b34f03fadb9b137f6c0e5a850ba205964bee4732ccce549"
]
],
"content": "I am long time fascinated by mainline DHT, and it's cool you are experimenting with it. Can we talk about browser js not being able to access DHT directly? User needs to set a custom dns server, which is quite a barrier, and is the middleman that can censor or be censored, is that right?\n\nWe could have a custom relay that could query dht for user's outbox relays and fetch requested events from there, acting as dht bridge for web apps. But then it's no different from existing indexer relays that clients hardcode for discovery.\n\nWe could also have a custom dns server resolving npubs to their outbox relay. But again users won't change their dns settings. \n\nI go back and forth on this and still don't see what is fundamentally solved by this use of dht, at least for the web. Am I missing something?",
"sig": "23133ec5d029c42695779ba6805654d97e77121a6862cd0805293795a8079ca3831e7fe8e91b2dca1d0bb16390a1398e442145bf968a705628dde41a03c7036f"
}