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¶
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¶
"discv5" magic (0x64 69 73 63 76 35)
variable version¶
Protocol version (current = 1).
variable flag¶
Packet type flag (0=msg, 1=WHOAREYOU, 2=handshake).
variable nonce¶
AES-GCM nonce.
variable auth_size¶
Byte count of the auth-data section.
Updated on 2026-04-13 at 23:22:46 -0700