A Bitcoin node address tells software how to reach another node. It has nothing to do with the address you give someone who wants to pay you. Bitcoin’s original peer address message used a fixed 16-byte field that could represent ordinary IP addresses but could not fit newer Tor onion endpoints. BIP155 introduced another message, called addrv2, that carries the address type together with the endpoint itself. BIP155 specification
The change makes Bitcoin’s peer directory more adaptable without deciding whether the node at the other end is trustworthy, reachable or using any particular kind of connection. Those questions are still separate.
What a node shares with its peers
A node can ask peers for addresses or receive introductions to other nodes. One entry includes an endpoint, service information and a timestamp describing when the peer was last seen as connected, according to the sender’s information. The recipient can use that as an input when deciding what to try. An introduction offers no guarantee that an address still works or that its advertised services are available.
The old message put endpoint data into a single field of fixed width. Some kinds of addresses could be represented by embedding them in a range of IPv6 addresses. Tor v3, however, needs a larger field. Under addrv2, a Tor v3 endpoint can be encoded in 32 bytes, while conventional IPv4 takes four. I2P also has a 32-byte encoding, with a different network identifier. The identifier tells the receiver how to interpret the following bytes instead of making it infer the network from the spelling of the address. Bitcoin Core implementation notes
How peers agree on the format
Nodes that understand the new message can announce support by sending a separate signal, sendaddrv2, during the connection handshake after the version exchange reaches the appropriate point and before verack. That signal tells the other side which address format to send. It does not force the other side to support a new overlay network. Older software that does not negotiate the format can still receive addresses in the legacy form when those endpoints can be represented.
A variable-length message also needs predictable limits. BIP155 sets an upper limit of 1,000 entries in one message and a maximum size of 512 bytes for an individual endpoint field. Clients are advised to reject known address types with an incorrect length. The specification discourages relaying addresses for unknown network identifiers because the node has no basis for checking whether the addresses make sense for that network. For Tor v2, which no longer operates, the specification gives separate instructions not to relay or use those entries.
These details preserve a distinction between being able to parse a message and being able to do something with the information. A protocol can make room for a future address type without asking today’s nodes to blindly promote every unfamiliar entry they receive.
Discovery is not the connection itself
An addrv2 message can circulate an onion address without converting an existing IP connection into a Tor connection. It does not configure the node’s proxy, create a new onion service, or turn on encryption for ordinary peer traffic. To establish a connection across a particular network, the node must be able to reach it and must be configured to use the relevant transport. BIP324, which describes version 2 encrypted peer transport, solves a different problem; the “v2” labels do not mean the features are linked. BIP324 transport specification
That distinction is useful when checking a node’s network setup. If peers are sharing onion addresses but your node cannot connect to them, check which networks it is configured to use before blaming address relay. Conversely, a working connection on a given network does not tell you the overall mix of your peers or the point at which an address first reached you.
BIP155 advances a modest but important part of Bitcoin: how one peer tells another where somebody else might be reachable. Making those introductions work across multiple networks improves flexibility at the discovery layer, without asking the rest of the system to treat an address as evidence of identity, privacy or reliability.
