roles

package
v0.94.0-pre Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

View Source
const Hash = "\x02\x8b\x00\x50\x70\xb6\x0d\xf1\xc8\xe2\x09\x78\x7b\x49\xce\xbb\x71\x14\x7b\x59"

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
	P2PNotary      Role = 128
)

Various node roles.

Jump to

Keyboard shortcuts

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