all

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Code generated by dynamic-ssz. DO NOT EDIT. Hash: fe7e484e9703f1372a7133b82372568b2ab149929a6df125b0f6bd05d67f15f7 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Code generated by dynamic-ssz. DO NOT EDIT. Hash: f676891442525a9b19552cc6d23e97c548d82c1505e4ca1eb61ebbef216735f3 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Code generated by dynamic-ssz. DO NOT EDIT. Hash: 40fb6011d06db0c0d0a2976e96bf993a49e919c83f6d8aee92e4e514a6ecb231 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Code generated by dynamic-ssz. DO NOT EDIT. Hash: 14e2fae0399103d307cf7c74d1edfda92ee5450994dc6089b4446162ed3391f4 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Code generated by dynamic-ssz. DO NOT EDIT. Hash: 84b8749aa0c253c66da5cc5cbc7f3430c9a0a6595a81621ca5312b56cc2408e7 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Code generated by dynamic-ssz. DO NOT EDIT. Hash: 186e5caf28416a261ca2fcb4684caf251f4bd3a1a52c84e17e6c68b96274550d Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalFromSignedBlock

func ProposalFromSignedBlock(block *all.SignedBeaconBlock) (*api.VersionedSignedProposal, error)

ProposalFromSignedBlock wraps a signed beacon block into the versioned signed proposal consumed by the block submission API, for the forks whose proposals are bare blocks:

  • Bellatrix/Capella: pre-blobs, the block is the whole proposal.
  • Gloas onwards: EIP-7732 separates the execution payload (and its blobs) from the block, so there is no block-contents wrapper.

Deneb through Fulu proposals carry blobs alongside the block and are rejected here — use SignedBlockContents.ToVersioned for those.

Types

type BlindedBeaconBlock

type BlindedBeaconBlock struct {
	Version       version.DataVersion
	Slot          phase0.Slot
	ProposerIndex phase0.ValidatorIndex
	ParentRoot    phase0.Root
	StateRoot     phase0.Root
	Body          *BlindedBeaconBlockBody
}

BlindedBeaconBlock is a fork-agnostic blinded beacon block. The Body's contents depend on Version. Blinded blocks exist as a wire type from Bellatrix up to (excluding) Gloas; other forks are not supported by this type.

func (*BlindedBeaconBlock) FromVersioned

FromVersioned populates b from src.

func (*BlindedBeaconBlock) FromView

func (b *BlindedBeaconBlock) FromView(view any) error

FromView populates b from a fork-specific BlindedBeaconBlock.

func (*BlindedBeaconBlock) HashTreeRoot

func (b *BlindedBeaconBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BlindedBeaconBlock) HashTreeRootWith

func (b *BlindedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BlindedBeaconBlock) HashTreeRootWithDyn

func (b *BlindedBeaconBlock) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*BlindedBeaconBlock) HashTreeRootWithDynView

func (t *BlindedBeaconBlock) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*BlindedBeaconBlock) MarshalJSON

func (b *BlindedBeaconBlock) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork BlindedBeaconBlock that matches Version.

func (*BlindedBeaconBlock) MarshalSSZ

func (b *BlindedBeaconBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlock) MarshalSSZDyn

func (b *BlindedBeaconBlock) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the blinded block using the view that matches Version.

func (*BlindedBeaconBlock) MarshalSSZDynView

func (t *BlindedBeaconBlock) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*BlindedBeaconBlock) MarshalSSZTo

func (b *BlindedBeaconBlock) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlock) MarshalYAML

func (b *BlindedBeaconBlock) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork BlindedBeaconBlock that matches Version.

func (*BlindedBeaconBlock) SizeSSZ

func (b *BlindedBeaconBlock) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlock) SizeSSZDyn

func (b *BlindedBeaconBlock) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the blinded block for the active Version.

func (*BlindedBeaconBlock) SizeSSZDynView

func (t *BlindedBeaconBlock) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*BlindedBeaconBlock) ToVersioned

ToVersioned converts b into a *api.VersionedBlindedBeaconBlock.

func (*BlindedBeaconBlock) ToView

func (b *BlindedBeaconBlock) ToView() (any, error)

ToView returns a fresh fork-specific BlindedBeaconBlock populated with b's fields, recursing into Body via copyByName.

func (*BlindedBeaconBlock) UnmarshalJSON

func (b *BlindedBeaconBlock) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork BlindedBeaconBlock that matches Version. Caller must set Version before calling.

func (*BlindedBeaconBlock) UnmarshalSSZ

func (b *BlindedBeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BlindedBeaconBlock) UnmarshalSSZDyn

func (b *BlindedBeaconBlock) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the blinded block into the view that matches Version.

func (*BlindedBeaconBlock) UnmarshalSSZDynView

func (t *BlindedBeaconBlock) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*BlindedBeaconBlock) UnmarshalYAML

func (b *BlindedBeaconBlock) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork BlindedBeaconBlock that matches Version. Caller must set Version before calling.

type BlindedBeaconBlockBody

type BlindedBeaconBlockBody struct {
	Version                version.DataVersion
	RANDAOReveal           phase0.BLSSignature
	ETH1Data               *phase0.ETH1Data
	Graffiti               [32]byte
	ProposerSlashings      []*phase0.ProposerSlashing
	AttesterSlashings      []*specall.AttesterSlashing
	Attestations           []*specall.Attestation
	Deposits               []*phase0.Deposit
	VoluntaryExits         []*phase0.SignedVoluntaryExit
	SyncAggregate          *altair.SyncAggregate
	ExecutionPayloadHeader *specall.ExecutionPayloadHeader
	BLSToExecutionChanges  []*capella.SignedBLSToExecutionChange
	BlobKZGCommitments     []deneb.KZGCommitment
	ExecutionRequests      *specall.ExecutionRequests
}

BlindedBeaconBlockBody is a fork-agnostic blinded beacon block body containing the union of fields from every fork. Fields populated on a given instance depend on Version. Blinded blocks exist as a wire type from Bellatrix up to (excluding) Gloas; other forks are not supported by this type.

func (*BlindedBeaconBlockBody) FromView

func (b *BlindedBeaconBlockBody) FromView(view any) error

FromView populates b from a fork-specific BlindedBeaconBlockBody.

func (*BlindedBeaconBlockBody) HashTreeRoot

func (b *BlindedBeaconBlockBody) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BlindedBeaconBlockBody) HashTreeRootWith

func (b *BlindedBeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BlindedBeaconBlockBody) HashTreeRootWithDyn

func (b *BlindedBeaconBlockBody) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*BlindedBeaconBlockBody) HashTreeRootWithDynView

func (t *BlindedBeaconBlockBody) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*BlindedBeaconBlockBody) MarshalJSON

func (b *BlindedBeaconBlockBody) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork BlindedBeaconBlockBody that matches Version.

func (*BlindedBeaconBlockBody) MarshalSSZ

func (b *BlindedBeaconBlockBody) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlockBody) MarshalSSZDyn

func (b *BlindedBeaconBlockBody) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the blinded block body using the view that matches Version.

func (*BlindedBeaconBlockBody) MarshalSSZDynView

func (t *BlindedBeaconBlockBody) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*BlindedBeaconBlockBody) MarshalSSZTo

func (b *BlindedBeaconBlockBody) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlockBody) MarshalYAML

func (b *BlindedBeaconBlockBody) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork BlindedBeaconBlockBody that matches Version.

func (*BlindedBeaconBlockBody) SizeSSZ

func (b *BlindedBeaconBlockBody) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BlindedBeaconBlockBody) SizeSSZDyn

func (b *BlindedBeaconBlockBody) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the blinded block body for the active Version.

func (*BlindedBeaconBlockBody) SizeSSZDynView

func (t *BlindedBeaconBlockBody) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*BlindedBeaconBlockBody) ToView

func (b *BlindedBeaconBlockBody) ToView() (any, error)

ToView returns a fresh fork-specific BlindedBeaconBlockBody populated with b's fields, recursing into nested children via copyByName.

func (*BlindedBeaconBlockBody) UnmarshalJSON

func (b *BlindedBeaconBlockBody) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork BlindedBeaconBlockBody that matches Version. Caller must set Version before calling.

func (*BlindedBeaconBlockBody) UnmarshalSSZ

func (b *BlindedBeaconBlockBody) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BlindedBeaconBlockBody) UnmarshalSSZDyn

func (b *BlindedBeaconBlockBody) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the blinded block body into the view that matches Version.

func (*BlindedBeaconBlockBody) UnmarshalSSZDynView

func (t *BlindedBeaconBlockBody) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*BlindedBeaconBlockBody) UnmarshalYAML

func (b *BlindedBeaconBlockBody) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork BlindedBeaconBlockBody that matches Version. Caller must set Version before calling.

type BlockContents

type BlockContents struct {
	Version   version.DataVersion
	Block     *specall.BeaconBlock
	KZGProofs []deneb.KZGProof
	Blobs     []deneb.Blob
}

BlockContents is a fork-agnostic block contents: the beacon block together with the blob sidecar data (KZG proofs and blobs). Block contents exist as a wire type from Deneb onwards; earlier forks use bare beacon blocks and are not supported by this type.

func (*BlockContents) FromVersioned

func (b *BlockContents) FromVersioned(src *api.VersionedProposal) error

FromVersioned populates b from src. Only unblinded block contents proposals (Deneb onwards) are supported.

func (*BlockContents) FromView

func (b *BlockContents) FromView(view any) error

FromView populates b from a fork-specific BlockContents.

func (*BlockContents) HashTreeRoot

func (b *BlockContents) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BlockContents) HashTreeRootWith

func (b *BlockContents) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BlockContents) HashTreeRootWithDyn

func (b *BlockContents) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*BlockContents) HashTreeRootWithDynView

func (t *BlockContents) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*BlockContents) MarshalJSON

func (b *BlockContents) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork BlockContents that matches Version.

func (*BlockContents) MarshalSSZ

func (b *BlockContents) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BlockContents) MarshalSSZDyn

func (b *BlockContents) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the block contents using the view that matches Version.

func (*BlockContents) MarshalSSZDynView

func (t *BlockContents) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*BlockContents) MarshalSSZTo

func (b *BlockContents) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BlockContents) MarshalYAML

func (b *BlockContents) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork BlockContents that matches Version.

func (*BlockContents) SizeSSZ

func (b *BlockContents) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BlockContents) SizeSSZDyn

func (b *BlockContents) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the block contents for the active Version.

func (*BlockContents) SizeSSZDynView

func (t *BlockContents) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*BlockContents) ToVersioned

func (b *BlockContents) ToVersioned() (*api.VersionedProposal, error)

ToVersioned converts b into a *api.VersionedProposal.

func (*BlockContents) ToView

func (b *BlockContents) ToView() (any, error)

ToView returns a fresh fork-specific BlockContents populated with b's fields, recursing into Block via copyByName.

func (*BlockContents) UnmarshalJSON

func (b *BlockContents) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork BlockContents that matches Version. Caller must set Version before calling.

func (*BlockContents) UnmarshalSSZ

func (b *BlockContents) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BlockContents) UnmarshalSSZDyn

func (b *BlockContents) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the block contents into the view that matches Version.

func (*BlockContents) UnmarshalSSZDynView

func (t *BlockContents) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*BlockContents) UnmarshalYAML

func (b *BlockContents) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork BlockContents that matches Version. Caller must set Version before calling.

type SignedBlindedBeaconBlock

type SignedBlindedBeaconBlock struct {
	Version   version.DataVersion
	Message   *BlindedBeaconBlock
	Signature phase0.BLSSignature
}

SignedBlindedBeaconBlock is a fork-agnostic signed blinded beacon block. Blinded blocks exist as a wire type from Bellatrix up to (excluding) Gloas; other forks are not supported by this type.

func (*SignedBlindedBeaconBlock) FromVersioned

FromVersioned populates s from src.

func (*SignedBlindedBeaconBlock) FromView

func (s *SignedBlindedBeaconBlock) FromView(view any) error

FromView populates s from a fork-specific SignedBlindedBeaconBlock.

func (*SignedBlindedBeaconBlock) HashTreeRoot

func (s *SignedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedBlindedBeaconBlock) HashTreeRootWith

func (s *SignedBlindedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedBlindedBeaconBlock) HashTreeRootWithDyn

func (s *SignedBlindedBeaconBlock) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*SignedBlindedBeaconBlock) HashTreeRootWithDynView

func (t *SignedBlindedBeaconBlock) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*SignedBlindedBeaconBlock) MarshalJSON

func (s *SignedBlindedBeaconBlock) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork SignedBlindedBeaconBlock that matches Version.

func (*SignedBlindedBeaconBlock) MarshalSSZ

func (s *SignedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedBlindedBeaconBlock) MarshalSSZDyn

func (s *SignedBlindedBeaconBlock) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the signed blinded block using the view that matches Version.

func (*SignedBlindedBeaconBlock) MarshalSSZDynView

func (t *SignedBlindedBeaconBlock) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*SignedBlindedBeaconBlock) MarshalSSZTo

func (s *SignedBlindedBeaconBlock) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedBlindedBeaconBlock) MarshalYAML

func (s *SignedBlindedBeaconBlock) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork SignedBlindedBeaconBlock that matches Version.

func (*SignedBlindedBeaconBlock) SizeSSZ

func (s *SignedBlindedBeaconBlock) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedBlindedBeaconBlock) SizeSSZDyn

SizeSSZDyn returns the SSZ size of the signed blinded block for the active Version.

func (*SignedBlindedBeaconBlock) SizeSSZDynView

func (t *SignedBlindedBeaconBlock) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*SignedBlindedBeaconBlock) ToVersioned

ToVersioned converts s into a *api.VersionedSignedBlindedBeaconBlock.

func (*SignedBlindedBeaconBlock) ToView

func (s *SignedBlindedBeaconBlock) ToView() (any, error)

ToView returns a fresh fork-specific SignedBlindedBeaconBlock populated with s's fields, recursing into Message via copyByName.

func (*SignedBlindedBeaconBlock) UnmarshalJSON

func (s *SignedBlindedBeaconBlock) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork SignedBlindedBeaconBlock that matches Version. Caller must set Version before calling.

func (*SignedBlindedBeaconBlock) UnmarshalSSZ

func (s *SignedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedBlindedBeaconBlock) UnmarshalSSZDyn

func (s *SignedBlindedBeaconBlock) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the signed blinded block into the view that matches Version.

func (*SignedBlindedBeaconBlock) UnmarshalSSZDynView

func (t *SignedBlindedBeaconBlock) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*SignedBlindedBeaconBlock) UnmarshalYAML

func (s *SignedBlindedBeaconBlock) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork SignedBlindedBeaconBlock that matches Version. Caller must set Version before calling.

type SignedBlockContents

type SignedBlockContents struct {
	Version     version.DataVersion
	SignedBlock *specall.SignedBeaconBlock
	KZGProofs   []deneb.KZGProof
	Blobs       []deneb.Blob
}

SignedBlockContents is a fork-agnostic signed block contents: the signed beacon block together with the blob sidecar data (KZG proofs and blobs). Block contents exist as a wire type from Deneb onwards; earlier forks submit bare signed beacon blocks and are not supported by this type.

func (*SignedBlockContents) FromVersioned

func (s *SignedBlockContents) FromVersioned(src *api.VersionedSignedProposal) error

FromVersioned populates s from src. Only unblinded block contents proposals (Deneb onwards) are supported.

func (*SignedBlockContents) FromView

func (s *SignedBlockContents) FromView(view any) error

FromView populates s from a fork-specific SignedBlockContents.

func (*SignedBlockContents) HashTreeRoot

func (s *SignedBlockContents) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedBlockContents) HashTreeRootWith

func (s *SignedBlockContents) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedBlockContents) HashTreeRootWithDyn

func (s *SignedBlockContents) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*SignedBlockContents) HashTreeRootWithDynView

func (t *SignedBlockContents) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*SignedBlockContents) MarshalJSON

func (s *SignedBlockContents) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork SignedBlockContents that matches Version.

func (*SignedBlockContents) MarshalSSZ

func (s *SignedBlockContents) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedBlockContents) MarshalSSZDyn

func (s *SignedBlockContents) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the signed block contents using the view that matches Version.

func (*SignedBlockContents) MarshalSSZDynView

func (t *SignedBlockContents) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*SignedBlockContents) MarshalSSZTo

func (s *SignedBlockContents) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedBlockContents) MarshalYAML

func (s *SignedBlockContents) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork SignedBlockContents that matches Version.

func (*SignedBlockContents) SizeSSZ

func (s *SignedBlockContents) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedBlockContents) SizeSSZDyn

func (s *SignedBlockContents) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the signed block contents for the active Version.

func (*SignedBlockContents) SizeSSZDynView

func (t *SignedBlockContents) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*SignedBlockContents) ToVersioned

ToVersioned converts s into a *api.VersionedSignedProposal.

func (*SignedBlockContents) ToView

func (s *SignedBlockContents) ToView() (any, error)

ToView returns a fresh fork-specific SignedBlockContents populated with s's fields, recursing into SignedBlock via copyByName.

func (*SignedBlockContents) UnmarshalJSON

func (s *SignedBlockContents) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork SignedBlockContents that matches Version. Caller must set Version before calling.

func (*SignedBlockContents) UnmarshalSSZ

func (s *SignedBlockContents) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedBlockContents) UnmarshalSSZDyn

func (s *SignedBlockContents) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the signed block contents into the view that matches Version.

func (*SignedBlockContents) UnmarshalSSZDynView

func (t *SignedBlockContents) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*SignedBlockContents) UnmarshalYAML

func (s *SignedBlockContents) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork SignedBlockContents that matches Version. Caller must set Version before calling.

type SignedExecutionPayloadEnvelopeContents

type SignedExecutionPayloadEnvelopeContents struct {
	Version                        version.DataVersion
	SignedExecutionPayloadEnvelope *specall.SignedExecutionPayloadEnvelope
	KZGProofs                      []deneb.KZGProof
	Blobs                          []deneb.Blob
}

SignedExecutionPayloadEnvelopeContents is the fork-agnostic stateless request body for publishing an execution payload envelope: the signed envelope together with the blob sidecar data (KZG cell proofs and blobs). Envelopes exist as a wire type from Gloas onwards; later forks that share the schema reuse the gloas view.

func (*SignedExecutionPayloadEnvelopeContents) FromView

FromView populates s from a fork-specific SignedExecutionPayloadEnvelopeContents.

func (*SignedExecutionPayloadEnvelopeContents) HashTreeRoot

func (s *SignedExecutionPayloadEnvelopeContents) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadEnvelopeContents) HashTreeRootWith

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadEnvelopeContents) HashTreeRootWithDyn

HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.

func (*SignedExecutionPayloadEnvelopeContents) HashTreeRootWithDynView

func (t *SignedExecutionPayloadEnvelopeContents) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

func (*SignedExecutionPayloadEnvelopeContents) MarshalJSON

func (s *SignedExecutionPayloadEnvelopeContents) MarshalJSON() ([]byte, error)

MarshalJSON delegates to the per-fork SignedExecutionPayloadEnvelopeContents that matches Version.

func (*SignedExecutionPayloadEnvelopeContents) MarshalSSZ

func (s *SignedExecutionPayloadEnvelopeContents) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelopeContents) MarshalSSZDyn

MarshalSSZDyn marshals the signed envelope contents using the view that matches Version.

func (*SignedExecutionPayloadEnvelopeContents) MarshalSSZDynView

func (t *SignedExecutionPayloadEnvelopeContents) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

func (*SignedExecutionPayloadEnvelopeContents) MarshalSSZTo

func (s *SignedExecutionPayloadEnvelopeContents) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelopeContents) MarshalYAML

func (s *SignedExecutionPayloadEnvelopeContents) MarshalYAML() ([]byte, error)

MarshalYAML delegates to the per-fork SignedExecutionPayloadEnvelopeContents that matches Version.

func (*SignedExecutionPayloadEnvelopeContents) SizeSSZ

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelopeContents) SizeSSZDyn

SizeSSZDyn returns the SSZ size of the signed envelope contents for the active Version.

func (*SignedExecutionPayloadEnvelopeContents) SizeSSZDynView

func (t *SignedExecutionPayloadEnvelopeContents) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int

func (*SignedExecutionPayloadEnvelopeContents) ToView

ToView returns a fresh fork-specific SignedExecutionPayloadEnvelopeContents populated with s's fields, recursing into the envelope via copyByName.

func (*SignedExecutionPayloadEnvelopeContents) UnmarshalJSON

func (s *SignedExecutionPayloadEnvelopeContents) UnmarshalJSON(data []byte) error

UnmarshalJSON delegates to the per-fork SignedExecutionPayloadEnvelopeContents that matches Version. Caller must set Version before calling.

func (*SignedExecutionPayloadEnvelopeContents) UnmarshalSSZ

func (s *SignedExecutionPayloadEnvelopeContents) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedExecutionPayloadEnvelopeContents) UnmarshalSSZDyn

UnmarshalSSZDyn decodes the signed envelope contents into the view that matches Version.

func (*SignedExecutionPayloadEnvelopeContents) UnmarshalSSZDynView

func (t *SignedExecutionPayloadEnvelopeContents) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error

func (*SignedExecutionPayloadEnvelopeContents) UnmarshalYAML

func (s *SignedExecutionPayloadEnvelopeContents) UnmarshalYAML(data []byte) error

UnmarshalYAML delegates to the per-fork SignedExecutionPayloadEnvelopeContents that matches Version. Caller must set Version before calling.

Jump to

Keyboard shortcuts

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