Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRecord ¶
type NodeRecord struct { foundation.BaseContract PublicKey string Role core.NodeRole }
NodeRecord contains info about node
func NewNodeRecord ¶
func NewNodeRecord(pk string, roleS string) *NodeRecord
New creates new NodeRecord
func (*NodeRecord) Destroy ¶
func (nr *NodeRecord) Destroy()
SelfDestroy makes request to destroy current node record
func (*NodeRecord) GetPublicKey ¶
func (nr *NodeRecord) GetPublicKey() string
GetPublicKey returns public key
func (*NodeRecord) GetRoleAndPublicKey ¶
func (nr *NodeRecord) GetRoleAndPublicKey() (core.NodeRole, string)
GetRoleAndPublicKey returns role-pubKey pair
Click to show internal directories.
Click to hide internal directories.