Skip to main content

Module path

Module path 

Source
Expand description

Code to construct paths through the Tor network

TODO: Iโ€™m not sure this belongs in circmgr, but this is the best place I can think of for now. Iโ€™m also not sure this should be public.

Modulesยง

dirpath ๐Ÿ”’
Code to construct paths to a directory for non-anonymous downloads
exitpath ๐Ÿ”’
Code for building paths to an exit relay.
hspath ๐Ÿ”’
Code for building paths for HS circuits.

Structsยง

TorPath
A list of Tor relays through the network.

Enumsยง

MaybeOwnedRelay ๐Ÿ”’
Identifier for a relay that could be either known from a NetDir, or specified as an OwnedCircTarget.
OwnedPath ๐Ÿ”’
A path composed entirely of owned components.
TorPathInner ๐Ÿ”’
Non-public helper type to represent the different kinds of Tor path.

Traitsยง

AnonymousPathBuilder ๐Ÿ”’
A path builder that builds multi-hop, anonymous paths.

Functionsยง

ensure_unique_hops ๐Ÿ”’
Returns an error if the specified hop list contains duplicates.
pick_path ๐Ÿ”’
Try to create and return a path corresponding to the requirements of this builder.
select_guard ๐Ÿ”’
Try to select a guard corresponding to the requirements of this builder.