tor

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 22 Imported by: 15

Documentation

Index

Constants

View Source
const (
	// CannotDialRicochetAddressError is thrown when a connection to a ricochet address fails.
	CannotDialRicochetAddressError = connectivity.Error("CannotDialRicochetAddressError")
)
View Source
const V3HostnameLength = 56

V3HostnameLength is the length of a Tor V3 Onion Address (without the .onion suffix)

Variables

This section is empty.

Functions

func GetTorV3Hostname

func GetTorV3Hostname(pub ed25519.PublicKey) string

GetTorV3Hostname converts an ed25519 public key to a valid tor onion hostname

func IsValidHostname added in v1.1.1

func IsValidHostname(address string) bool

IsValidHostname returns true if the given address is a valid onion v3 address

func NewTorACN

func NewTorACN(appDirectory string, bundledTorPath string) (connectivity.ACN, error)

NewTorACN creates/starts a Tor ACN and returns a usable ACN object

Types

This section is empty.

Jump to

Keyboard shortcuts

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