types

package
v0.5.1-develop Latest Latest
Warning

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

Go to latest
Published: Nov 4, 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 BlockStatus added in v0.7.0

type BlockStatus struct {
	Hash   common.Hash `json:"hash"`
	Status Status      `json:"status"`
}

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"`
}

func (*MinimalEpochConsensusInfo) ConvertToEpochInfoV2 added in v0.7.0

func (info *MinimalEpochConsensusInfo) ConvertToEpochInfoV2() *MinimalEpochConsensusInfoV2

type MinimalEpochConsensusInfoV2 added in v0.7.0

type MinimalEpochConsensusInfoV2 struct {
	Epoch            uint64        `json:"epoch"`
	ValidatorList    []string      `json:"validatorList"`
	EpochStartTime   uint64        `json:"epochTimeStart"`
	SlotTimeDuration time.Duration `json:"slotTimeDuration"`
	ReorgInfo        *Reorg        `json:"reorg_info"`
}

func (*MinimalEpochConsensusInfoV2) ConvertToEpochInfo added in v0.7.0

func (info *MinimalEpochConsensusInfoV2) ConvertToEpochInfo() *MinimalEpochConsensusInfo

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 Reorg added in v0.7.0

type Reorg struct {
	VanParentHash []byte `json:"van_parent_hash"`
	PanParentHash []byte `json:"pan_parent_hash"`
	NewSlot       uint64 `json:"new_slot"`
}

type SlotInfo added in v0.7.0

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

SlotInfo

type SlotInfoWithStatus added in v0.7.0

type SlotInfoWithStatus struct {
	VanguardBlockHash common.Hash
	PandoraHeaderHash common.Hash
	Status
}

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