drng

package
v0.2.4-0...-2c2ceb1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Pollen defines the instance ID of the Pollen drng committee.
	Pollen = 1

	// XTeam defines the instance ID of the X-Team drng committee.
	XTeam = 1339
)
View Source
const (

	// CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
	CfgDRNGInstanceID = "drng.pollen.instanceId"
	// CfgDRNGThreshold defines the config flag of the DRNG threshold.
	CfgDRNGThreshold = "drng.pollen.threshold"
	// CfgDRNGDistributedPubKey defines the config flag of the DRNG distributed Public Key.
	CfgDRNGDistributedPubKey = "drng.pollen.distributedPubKey"
	// CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
	CfgDRNGCommitteeMembers = "drng.pollen.committeeMembers"

	// CfgDRNGXTeamInstanceID defines the config flag of the DRNG instanceID.
	CfgDRNGXTeamInstanceID = "drng.xteam.instanceId"
	// CfgDRNGXTeamThreshold defines the config flag of the DRNG threshold.
	CfgDRNGXTeamThreshold = "drng.xteam.threshold"
	// CfgDRNGXTeamDistributedPubKey defines the config flag of the DRNG distributed Public Key.
	CfgDRNGXTeamDistributedPubKey = "drng.xteam.distributedPubKey"
	// CfgDRNGXTeamCommitteeMembers defines the config flag of the DRNG committee members identities.
	CfgDRNGXTeamCommitteeMembers = "drng.xteam.committeeMembers"

	// CfgDRNGCustomInstanceID defines the config flag of the DRNG instanceID.
	CfgDRNGCustomInstanceID = "drng.custom.instanceId"
	// CfgDRNGCustomThreshold defines the config flag of the DRNG threshold.
	CfgDRNGCustomThreshold = "drng.custom.threshold"
	// CfgDRNGCustomDistributedPubKey defines the config flag of the DRNG distributed Public Key.
	CfgDRNGCustomDistributedPubKey = "drng.custom.distributedPubKey"
	// CfgDRNGCustomCommitteeMembers defines the config flag of the DRNG committee members identities.
	CfgDRNGCustomCommitteeMembers = "drng.custom.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