types

package
v0.0.28-eta Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BLSSignatureSize = 96

Variables

This section is empty.

Functions

func CopyHeader added in v0.7.0

func CopyHeader(h *eth1Types.Header) *eth1Types.Header

CopyHeader creates a deep copy of a block header to prevent side effects from modifying a header variable.

Types

type BlsSignatureBytes added in v0.7.0

type BlsSignatureBytes [BLSSignatureSize]byte

func BytesToSig added in v0.7.0

func BytesToSig(b []byte) BlsSignatureBytes

func (BlsSignatureBytes) Bytes added in v0.7.0

func (h BlsSignatureBytes) Bytes() []byte

Bytes gets the byte representation of the underlying hash.

func (*BlsSignatureBytes) SetBytes added in v0.7.0

func (bls *BlsSignatureBytes) SetBytes(b []byte)

type ExtraData added in v0.7.0

type ExtraData struct {
	Slot          uint64
	Epoch         uint64
	ProposerIndex uint64
}

ExtraData

type MinimalEpochConsensusInfo

type MinimalEpochConsensusInfo struct {
	Epoch            uint64        `json:"epoch"`
	ValidatorList    []string      `json:"validatorList"`
	EpochStartTime   uint64        `json:"epochTimeStart"`
	SlotTimeDuration time.Duration `json:"slotTimeDuration"`
}

type PanExtraDataWithBLSSig added in v0.7.0

type PanExtraDataWithBLSSig struct {
	ExtraData
	BlsSignatureBytes BlsSignatureBytes
}

PanExtraDataWithBLSSig

type PandoraHeaderInfo added in v0.7.0

type PandoraHeaderInfo struct {
	Slot   uint64
	Header *eth1Types.Header
}

PandoraHeaderInfo

type PandoraPendingHeaderFilter added in v0.7.0

type PandoraPendingHeaderFilter struct {
	FromBlockHash common.Hash `json:"fromBlockHash"`
}

PandoraPendingHeaderFilter

type SlotInfo added in v0.7.0

type SlotInfo struct {
	VanguardBlockHash common.Hash
	PandoraHeaderHash common.Hash
}

SlotInfo

type Status added in v0.7.0

type Status string
const (
	Pending  Status = "Pending"
	Verified Status = "Verified"
	Invalid  Status = "Invalid"
	Skipped  Status = "Skipped"
	Unknown  Status = "Unknown"
)

type VanguardShardInfo added in v0.7.0

type VanguardShardInfo struct {
	Slot      uint64
	ShardInfo *eth2Types.PandoraShard
	BlockHash []byte
}

VanguardShardInfo

Jump to

Keyboard shortcuts

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