keygen

package
v0.0.0-...-31b6265 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePrivKey

func CreatePrivKey(userName string, protector string) (crypto.PrivKey, error)

CreatePrivKey create a unique private key, hash username and protector key json to a [32]byte

func CreateProtString

func CreateProtString() (string, error)

CreateProtString create NetProtector string

func PrivKeyToPeerID

func PrivKeyToPeerID(PrivKey crypto.PrivKey) (peer.ID, error)

PrivKeyToPeerID convert private key to PeerID

func StringToProt

func StringToProt(protString string) (prot.Protector, error)

StringToProt convert string to pnet.Protector

Types

This section is empty.

Jump to

Keyboard shortcuts

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