Skip to content

discv5::StaticHeaderWire

discv5 static packet header, as defined by the EIP-8020 spec. More...

#include <discv5_constants.hpp>

Public Attributes

Name
uint8_t[kProtocolIdBytes] protocol_id
"discv5" magic (0x64 69 73 63 76 35)
uint16_t version
Protocol version (current = 1).
uint8_t flag
Packet type flag (0=msg, 1=WHOAREYOU, 2=handshake).
GcmNonceWire nonce
AES-GCM nonce.
uint16_t auth_size
Byte count of the auth-data section.

Detailed Description

struct discv5::StaticHeaderWire;

discv5 static packet header, as defined by the EIP-8020 spec.

Mirrors go-ethereum's v5wire.StaticHeader struct. Sits immediately after the MaskingIvWire in every packet.

All multi-byte integers are big-endian on the wire.

Public Attributes Documentation

variable protocol_id

uint8_t[kProtocolIdBytes] protocol_id;

"discv5" magic (0x64 69 73 63 76 35)

variable version

uint16_t version;

Protocol version (current = 1).

variable flag

uint8_t flag;

Packet type flag (0=msg, 1=WHOAREYOU, 2=handshake).

variable nonce

GcmNonceWire nonce;

AES-GCM nonce.

variable auth_size

uint16_t auth_size;

Byte count of the auth-data section.


Updated on 2026-04-13 at 23:22:46 -0700