Module sphinxcrypto::commands [] [src]

Structs

Delay

This command is used by for the Poisson mix strategy where clients compose the Sphinx packet with the per hop delay of their choosing.

NextHop

The next hop command is used to route the Sphinx packet onto the next hop.

Recipient

The recipient command is used to deliver a payload to the specified message queue.

SURBReply

This command is used by a SURB reply on it's last hop.

Constants

DELAY_SIZE

size of the delay command in bytes

NEXT_HOP_SIZE

size of the next hop command in bytes

RECIPIENT_SIZE

size of the recipient command in bytes

SURB_REPLY_SIZE

size of the SURB reply command in bytes

Traits

RoutingCommand

RoutingCommand is a trait representing Sphinx routing commands.

Functions

commands_to_vec

The commands_to_vec function is used to serialize a vector of routing commands, however it is considered an error to supply such a vector of commands with a NextHop command.

from_bytes

from_bytes reads from a byte slice and returns a decoded routing command and the rest of the buffer.

parse_routing_commands

Parse the per-hop routing commands.