headers

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Unlicense Imports: 5 Imported by: 0

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

func GetHeaders(alice, bob *sessions.Data, c sessions.Circuit,
	ks *crypto.KeySet) (h *Headers)

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.

func (*Headers) ExitPoint

func (h *Headers) ExitPoint() *exit.ExitPoint

ExitPoint is similar to GetHeaders except it does not include the forward path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL