nodedomain

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeDomain

type NodeDomain struct {
	foundation.BaseContract
}

NodeDomain holds noderecords

func NewNodeDomain

func NewNodeDomain() *NodeDomain

NewNodeDomain create new NodeDomain

func (*NodeDomain) Authorize

func (nd *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (pubKey string, role core.NodeRole, errS string)

Authorize checks node and returns node info

func (*NodeDomain) IsAuthorized

func (nd *NodeDomain) IsAuthorized(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) bool

IsAuthorized checks is signature correct

func (*NodeDomain) RegisterNode

func (nd *NodeDomain) RegisterNode(pk string, role string) core.RecordRef

RegisterNode registers node in system

func (*NodeDomain) RemoveNode

func (nd *NodeDomain) RemoveNode(nodeRef core.RecordRef)

RemoveNode deletes node from registry

Jump to

Keyboard shortcuts

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