Expand description
Zcash addr
(v1) message node address serialization.
The AddrV1
format serializes all IP addresses as IPv6 addresses.
IPv4 addresses are converted to an IPv4-mapped IPv6 address before serialization.
Structs§
- AddrV1 🔒
- The first format used for Bitcoin node addresses.
Contains a node address, its advertised services, and last-seen time.
This struct is serialized and deserialized into
addr
(v1) messages.
Constants§
- ADDR_
V1_ 🔒SIZE - A serialized
addr
(v1) has a 4 byte time, 8 byte services, 16 byte IP addr, and 2 byte port
Functions§
- ipv6_
mapped_ 🔒ip_ addr - Transform an
IpAddr
into an IPv6-mapped IPv4 addresses.