onion

package
v0.0.0-...-001208e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Read onion struct from session file Create onion struct from priv key bytes

Index

Constants

This section is empty.

Variables

View Source
var SESSION_DIR = config.SESSION_DIR

Functions

This section is empty.

Types

type Onion

type Onion struct {
	// contains filtered or unexported fields
}

func New

func New() (*Onion, error)

new tor session

func NewFromPrivKey

func NewFromPrivKey(privKeyBytes []byte) (*Onion, error)

func NewFromPubKey

func NewFromPubKey(pubKeyBytes []byte) (*Onion, error)

func NewFromSession

func NewFromSession(filename string) (*Onion, error)

new tor session from session file (priv key)

func (*Onion) Address

func (o *Onion) Address() string

func (*Onion) PrivKey

func (o *Onion) PrivKey() []byte

func (*Onion) PubKey

func (o *Onion) PubKey() []byte

Jump to

Keyboard shortcuts

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