header

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeaconBlockHeaderSSZ = zssz.GetSSZ((*BeaconBlockHeader)(nil))
View Source
var SignedBeaconBlockHeaderSSZ = zssz.GetSSZ((*SignedBeaconBlockHeader)(nil))

Functions

This section is empty.

Types

type BeaconBlockHeader

type BeaconBlockHeader struct {
	Slot       Slot
	ParentRoot Root
	StateRoot  Root
	BodyRoot   Root // Where the body would be, just a root embedded here.
}

type BlockHeaderFeature

type BlockHeaderFeature struct {
	State *BlockHeaderState
	Meta  interface {
		meta.Versioning
		meta.Proposers
		meta.Pubkeys
		meta.SlashedIndices
		meta.LatestHeader
		meta.LatestHeaderUpdate
	}
}

func (*BlockHeaderFeature) ProcessHeader

func (f *BlockHeaderFeature) ProcessHeader(header *BeaconBlockHeader) error

type BlockHeaderState

type BlockHeaderState struct {
	LatestBlockHeader BeaconBlockHeader
}

func (*BlockHeaderState) GetLatestBlockRoot

func (state *BlockHeaderState) GetLatestBlockRoot() Root

Signing root of latest_block_header

func (*BlockHeaderState) UpdateLatestBlockRoot

func (state *BlockHeaderState) UpdateLatestBlockRoot(stateRoot Root) Root

func (*BlockHeaderState) UpdateStateRoot

func (state *BlockHeaderState) UpdateStateRoot(root Root)

type HeaderProcessor

type HeaderProcessor interface {
	ProcessHeader(header *BeaconBlockHeader) error
}

type SignedBeaconBlockHeader added in v0.9.3

type SignedBeaconBlockHeader struct {
	Message   BeaconBlockHeader
	Signature BLSSignature
}

Jump to

Keyboard shortcuts

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