drand

package
v2.0.5-testnet Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0, MIT Imports: 40 Imported by: 0

Documentation

Overview

Package drand is a distributed randomness beacon. It provides periodically an unpredictable, bias-resistant, and verifiable random value.

Index

Constants

This section is empty.

Variables

View Source
var SetVersionPrinter sync.Once

Functions

func CLI

func CLI() *cli.App

CLI runs the drand app

func NukeDKGStateCmd

func NukeDKGStateCmd(c *cli.Context) error

Types

type ProposalFile

type ProposalFile struct {
	Joining   []*drand.Participant
	Leaving   []*drand.Participant
	Remaining []*drand.Participant
}

func ParseProposalFile

func ParseProposalFile(filepath string) (*ProposalFile, error)

func (*ProposalFile) TOML

func (p *ProposalFile) TOML() ProposalFileFormat

type ProposalFileFormat

type ProposalFileFormat struct {
	Joining   []*TomlParticipant
	Leaving   []*TomlParticipant
	Remaining []*TomlParticipant
}

func (*ProposalFileFormat) Joiners

func (p *ProposalFileFormat) Joiners() []*drand.Participant

func (*ProposalFileFormat) Leavers

func (p *ProposalFileFormat) Leavers() []*drand.Participant

func (*ProposalFileFormat) Remainers

func (p *ProposalFileFormat) Remainers() []*drand.Participant

type TomlParticipant

type TomlParticipant struct {
	Address   string
	Key       string
	Signature string
}

func (*TomlParticipant) Into

func (t *TomlParticipant) Into() *drand.Participant

Jump to

Keyboard shortcuts

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