randao

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandaoEpochSSZ = zssz.GetSSZ((*Epoch)(nil))

Functions

This section is empty.

Types

type RandaoFeature

type RandaoFeature struct {
	State *RandaoState
	Meta  interface {
		meta.Versioning
		meta.Proposers
		meta.Pubkeys
	}
}

func (*RandaoFeature) ProcessRandaoReveal

func (f *RandaoFeature) ProcessRandaoReveal(reveal BLSSignature) error

type RandaoProcessor

type RandaoProcessor interface {
	ProcessRandaoReveal(reveal BLSSignature) error
}

type RandaoState

type RandaoState struct {
	RandaoMixes [EPOCHS_PER_HISTORICAL_VECTOR]Root
}

Randomness and committees

func (*RandaoState) GetRandomMix

func (state *RandaoState) GetRandomMix(epoch Epoch) Root

Provides a source of randomness for the state, for e.g. shuffling

func (*RandaoState) PrepareRandao

func (state *RandaoState) PrepareRandao(epoch Epoch)

Prepare the randao mix for the given epoch by copying over the mix from the privious epoch.

func (*RandaoState) SeedRandao added in v0.9.0

func (state *RandaoState) SeedRandao(seed Root)

Jump to

Keyboard shortcuts

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