nodenetwork

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 19 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHash added in v0.6.3

func CalculateHash(scheme core.PlatformCryptographyScheme, list []core.Node) (result []byte, err error)

CalculateHash calculates hash of active node list

func NewNode

func NewNode(
	id core.RecordRef,
	role core.StaticRole,
	publicKey crypto.PublicKey,
	physicalAddress,
	version string) core.Node

func NewNodeKeeper added in v0.6.3

func NewNodeKeeper(origin core.Node) network.NodeKeeper

NewNodeKeeper create new NodeKeeper

func NewNodeNetwork

func NewNodeNetwork(configuration configuration.HostNetwork, certificate core.Certificate) (core.NodeNetwork, error)

NewNodeNetwork create active node component

Types

type MutableNode added in v0.6.3

type MutableNode interface {
	core.Node

	SetShortID(shortID core.ShortNodeID)
}

Jump to

Keyboard shortcuts

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