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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.