drng

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0, BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
	CfgDRNGInstanceID = "drng.instanceId"
	// CfgDRNGThreshold defines the config flag of the DRNG threshold.
	CfgDRNGThreshold = "drng.threshold"
	// CfgDRNGDistributedPubKey defines the config flag of the DRNG distributed Public Key.
	CfgDRNGDistributedPubKey = "drng.distributedPubKey"
	// CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
	CfgDRNGCommitteeMembers = "drng.committeeMembers"
)
View Source
const PluginName = "DRNG"

PluginName is the name of the DRNG plugin.

Variables

View Source
var (
	// ErrParsingCommitteeMember is returned for an invalid committee member
	ErrParsingCommitteeMember = errors.New("cannot parse committee member")
)

Functions

func Instance

func Instance() *drng.DRNG

Instance returns the DRNG instance.

func Plugin

func Plugin() *node.Plugin

Plugin gets the plugin instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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