circuit

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T []*relayentry.T

func Join

func Join(fronting T, entropic T, backing T) (t T)

Join joins a partitioned circuit back.

func Make

func Make(hops int, all T) (t T, err error)

Make attempts to create a viable circuit given a type, number of requested hops and a list of all relays to consider.

func (T) Partition

func (t T) Partition() (fronting T, entropic T, backing T)

Partition partitions an arbitrary circuit onto 3 parts: fronting, entropic and backing relays. It also excludes all relays which have a version which is incompatible with this wireleap.

Jump to

Keyboard shortcuts

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