Documentation ¶
Index ¶
- type NodeDomain
- func (nd *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (pubKey string, role core.NodeRole, errS string)
- 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) 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 ¶
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.