beacon

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beacon

type Beacon struct {
	// contains filtered or unexported fields
}

Beacon contains a seed which can be updated every epoch

func NewBeacon

func NewBeacon() (Beacon, error)

NewBeacon creates new beacon with initial string

func (*Beacon) GetSeed

func (b *Beacon) GetSeed() []byte

GetSeed returns the current seed of the beacon

func (*Beacon) NextEpoch

func (b *Beacon) NextEpoch()

NextEpoch advances the beacon to the next epoch

Jump to

Keyboard shortcuts

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