Documentation ¶
Index ¶
- func BeaconBlockHeaderFromBlock(block *ethpb.BeaconBlock) (*ethpb.BeaconBlockHeader, error)
- func BeaconBlockHeaderFromBlockInterface(block BeaconBlock) (*ethpb.BeaconBlockHeader, error)
- func SignedBeaconBlockHeaderFromBlock(block *ethpb.SignedBeaconBlock) (*ethpb.SignedBeaconBlockHeader, error)
- func SignedBeaconBlockHeaderFromBlockInterface(sb SignedBeaconBlock) (*ethpb.SignedBeaconBlockHeader, error)
- type BeaconBlock
- type BeaconBlockBody
- type ExecutionData
- type SignedBeaconBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeaconBlockHeaderFromBlock ¶
func BeaconBlockHeaderFromBlock(block *ethpb.BeaconBlock) (*ethpb.BeaconBlockHeader, error)
BeaconBlockHeaderFromBlock function to retrieve block header from block.
func BeaconBlockHeaderFromBlockInterface ¶
func BeaconBlockHeaderFromBlockInterface(block BeaconBlock) (*ethpb.BeaconBlockHeader, error)
BeaconBlockHeaderFromBlockInterface function to retrieve block header from block.
func SignedBeaconBlockHeaderFromBlock ¶
func SignedBeaconBlockHeaderFromBlock(block *ethpb.SignedBeaconBlock) (*ethpb.SignedBeaconBlockHeader, error)
SignedBeaconBlockHeaderFromBlock function to retrieve signed block header from block.
func SignedBeaconBlockHeaderFromBlockInterface ¶
func SignedBeaconBlockHeaderFromBlockInterface(sb SignedBeaconBlock) (*ethpb.SignedBeaconBlockHeader, error)
SignedBeaconBlockHeaderFromBlockInterface function to retrieve signed block header from block.
Types ¶
type BeaconBlock ¶
type BeaconBlock interface { Slot() primitives.Slot SetSlot(slot primitives.Slot) ProposerIndex() primitives.ValidatorIndex SetProposerIndex(idx primitives.ValidatorIndex) ParentRoot() [field_params.RootLength]byte SetParentRoot([]byte) StateRoot() [field_params.RootLength]byte SetStateRoot([]byte) Body() BeaconBlockBody IsNil() bool IsBlinded() bool SetBlinded(bool) HashTreeRoot() ([field_params.RootLength]byte, error) Proto() (proto.Message, error) ssz.Marshaler ssz.Unmarshaler ssz.HashRoot Version() int AsSignRequestObject() (validatorpb.SignRequestObject, error) Copy() (BeaconBlock, error) }
BeaconBlock describes an interface which states the methods employed by an object that is a beacon block.
type BeaconBlockBody ¶
type BeaconBlockBody interface { RandaoReveal() [field_params.BLSSignatureLength]byte SetRandaoReveal([]byte) Eth1Data() *ethpb.Eth1Data SetEth1Data(*ethpb.Eth1Data) Graffiti() [field_params.RootLength]byte SetGraffiti([]byte) ProposerSlashings() []*ethpb.ProposerSlashing SetProposerSlashings([]*ethpb.ProposerSlashing) AttesterSlashings() []*ethpb.AttesterSlashing SetAttesterSlashings([]*ethpb.AttesterSlashing) Attestations() []*ethpb.Attestation SetAttestations([]*ethpb.Attestation) Deposits() []*ethpb.Deposit SetDeposits([]*ethpb.Deposit) VoluntaryExits() []*ethpb.SignedVoluntaryExit SetVoluntaryExits([]*ethpb.SignedVoluntaryExit) SyncAggregate() (*ethpb.SyncAggregate, error) SetSyncAggregate(*ethpb.SyncAggregate) error IsNil() bool HashTreeRoot() ([field_params.RootLength]byte, error) Proto() (proto.Message, error) Execution() (ExecutionData, error) SetExecution(ExecutionData) error BLSToExecutionChanges() ([]*ethpb.SignedBLSToExecutionChange, error) SetBLSToExecutionChanges([]*ethpb.SignedBLSToExecutionChange) error }
BeaconBlockBody describes the method set employed by an object that is a beacon block body.
type ExecutionData ¶
type ExecutionData interface { ssz.Marshaler ssz.Unmarshaler ssz.HashRoot IsNil() bool Proto() proto.Message ParentHash() []byte FeeRecipient() []byte StateRoot() []byte ReceiptsRoot() []byte LogsBloom() []byte PrevRandao() []byte BlockNumber() uint64 GasLimit() uint64 GasUsed() uint64 Timestamp() uint64 ExtraData() []byte BaseFeePerGas() []byte BlockHash() []byte Transactions() ([][]byte, error) TransactionsRoot() ([]byte, error) Withdrawals() ([]*enginev1.Withdrawal, error) WithdrawalsRoot() ([]byte, error) PbCapella() (*enginev1.ExecutionPayloadCapella, error) PbBellatrix() (*enginev1.ExecutionPayload, error) }
ExecutionData represents execution layer information that is contained within post-Bellatrix beacon block bodies.
type SignedBeaconBlock ¶
type SignedBeaconBlock interface { Block() BeaconBlock Signature() [field_params.BLSSignatureLength]byte SetSignature(sig []byte) IsNil() bool Copy() (SignedBeaconBlock, error) Proto() (proto.Message, error) PbGenericBlock() (*ethpb.GenericSignedBeaconBlock, error) PbPhase0Block() (*ethpb.SignedBeaconBlock, error) PbAltairBlock() (*ethpb.SignedBeaconBlockAltair, error) ToBlinded() (SignedBeaconBlock, error) PbBellatrixBlock() (*ethpb.SignedBeaconBlockBellatrix, error) PbBlindedBellatrixBlock() (*ethpb.SignedBlindedBeaconBlockBellatrix, error) PbCapellaBlock() (*ethpb.SignedBeaconBlockCapella, error) PbBlindedCapellaBlock() (*ethpb.SignedBlindedBeaconBlockCapella, error) ssz.Marshaler ssz.Unmarshaler Version() int IsBlinded() bool Header() (*ethpb.SignedBeaconBlockHeader, error) }
SignedBeaconBlock is an interface describing the method set of a signed beacon block.