roles

package
v0.97.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 2 Imported by: 9

Documentation

Overview

Package roles provides interface to RoleManagement native contract. Role management contract is used by committee to designate some nodes as providing some service on the network.

Index

Constants

View Source
const Hash = "\xe2\x95\xe3\x91\x54\x4c\x17\x8a\xd9\x4f\x03\xec\x4d\xcd\xff\x78\x53\x4e\xcf\x49"

Hash represents RoleManagement contract hash.

Variables

This section is empty.

Functions

func DesignateAsRole

func DesignateAsRole(r Role, pubs []interop.PublicKey)

DesignateAsRole represents `designateAsRole` method of RoleManagement native contract.

func GetDesignatedByRole

func GetDesignatedByRole(r Role, height uint32) []interop.PublicKey

GetDesignatedByRole represents `getDesignatedByRole` method of RoleManagement native contract.

Types

type Role

type Role byte

Role represents node role.

const (
	StateValidator Role = 4
	Oracle         Role = 8
	NeoFSAlphabet  Role = 16
	// P2PNotary is an extension of Neo protocol available on specifically configured NeoGo networks.
	P2PNotary Role = 128
)

Various node roles.

Jump to

Keyboard shortcuts

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