Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 Changes in this version + var ErrNilObject = errors.New("received nil object") + var ErrNilSignedBeaconBlock = errors.New("signed beacon block can't be nil") + var ErrUnsupportedSignedBeaconBlock = errors.New("unsupported signed beacon block") + var ErrUnsupportedVersion = errors.New("unsupported beacon block version") + func BeaconBlockContainerToSignedBeaconBlock(obj *eth.BeaconBlockContainer) (interfaces.ReadOnlySignedBeaconBlock, error) + func BeaconBlockIsNil(b interfaces.ReadOnlySignedBeaconBlock) error + func BuildSignedBeaconBlock(blk interfaces.ReadOnlyBeaconBlock, signature []byte) (interfaces.SignedBeaconBlock, error) + func BuildSignedBeaconBlockFromExecutionPayload(blk interfaces.ReadOnlySignedBeaconBlock, payload interface{}) (interfaces.SignedBeaconBlock, error) + func IsEmptyExecutionData(data interfaces.ExecutionData) (bool, error) + func NewBeaconBlock(i interface{}) (interfaces.ReadOnlyBeaconBlock, error) + func NewBeaconBlockBody(i interface{}) (interfaces.ReadOnlyBeaconBlockBody, error) + func NewSignedBeaconBlock(i interface{}) (interfaces.SignedBeaconBlock, error) + func PayloadToHeader(payload interfaces.ExecutionData) (*enginev1.ExecutionPayloadHeader, error) + func PayloadToHeaderCapella(payload interfaces.ExecutionData) (*enginev1.ExecutionPayloadHeaderCapella, error) + func PayloadToHeaderDeneb(payload interfaces.ExecutionData) (*enginev1.ExecutionPayloadHeaderDeneb, error) + func PayloadValueToGwei(value []byte) math.Gwei + func WrappedExecutionPayload(p *enginev1.ExecutionPayload) (interfaces.ExecutionData, error) + func WrappedExecutionPayloadCapella(p *enginev1.ExecutionPayloadCapella, value math.Gwei) (interfaces.ExecutionData, error) + func WrappedExecutionPayloadDeneb(p *enginev1.ExecutionPayloadDeneb, value math.Gwei) (interfaces.ExecutionData, error) + func WrappedExecutionPayloadHeader(p *enginev1.ExecutionPayloadHeader) (interfaces.ExecutionData, error) + func WrappedExecutionPayloadHeaderCapella(p *enginev1.ExecutionPayloadHeaderCapella, value math.Gwei) (interfaces.ExecutionData, error) + func WrappedExecutionPayloadHeaderDeneb(p *enginev1.ExecutionPayloadHeaderDeneb, value math.Gwei) (interfaces.ExecutionData, error) + type BeaconBlock struct + func (b *BeaconBlock) AsSignRequestObject() (validatorpb.SignRequestObject, error) + func (b *BeaconBlock) Body() interfaces.ReadOnlyBeaconBlockBody + func (b *BeaconBlock) Copy() (interfaces.ReadOnlyBeaconBlock, error) + func (b *BeaconBlock) HashTreeRoot() ([field_params.RootLength]byte, error) + func (b *BeaconBlock) HashTreeRootWith(h *ssz.Hasher) error + func (b *BeaconBlock) IsBlinded() bool + func (b *BeaconBlock) IsNil() bool + func (b *BeaconBlock) MarshalSSZ() ([]byte, error) + func (b *BeaconBlock) MarshalSSZTo(dst []byte) ([]byte, error) + func (b *BeaconBlock) ParentRoot() [field_params.RootLength]byte + func (b *BeaconBlock) ProposerIndex() primitives.ValidatorIndex + func (b *BeaconBlock) Proto() (proto.Message, error) + func (b *BeaconBlock) SizeSSZ() int + func (b *BeaconBlock) Slot() primitives.Slot + func (b *BeaconBlock) StateRoot() [field_params.RootLength]byte + func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error + func (b *BeaconBlock) Version() int + type BeaconBlockBody struct + func (b *BeaconBlockBody) Attestations() []*eth.Attestation + func (b *BeaconBlockBody) AttesterSlashings() []*eth.AttesterSlashing + func (b *BeaconBlockBody) BLSToExecutionChanges() ([]*eth.SignedBLSToExecutionChange, error) + func (b *BeaconBlockBody) BlobKzgCommitments() ([][]byte, error) + func (b *BeaconBlockBody) Deposits() []*eth.Deposit + func (b *BeaconBlockBody) Eth1Data() *eth.Eth1Data + func (b *BeaconBlockBody) Execution() (interfaces.ExecutionData, error) + func (b *BeaconBlockBody) Graffiti() [field_params.RootLength]byte + func (b *BeaconBlockBody) HashTreeRoot() ([field_params.RootLength]byte, error) + func (b *BeaconBlockBody) IsNil() bool + func (b *BeaconBlockBody) ProposerSlashings() []*eth.ProposerSlashing + func (b *BeaconBlockBody) Proto() (proto.Message, error) + func (b *BeaconBlockBody) RandaoReveal() [field_params.BLSSignatureLength]byte + func (b *BeaconBlockBody) SyncAggregate() (*eth.SyncAggregate, error) + func (b *BeaconBlockBody) VoluntaryExits() []*eth.SignedVoluntaryExit + type BlockWithVerifiedBlobs struct + Blobs []*eth.BlobSidecar + Block ROBlock + type BlockWithVerifiedBlobsSlice []BlockWithVerifiedBlobs + func (s BlockWithVerifiedBlobsSlice) Len() int + func (s BlockWithVerifiedBlobsSlice) Less(i, j int) bool + func (s BlockWithVerifiedBlobsSlice) ROBlocks() []ROBlock + func (s BlockWithVerifiedBlobsSlice) Swap(i, j int) + type ROBlock struct + func NewROBlock(b interfaces.ReadOnlySignedBeaconBlock) (ROBlock, error) + func NewROBlockWithRoot(b interfaces.ReadOnlySignedBeaconBlock, root [32]byte) (ROBlock, error) + func (b ROBlock) Root() [32]byte + type ROBlockSlice []ROBlock + func (s ROBlockSlice) Len() int + func (s ROBlockSlice) Less(i, j int) bool + func (s ROBlockSlice) Swap(i, j int) + type SignedBeaconBlock struct + func (b *SignedBeaconBlock) Block() interfaces.ReadOnlyBeaconBlock + func (b *SignedBeaconBlock) Copy() (interfaces.ReadOnlySignedBeaconBlock, error) + func (b *SignedBeaconBlock) Header() (*eth.SignedBeaconBlockHeader, error) + func (b *SignedBeaconBlock) IsBlinded() bool + func (b *SignedBeaconBlock) IsNil() bool + func (b *SignedBeaconBlock) MarshalSSZ() ([]byte, error) + func (b *SignedBeaconBlock) MarshalSSZTo(dst []byte) ([]byte, error) + func (b *SignedBeaconBlock) PbAltairBlock() (*eth.SignedBeaconBlockAltair, error) + func (b *SignedBeaconBlock) PbBellatrixBlock() (*eth.SignedBeaconBlockBellatrix, error) + func (b *SignedBeaconBlock) PbBlindedBellatrixBlock() (*eth.SignedBlindedBeaconBlockBellatrix, error) + func (b *SignedBeaconBlock) PbBlindedCapellaBlock() (*eth.SignedBlindedBeaconBlockCapella, error) + func (b *SignedBeaconBlock) PbBlindedDenebBlock() (*eth.SignedBlindedBeaconBlockDeneb, error) + func (b *SignedBeaconBlock) PbCapellaBlock() (*eth.SignedBeaconBlockCapella, error) + func (b *SignedBeaconBlock) PbDenebBlock() (*eth.SignedBeaconBlockDeneb, error) + func (b *SignedBeaconBlock) PbGenericBlock() (*eth.GenericSignedBeaconBlock, error) + func (b *SignedBeaconBlock) PbPhase0Block() (*eth.SignedBeaconBlock, error) + func (b *SignedBeaconBlock) Proto() (proto.Message, error) + func (b *SignedBeaconBlock) SetAttestations(a []*eth.Attestation) + func (b *SignedBeaconBlock) SetAttesterSlashings(a []*eth.AttesterSlashing) + func (b *SignedBeaconBlock) SetBLSToExecutionChanges(blsToExecutionChanges []*eth.SignedBLSToExecutionChange) error + func (b *SignedBeaconBlock) SetBlinded(blinded bool) + func (b *SignedBeaconBlock) SetBlobKzgCommitments(c [][]byte) error + func (b *SignedBeaconBlock) SetDeposits(d []*eth.Deposit) + func (b *SignedBeaconBlock) SetEth1Data(e *eth.Eth1Data) + func (b *SignedBeaconBlock) SetExecution(e interfaces.ExecutionData) error + func (b *SignedBeaconBlock) SetGraffiti(g []byte) + func (b *SignedBeaconBlock) SetParentRoot(parentRoot []byte) + func (b *SignedBeaconBlock) SetProposerIndex(proposerIndex primitives.ValidatorIndex) + func (b *SignedBeaconBlock) SetProposerSlashings(p []*eth.ProposerSlashing) + func (b *SignedBeaconBlock) SetRandaoReveal(r []byte) + func (b *SignedBeaconBlock) SetSignature(sig []byte) + func (b *SignedBeaconBlock) SetSlot(slot primitives.Slot) + func (b *SignedBeaconBlock) SetStateRoot(root []byte) + func (b *SignedBeaconBlock) SetSyncAggregate(s *eth.SyncAggregate) error + func (b *SignedBeaconBlock) SetVoluntaryExits(v []*eth.SignedVoluntaryExit) + func (b *SignedBeaconBlock) Signature() [field_params.BLSSignatureLength]byte + func (b *SignedBeaconBlock) SizeSSZ() int + func (b *SignedBeaconBlock) ToBlinded() (interfaces.ReadOnlySignedBeaconBlock, error) + func (b *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error + func (b *SignedBeaconBlock) ValueInGwei() uint64 + func (b *SignedBeaconBlock) Version() int