package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

DecodeMessage decodes the message body of a packet.
DecodePubkey decodes a public key in compressed format.
EncodePubkey encodes a public key.
IsInvalidHeader reports whether 'err' is related to an invalid packet header.
NewCodec creates a wire codec.

# Constants

Message types.
Message types.
Message types.
Message types.
Message types.
Message types.
Message types.
Message types.
any non-decryptable packet.
the WHOAREYOU packet.

# Variables

ErrInvalidReqID represents error when the ID is invalid.

# Structs

Codec encodes and decodes Discovery v5 packets.
Protocol messages.
Header represents a packet header.
Protocol messages.
Protocol messages.
Protocol messages.
The SessionCache keeps negotiated encryption keys and state for in-progress handshakes in the Discovery v5 wire protocol.
StaticHeader contains the static fields of a packet header.
Protocol messages.
Protocol messages.
Protocol messages.
Protocol messages.

# Interfaces

Packet is implemented by all message types.

# Type aliases

Nonce represents a nonce used for AES/GCM.