drand

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrandBeacon

type DrandBeacon struct {
	DrandClient client.Client
	PublicKey   kyber.Point
	// contains filtered or unexported fields
}

func NewDrandBeacon

func NewDrandBeacon(ps *pubsub.PubSub, bus EventBus.Bus) (*DrandBeacon, error)

func (*DrandBeacon) Entry

func (db *DrandBeacon) Entry(ctx context.Context, round uint64) (types.BeaconEntry, error)

func (*DrandBeacon) LatestBeaconRound

func (db *DrandBeacon) LatestBeaconRound() uint64

func (*DrandBeacon) Run

func (db *DrandBeacon) Run(ctx context.Context) error

func (*DrandBeacon) VerifyEntry

func (db *DrandBeacon) VerifyEntry(curr, prev types.BeaconEntry) error

Jump to

Keyboard shortcuts

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