Documentation ¶
Overview ¶
Package headers is a set of helpers for defining the data to put in a reverse message to enable source routed messages to return anonymously to the client who sent them. These are used for exits and hidden service routing headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headers ¶
type Headers struct {
// Forward and Return - the sessions in the forward hops and return hops.
Forward, Return *exit.Routing
// ReturnPubs
ReturnPubs crypto.Pubs
}
Headers is a collection of keys and sessions required to construct reply headers for the return path, including the forward and return paths.
func GetHeaders ¶
GetHeaders returns a Headers constructed using a (partially preloaded) circuit, the client's node, and the node of the exit, and all the session keys required for each layer of encryption.
Click to show internal directories.
Click to hide internal directories.