path

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: AGPL-3.0 Imports: 10 Imported by: 5

Documentation

Overview

Package path provides routines for path selection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rng *mRand.Rand, doc *pki.Document, recipient []byte, src, dst *pki.MixDescriptor, surbID *[constants.SURBIDLength]byte, baseTime time.Time, isFromClient, isForward bool) ([]*sphinx.PathHop, time.Time, error)

New creates a new path suitable for use in creating a Sphinx packet with the specified parameters.

Note: Forward packets originating from a client have slightly different path requirements than internally sourced packets or response packets as it includes the 0th hop.

func ToString

func ToString(doc *pki.Document, p []*sphinx.PathHop) ([]string, error)

ToString returns a slice of strings representing the "useful" component of each PathHop, suitable for debugging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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