Module prelude

Source

Structs§

MetaPacket
An encrypted packet with a payload of size P. The final packet size is given by MetaPacket::SIZE.
PaddedPayload
Holds data that are padded up to P + 1.
PartialPacket
Represents a packet that is only partially instantiated, that is - it contains only the routing information and the Alpha value.
ReplyOpener
Entry stored locally by the SURB creator to allow decryption of received responses.
SURB
Single Use Reply Block
SharedKeys
Structure containing shared keys for peers using the Sphinx algorithm.
X25519Suite
Represents an instantiation of the Sphinx protocol using the Curve25519 curve and OffchainKeypair

Enums§

ForwardedMetaPacket
Represent a MetaPacket with one layer of encryption removed, exposing the details about the next hop.
MetaPacketRouting
Describes how a MetaPacket should be routed to the destination.

Traits§

KeyIdMapper
Trait that defines 1:1 mapper between key identifiers and the actual public keys.
SphinxHeaderSpec
Contains the necessary size and type specifications for the Sphinx packet header.
SphinxSuite
Represents an instantiation of the Spinx protocol using the given EC group and corresponding public key object.

Functions§

create_surb
Creates a pair of SURB and ReplyOpener.

Type Aliases§

SharedSecret
Represents a shared secret with a remote peer.