go-torgen – github.com/abdullah2993/go-torgen Index | Files | Directories

package torgen

import "github.com/abdullah2993/go-torgen"

Index

Types

type ServiceDesc

type ServiceDesc struct {
	PrivateKey string
	Hostname   string
}

ServiceDesc contains services private key as well as hostname

func Generate

func Generate() (*ServiceDesc, error)

Generate creats a V2 address

type ServiceDescV3

type ServiceDescV3 struct {
	PrivateKey []byte
	PublicKey  []byte
	Hostname   string
}

ServiceDescV3 contains services private key as well as hostname

func GenerateV3

func GenerateV3() (*ServiceDescV3, error)

GenerateV3 creats a V3 address

Source Files

togen.go

Directories

PathSynopsis
cmd
cmd/torgen
Version
v0.0.0-20220408221734-4ae7d79c3559 (latest)
Published
Apr 8, 2022
Platform
linux/amd64
Imports
11 packages
Last checked
1 month ago

Tools for package owners.