tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZKSIdentityFilename = "zkserver.id"
	ZKSCertFilename     = "zkserver.crt"
	ZKSKeyFilename      = "zkserver.key"
	ZKSHome             = "home"
	ZKCServerFilename   = "myserver/myserver.ini"
)

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(blob []byte) string

func FingerprintDER

func FingerprintDER(c tls.Certificate) string

func InFours

func InFours(x string) (string, error)

func RandomUint64

func RandomUint64() (uint64, error)

RandomUint64 returns a cryptographically random uint64 value.

func ValidateIdentity

func ValidateIdentity(id string) ([]byte, error)

ValidateIdentity verfies that a string contains a valid identity and returns its []byte representation.

Types

type ClientRecord

type ClientRecord struct {
	PublicIdentity zkidentity.PublicIdentity
}

type ServerRecord

type ServerRecord struct {
	PublicIdentity zkidentity.PublicIdentity
	Certificate    []byte
	IPandPort      []byte
	Directory      bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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