randao

package
v0.0.0-...-c85edb6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package randao contains libraries to update and proposer's RANDAO layer and mixes the RANDAO with the existing RANDAO value in state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateRandaoLayers

func UpdateRandaoLayers(state *pb.BeaconState, slot uint64) (*pb.BeaconState, error)

UpdateRandaoLayers increments the randao layer of the block proposer at the given slot.

func UpdateRandaoMixes

func UpdateRandaoMixes(state *pb.BeaconState) *pb.BeaconState

UpdateRandaoMixes sets the beacon state's latest randao mixes according to the latest beacon slot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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