Hardcoded seeds, DNS seeds and Darknet nodes

Posted by 40000bytes

Sep 12, 2024/18:41 UTC

The concept of encoding data within AAAA records is proposed as a novel idea to facilitate certain operations. This method would involve using a reserved prefix within these records to differentiate the encoded data from standard IPv6 addresses, thereby preventing any confusion. The primary function of this system would be to maintain the current operation of getaddrinfo in Bitcoin Core while introducing additional logic for decoding the information indicated by the reserved prefix.

This approach is considered particularly intriguing due to the potential application for sharing IP addresses alongside their port numbers, specifically for nodes that operate on non-standard ports. The consideration stems from a comparison of address sizes between Onion v3 and i2p addresses, which are 256 bits, and the standard IPv6 addresses, which are only 128 bits. Despite the initial uncertainty regarding the feasibility of encoding larger address formats into smaller ones, the suggested method appears promising for IPv4 addresses and their associated port numbers. Further elaboration on this method, including technical details and implementation, can be found in a shared resource: Encoding IPv4 address and port number in IPv6 address. This document presumably offers a deeper insight into how such encoding could be executed effectively.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback