Module v1

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.