Skip to main content

Module channel

Module channel 

Source
Expand description

Relay channel code.

This contains relay specific channel code. In other words, everything that a relay needs to establish a channel according to the Tor protocol.

Re-exportsยง

pub use responder::MaybeVerifiableRelayResponderChannel;

Modulesยง

create_handler ๐Ÿ”’
Handler for CREATE* cells.
handshake ๐Ÿ”’
Implementations for the relay channel handshake
initiator ๐Ÿ”’
Relay initiator channel.
responder ๐Ÿ”’
Relay responder channel.

Structsยง

ChannelAuthenticationData ๐Ÿ”’
Channel authentication data. This is only relevant for a Relay to Relay channel which are authenticated using this buffet of bytes.
RelayChannelAuthMaterial
Object containing the keys and certificates for channel authentication.
RelayChannelBuilder
Structure for building and launching a relay Tor channel.

Staticsยง

LINK_AUTH ๐Ÿ”’
A list of link authentication that we support (LinkAuth).

Functionsยง

build_certs_cell ๐Ÿ”’
Helper: Build a msg::Certs cell for the given relay identities and channel type.
build_netinfo_cell ๐Ÿ”’
Build a msg::Netinfo cell from the given peer IPs and our advertised addresses.