Module v1

Source
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.