onionkey

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package onionkey manages onion service key generation, serialization, and service ID calculation. Currently only supports version 3 onions.

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