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)
Click to show internal directories.
Click to hide internal directories.