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 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() types.Slot ProposerIndex() types.ValidatorIndex ParentRoot() []byte StateRoot() []byte Body() BeaconBlockBody IsNil() bool IsBlinded() bool HashTreeRoot() ([32]byte, error) Proto() proto.Message ssz.Marshaler ssz.Unmarshaler ssz.HashRoot Version() int AsSignRequestObject() validatorpb.SignRequestObject }
BeaconBlock describes an interface which states the methods employed by an object that is a beacon block.
type BeaconBlockBody ¶
type BeaconBlockBody interface { RandaoReveal() []byte Eth1Data() *ethpb.Eth1Data Graffiti() []byte ProposerSlashings() []*ethpb.ProposerSlashing AttesterSlashings() []*ethpb.AttesterSlashing Attestations() []*ethpb.Attestation Deposits() []*ethpb.Deposit VoluntaryExits() []*ethpb.SignedVoluntaryExit SyncAggregate() (*ethpb.SyncAggregate, error) IsNil() bool HashTreeRoot() ([32]byte, error) Proto() proto.Message ExecutionPayload() (*enginev1.ExecutionPayload, error) ExecutionPayloadHeader() (*ethpb.ExecutionPayloadHeader, error) }
BeaconBlockBody describes the method set employed by an object that is a beacon block body.
type SignedBeaconBlock ¶
type SignedBeaconBlock interface { Block() BeaconBlock Signature() []byte IsNil() bool Copy() SignedBeaconBlock Proto() proto.Message PbGenericBlock() (*ethpb.GenericSignedBeaconBlock, error) PbPhase0Block() (*ethpb.SignedBeaconBlock, error) PbAltairBlock() (*ethpb.SignedBeaconBlockAltair, error) PbBellatrixBlock() (*ethpb.SignedBeaconBlockBellatrix, error) PbBlindedBellatrixBlock() (*ethpb.SignedBlindedBeaconBlockBellatrix, error) ssz.Marshaler ssz.Unmarshaler Version() int Header() (*ethpb.SignedBeaconBlockHeader, error) }
SignedBeaconBlock is an interface describing the method set of a signed beacon block.
Click to show internal directories.
Click to hide internal directories.