Skip to content

Instantly share code, notes, and snippets.

@pinheadmz
Last active July 25, 2022 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinheadmz/7d80a8ee2c2b60169c75abc9e1397eb0 to your computer and use it in GitHub Desktop.
Save pinheadmz/7d80a8ee2c2b60169c75abc9e1397eb0 to your computer and use it in GitHub Desktop.
DHTNS
Key: hash of domain name sld.tld
Value: DNSSEC signed zone file
Nodes host zone files and are incentivized by sld and tld owners to do so using payment channels.
Nodes may host many zone files.
Nodes compute a GCS filter containing all the keys for the zones they host.
This filter is sent to all peers with a "hops" value of 0. Nodes that receive these packets can re-transmit them to their peers by incrementing the "hops" value, etc.
When a light client connects to its peers, it downloads from each peer a set of filters and their hops.
When the user wants to resolve a name their node checks each filter it knows about for the shortest route to a node with the zone file they are looking for. A request packet is relayed along that route and a response packet is returned.
Alternatively, the initial packets can also link to a hosts exact bromide key and IP address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment