Skip to main content

Module eth_snap

Module eth_snap 

Source
Expand description

A dedicated eth + snap/2 stream.

EthSnapStream carries eth as the primary protocol and snap/2 (EIP-8189) as a typed side-channel over a single RLPx connection. It owns the raw P2PStream directly and reuses the transport-free EthStreamInner codec for eth framing, demultiplexing the two protocols by capability message-id offset.

Structs§

EthSnapStream
A dedicated stream that carries eth as the primary protocol and snap/2 (EIP-8189) as a typed side-channel on the same RLPx connection.

Enums§

EthSnapMessage
A message carried by an EthSnapStream: either an eth message or a snap/2 message.