onionkey

package
v0.0.0-...-5cffe04 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface {
	WriteFile(path string) error
	Onion() (*torgo.Onion, error)
	ServiceID() string
}

Key is generic interface type for Tor onion keys.

func GenerateKey

func GenerateKey() (Key, error)

GenerateKey generates a Tor onion key.

func ReadFile

func ReadFile(path string) (Key, error)

ReadFile reads a Tor onion key from file path.

Jump to

Keyboard shortcuts

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