[][src]Module discv5::packet

This module defines the raw UDP message packets for Discovery v5.

The discv5 wire specification provides further information on UDP message packets as implemented in this module.

A Packet defines all raw UDP message variants and implements the encoding/decoding logic.

Note, that all message encryption/decryption is handled outside of this module.

Modules

auth_header

Structs

AuthHeader

The Authentication header.

AuthResponse

An authentication response. This contains a signed challenge nonce, and optionally an updated ENR if the requester has an outdated ENR.

Enums

Packet
PacketError

Types of packet errors.

Constants

AUTH_TAG_LENGTH
ID_NONCE_LENGTH
MAGIC_LENGTH
TAG_LENGTH

Type Definitions

AuthTag

The authentication nonce (12 bytes).

Magic

The magic packet.

Nonce

The nonce sent in a WHOAREYOU packet.

Tag

Packet Tag