Documentation ¶
Index ¶
- type NodeDomain
- func (nd *NodeDomain) GetNodeRecord(ref core.RecordRef) *noderecord.NodeRecord
- func (nd *NodeDomain) IsAuthorized(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) bool
- func (nd *NodeDomain) RegisterNode(pk string, role string) core.RecordRef
- func (nd *NodeDomain) RemoveNode(nodeRef core.RecordRef)
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 (*NodeDomain) GetNodeRecord ¶
func (nd *NodeDomain) GetNodeRecord(ref core.RecordRef) *noderecord.NodeRecord
GetNodeRecord get node record by ref
func (*NodeDomain) IsAuthorized ¶ added in v0.4.0
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
Click to show internal directories.
Click to hide internal directories.