p2pkey

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostAccessor

func GetHostAccessor() types.HostAccessor

func InitNodeInfo

func InitNodeInfo(baseCfg *config.BaseConfig, p2pCfg *config.P2PConfig, version string, logger *log.Logger)

InitNodeInfo initializes node-specific informations like node id. Caution: this must be called before all the goroutines are started.

func NodeID

func NodeID() types.PeerID

NodeID returns the node id.

func NodePrivKey

func NodePrivKey() crypto.PrivKey

NodePrivKey returns the private key of the node.

func NodePubKey

func NodePubKey() crypto.PubKey

NodePubKey returns the public key of the node.

func NodeSID

func NodeSID() string

NodeSID returns the string representation of the node id.

func NodeVersion

func NodeVersion() string

NodeVersion returns the version of this binary. TODO: It's not good that version info is in p2pkey package

func StartTime

func StartTime() time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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