all

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateAndProof

type AggregateAndProof struct {
	Version         version.DataVersion
	AggregatorIndex phase0.ValidatorIndex
	Aggregate       *Attestation
	SelectionProof  phase0.BLSSignature
}

AggregateAndProof is a fork-agnostic aggregate and proof. The wrapped Attestation gains CommitteeBits from Electra onwards.

func (*AggregateAndProof) FromVersioned

func (a *AggregateAndProof) FromVersioned(src *spec.VersionedAggregateAndProof) error

FromVersioned populates a from src.

func (*AggregateAndProof) FromView

func (a *AggregateAndProof) FromView(view any) error

FromView populates a from a fork-specific AggregateAndProof.

func (*AggregateAndProof) HashTreeRoot

func (a *AggregateAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*AggregateAndProof) HashTreeRootWith

func (a *AggregateAndProof) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*AggregateAndProof) HashTreeRootWithDyn

func (a *AggregateAndProof) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*AggregateAndProof) HashTreeRootWithDynView

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

func (*AggregateAndProof) MarshalJSON

func (a *AggregateAndProof) MarshalJSON() ([]byte, error)

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

func (*AggregateAndProof) MarshalSSZ

func (a *AggregateAndProof) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*AggregateAndProof) MarshalSSZDyn

func (a *AggregateAndProof) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the proof using the view that matches Version.

func (*AggregateAndProof) MarshalSSZDynView

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

func (*AggregateAndProof) MarshalSSZTo

func (a *AggregateAndProof) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*AggregateAndProof) MarshalYAML

func (a *AggregateAndProof) MarshalYAML() ([]byte, error)

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

func (*AggregateAndProof) SizeSSZ

func (a *AggregateAndProof) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*AggregateAndProof) SizeSSZDyn

func (a *AggregateAndProof) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the proof for the active Version.

func (*AggregateAndProof) SizeSSZDynView

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

func (*AggregateAndProof) ToVersioned

ToVersioned converts a into a *spec.VersionedAggregateAndProof.

func (*AggregateAndProof) ToView

func (a *AggregateAndProof) ToView() (any, error)

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

func (*AggregateAndProof) UnmarshalJSON

func (a *AggregateAndProof) UnmarshalJSON(data []byte) error

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

func (*AggregateAndProof) UnmarshalSSZ

func (a *AggregateAndProof) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*AggregateAndProof) UnmarshalSSZDyn

func (a *AggregateAndProof) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the proof into the view that matches Version.

func (*AggregateAndProof) UnmarshalSSZDynView

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

func (*AggregateAndProof) UnmarshalYAML

func (a *AggregateAndProof) UnmarshalYAML(data []byte) error

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

type Attestation

type Attestation struct {
	Version         version.DataVersion
	AggregationBits bitfield.Bitlist
	Data            *phase0.AttestationData
	Signature       phase0.BLSSignature
	CommitteeBits   bitfield.Bitvector64
}

Attestation is a fork-agnostic attestation containing the union of fields from every fork. CommitteeBits is populated from Electra onwards.

func (*Attestation) FromVersioned

func (a *Attestation) FromVersioned(src *spec.VersionedAttestation) error

FromVersioned populates a from src. Note that src.ValidatorIndex is not represented on the agnostic type and is silently dropped.

func (*Attestation) FromView

func (a *Attestation) FromView(view any) error

FromView populates a from a fork-specific Attestation.

func (*Attestation) HashTreeRoot

func (a *Attestation) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*Attestation) HashTreeRootWith

func (a *Attestation) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*Attestation) HashTreeRootWithDyn

func (a *Attestation) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*Attestation) HashTreeRootWithDynView

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

func (*Attestation) MarshalJSON

func (a *Attestation) MarshalJSON() ([]byte, error)

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

func (*Attestation) MarshalSSZ

func (a *Attestation) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*Attestation) MarshalSSZDyn

func (a *Attestation) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the attestation using the view that matches Version.

func (*Attestation) MarshalSSZDynView

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

func (*Attestation) MarshalSSZTo

func (a *Attestation) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*Attestation) MarshalYAML

func (a *Attestation) MarshalYAML() ([]byte, error)

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

func (*Attestation) SizeSSZ

func (a *Attestation) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*Attestation) SizeSSZDyn

func (a *Attestation) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the attestation for the active Version.

func (*Attestation) SizeSSZDynView

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

func (*Attestation) ToVersioned

func (a *Attestation) ToVersioned() (*spec.VersionedAttestation, error)

ToVersioned converts a into a *spec.VersionedAttestation. The VersionedAttestation.ValidatorIndex field is metadata not represented on the agnostic type; it is left nil and must be populated by the caller if needed.

func (*Attestation) ToView

func (a *Attestation) ToView() (any, error)

ToView returns a fresh fork-specific Attestation populated with a's fields.

func (*Attestation) UnmarshalJSON

func (a *Attestation) UnmarshalJSON(data []byte) error

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

func (*Attestation) UnmarshalSSZ

func (a *Attestation) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*Attestation) UnmarshalSSZDyn

func (a *Attestation) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the attestation into the view that matches Version.

func (*Attestation) UnmarshalSSZDynView

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

func (*Attestation) UnmarshalYAML

func (a *Attestation) UnmarshalYAML(data []byte) error

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

type AttesterSlashing

type AttesterSlashing struct {
	Version      version.DataVersion
	Attestation1 *IndexedAttestation
	Attestation2 *IndexedAttestation
}

AttesterSlashing is a fork-agnostic attester slashing. The wrapped IndexedAttestation grows in capacity from Electra onwards.

func (*AttesterSlashing) FromVersioned

func (a *AttesterSlashing) FromVersioned(src *spec.VersionedAttesterSlashing) error

FromVersioned populates a from src.

func (*AttesterSlashing) FromView

func (a *AttesterSlashing) FromView(view any) error

FromView populates a from a fork-specific AttesterSlashing.

func (*AttesterSlashing) HashTreeRoot

func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*AttesterSlashing) HashTreeRootWith

func (a *AttesterSlashing) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*AttesterSlashing) HashTreeRootWithDyn

func (a *AttesterSlashing) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*AttesterSlashing) HashTreeRootWithDynView

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

func (*AttesterSlashing) MarshalJSON

func (a *AttesterSlashing) MarshalJSON() ([]byte, error)

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

func (*AttesterSlashing) MarshalSSZ

func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*AttesterSlashing) MarshalSSZDyn

func (a *AttesterSlashing) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the slashing using the view that matches Version.

func (*AttesterSlashing) MarshalSSZDynView

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

func (*AttesterSlashing) MarshalSSZTo

func (a *AttesterSlashing) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*AttesterSlashing) MarshalYAML

func (a *AttesterSlashing) MarshalYAML() ([]byte, error)

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

func (*AttesterSlashing) SizeSSZ

func (a *AttesterSlashing) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*AttesterSlashing) SizeSSZDyn

func (a *AttesterSlashing) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the slashing for the active Version.

func (*AttesterSlashing) SizeSSZDynView

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

func (*AttesterSlashing) ToVersioned

ToVersioned converts a into a *spec.VersionedAttesterSlashing.

func (*AttesterSlashing) ToView

func (a *AttesterSlashing) ToView() (any, error)

ToView returns a fresh fork-specific AttesterSlashing populated with a's fields, recursing into the inner indexed attestations via copyByName.

func (*AttesterSlashing) UnmarshalJSON

func (a *AttesterSlashing) UnmarshalJSON(data []byte) error

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

func (*AttesterSlashing) UnmarshalSSZ

func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*AttesterSlashing) UnmarshalSSZDyn

func (a *AttesterSlashing) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the slashing into the view that matches Version.

func (*AttesterSlashing) UnmarshalSSZDynView

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

func (*AttesterSlashing) UnmarshalYAML

func (a *AttesterSlashing) UnmarshalYAML(data []byte) error

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

type BeaconBlock

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

BeaconBlock is a fork-agnostic beacon block. The Body's contents depend on Version.

func (*BeaconBlock) FromVersioned

func (b *BeaconBlock) FromVersioned(src *spec.VersionedBeaconBlock) error

FromVersioned populates b from src.

func (*BeaconBlock) FromView

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

FromView populates b from a fork-specific BeaconBlock.

func (*BeaconBlock) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BeaconBlock) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BeaconBlock) HashTreeRootWithDyn

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

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

func (*BeaconBlock) HashTreeRootWithDynView

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

func (*BeaconBlock) MarshalJSON

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

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

func (*BeaconBlock) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BeaconBlock) MarshalSSZDyn

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

MarshalSSZDyn marshals the block using the view that matches Version.

func (*BeaconBlock) MarshalSSZDynView

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

func (*BeaconBlock) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BeaconBlock) MarshalYAML

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

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

func (*BeaconBlock) SizeSSZ

func (b *BeaconBlock) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BeaconBlock) SizeSSZDyn

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

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

func (*BeaconBlock) SizeSSZDynView

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

func (*BeaconBlock) ToVersioned

func (b *BeaconBlock) ToVersioned() (*spec.VersionedBeaconBlock, error)

ToVersioned converts b into a *spec.VersionedBeaconBlock.

func (*BeaconBlock) ToView

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

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

func (*BeaconBlock) UnmarshalJSON

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

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

func (*BeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BeaconBlock) UnmarshalSSZDyn

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

UnmarshalSSZDyn decodes the block into the view that matches Version.

func (*BeaconBlock) UnmarshalSSZDynView

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

func (*BeaconBlock) UnmarshalYAML

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

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

type BeaconBlockBody

type BeaconBlockBody struct {
	Version                   version.DataVersion
	RANDAOReveal              phase0.BLSSignature
	ETH1Data                  *phase0.ETH1Data
	Graffiti                  [32]byte
	ProposerSlashings         []*phase0.ProposerSlashing
	AttesterSlashings         []*AttesterSlashing
	Attestations              []*Attestation
	Deposits                  []*phase0.Deposit
	VoluntaryExits            []*phase0.SignedVoluntaryExit
	SyncAggregate             *altair.SyncAggregate
	ExecutionPayload          *ExecutionPayload
	BLSToExecutionChanges     []*capella.SignedBLSToExecutionChange
	BlobKZGCommitments        []deneb.KZGCommitment
	ExecutionRequests         *electra.ExecutionRequests
	SignedExecutionPayloadBid *SignedExecutionPayloadBid
	PayloadAttestations       []*gloas.PayloadAttestation
	ParentExecutionRequests   *electra.ExecutionRequests
}

BeaconBlockBody is a fork-agnostic beacon block body containing the union of fields from every fork. Fields populated on a given instance depend on Version.

func (*BeaconBlockBody) FromVersioned

func (b *BeaconBlockBody) FromVersioned(src *spec.VersionedBeaconBlockBody) error

FromVersioned populates b from src.

func (*BeaconBlockBody) FromView

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

FromView populates b from a fork-specific BeaconBlockBody.

func (*BeaconBlockBody) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BeaconBlockBody) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BeaconBlockBody) HashTreeRootWithDyn

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

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

func (*BeaconBlockBody) HashTreeRootWithDynView

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

func (*BeaconBlockBody) MarshalJSON

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

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

func (*BeaconBlockBody) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BeaconBlockBody) MarshalSSZDyn

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

MarshalSSZDyn marshals the body using the view that matches Version.

func (*BeaconBlockBody) MarshalSSZDynView

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

func (*BeaconBlockBody) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BeaconBlockBody) MarshalYAML

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

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

func (*BeaconBlockBody) SizeSSZ

func (b *BeaconBlockBody) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BeaconBlockBody) SizeSSZDyn

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

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

func (*BeaconBlockBody) SizeSSZDynView

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

func (*BeaconBlockBody) ToVersioned

func (b *BeaconBlockBody) ToVersioned() (*spec.VersionedBeaconBlockBody, error)

ToVersioned converts b into a *spec.VersionedBeaconBlockBody.

func (*BeaconBlockBody) ToView

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

ToView returns a fresh fork-specific BeaconBlockBody populated with b's fields, recursing into nested versionable children via their ToView. ToView returns a fresh fork-specific BeaconBlockBody populated with b's fields. All field copies — including nested versionable children — go through copyByName, which walks dst fields by name and recurses into nested pointers/slices.

func (*BeaconBlockBody) UnmarshalJSON

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

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

func (*BeaconBlockBody) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BeaconBlockBody) UnmarshalSSZDyn

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

UnmarshalSSZDyn decodes the body into the view that matches Version.

func (*BeaconBlockBody) UnmarshalSSZDynView

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

func (*BeaconBlockBody) UnmarshalYAML

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

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

type BeaconState

type BeaconState struct {
	Version                       version.DataVersion
	GenesisTime                   uint64
	GenesisValidatorsRoot         phase0.Root
	Slot                          phase0.Slot
	Fork                          *phase0.Fork
	LatestBlockHeader             *phase0.BeaconBlockHeader
	BlockRoots                    []phase0.Root
	StateRoots                    []phase0.Root
	HistoricalRoots               []phase0.Root
	ETH1Data                      *phase0.ETH1Data
	ETH1DataVotes                 []*phase0.ETH1Data
	ETH1DepositIndex              uint64
	Validators                    []*phase0.Validator
	Balances                      []phase0.Gwei
	RANDAOMixes                   []phase0.Root
	Slashings                     []phase0.Gwei
	PreviousEpochAttestations     []*phase0.PendingAttestation
	CurrentEpochAttestations      []*phase0.PendingAttestation
	PreviousEpochParticipation    []altair.ParticipationFlags
	CurrentEpochParticipation     []altair.ParticipationFlags
	JustificationBits             bitfield.Bitvector4
	PreviousJustifiedCheckpoint   *phase0.Checkpoint
	CurrentJustifiedCheckpoint    *phase0.Checkpoint
	FinalizedCheckpoint           *phase0.Checkpoint
	InactivityScores              []uint64
	CurrentSyncCommittee          *altair.SyncCommittee
	NextSyncCommittee             *altair.SyncCommittee
	LatestExecutionPayloadHeader  *ExecutionPayloadHeader
	LatestBlockHash               phase0.Hash32
	NextWithdrawalIndex           capella.WithdrawalIndex
	NextWithdrawalValidatorIndex  phase0.ValidatorIndex
	HistoricalSummaries           []*capella.HistoricalSummary
	DepositRequestsStartIndex     uint64
	DepositBalanceToConsume       phase0.Gwei
	ExitBalanceToConsume          phase0.Gwei
	EarliestExitEpoch             phase0.Epoch
	ConsolidationBalanceToConsume phase0.Gwei
	EarliestConsolidationEpoch    phase0.Epoch
	PendingDeposits               []*electra.PendingDeposit
	PendingPartialWithdrawals     []*electra.PendingPartialWithdrawal
	PendingConsolidations         []*electra.PendingConsolidation
	ProposerLookahead             []phase0.ValidatorIndex
	Builders                      []*gloas.Builder
	NextWithdrawalBuilderIndex    gloas.BuilderIndex
	ExecutionPayloadAvailability  []uint8
	BuilderPendingPayments        []*gloas.BuilderPendingPayment
	BuilderPendingWithdrawals     []*gloas.BuilderPendingWithdrawal
	LatestExecutionPayloadBid     *ExecutionPayloadBid
	PayloadExpectedWithdrawals    []*capella.Withdrawal
	PTCWindow                     [][]phase0.ValidatorIndex
}

BeaconState is a fork-agnostic beacon state containing the union of fields from every fork. Fields populated on a given instance depend on Version.

func (*BeaconState) FromVersioned

func (b *BeaconState) FromVersioned(src *spec.VersionedBeaconState) error

FromVersioned populates b from src by extracting the field matching src.Version and feeding it through b.FromView.

func (*BeaconState) FromView

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

FromView populates b from a fork-specific BeaconState. The view's concrete type determines Version (when not already pinned). All fields are copied via copyByName; populateVersion seeds Version on freshly-allocated nested children.

func (*BeaconState) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*BeaconState) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*BeaconState) HashTreeRootWithDyn

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

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

func (*BeaconState) HashTreeRootWithDynView

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

func (*BeaconState) MarshalJSON

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

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

func (*BeaconState) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*BeaconState) MarshalSSZDyn

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

MarshalSSZDyn marshals the state using the view that matches Version.

func (*BeaconState) MarshalSSZDynView

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

func (*BeaconState) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*BeaconState) MarshalYAML

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

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

func (*BeaconState) SizeSSZ

func (b *BeaconState) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*BeaconState) SizeSSZDyn

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

SizeSSZDyn returns the SSZ size of the state for the active Version.

func (*BeaconState) SizeSSZDynView

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

func (*BeaconState) ToVersioned

func (b *BeaconState) ToVersioned() (*spec.VersionedBeaconState, error)

ToVersioned converts b into a *spec.VersionedBeaconState by placing the fork-specific view (via b.ToView) into the field matching b.Version.

func (*BeaconState) ToView

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

ToView returns a fresh fork-specific BeaconState populated with b's fields. All field copies — including nested versionable children — go through copyByName, which walks dst fields by name and recurses into nested pointers/slices.

func (*BeaconState) UnmarshalJSON

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

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

func (*BeaconState) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*BeaconState) UnmarshalSSZDyn

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

UnmarshalSSZDyn decodes the state into the view that matches Version.

func (*BeaconState) UnmarshalSSZDynView

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

func (*BeaconState) UnmarshalYAML

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

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

type ExecutionPayload

type ExecutionPayload struct {
	Version         version.DataVersion
	ParentHash      phase0.Hash32
	FeeRecipient    bellatrix.ExecutionAddress
	StateRoot       phase0.Root
	ReceiptsRoot    phase0.Root
	LogsBloom       [256]byte
	PrevRandao      [32]byte
	BlockNumber     uint64
	GasLimit        uint64
	GasUsed         uint64
	Timestamp       uint64
	ExtraData       []byte
	BaseFeePerGasLE [32]byte
	BaseFeePerGas   *uint256.Int
	BlockHash       phase0.Hash32
	Transactions    []bellatrix.Transaction
	Withdrawals     []*capella.Withdrawal
	BlobGasUsed     uint64
	ExcessBlobGas   uint64
	BlockAccessList gloas.BlockAccessList
	SlotNumber      uint64
}

ExecutionPayload is a fork-agnostic execution payload containing the union of fields from every fork. Fields populated on a given instance depend on Version.

func (*ExecutionPayload) FromVersioned

func (e *ExecutionPayload) FromVersioned(src *spec.VersionedExecutionPayload) error

FromVersioned populates e from src.

func (*ExecutionPayload) FromView

func (e *ExecutionPayload) FromView(view any) error

FromView populates e from a fork-specific ExecutionPayload.

func (*ExecutionPayload) HashTreeRoot

func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*ExecutionPayload) HashTreeRootWith

func (e *ExecutionPayload) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*ExecutionPayload) HashTreeRootWithDyn

func (e *ExecutionPayload) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*ExecutionPayload) HashTreeRootWithDynView

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

func (*ExecutionPayload) MarshalJSON

func (e *ExecutionPayload) MarshalJSON() ([]byte, error)

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

func (*ExecutionPayload) MarshalSSZ

func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayload) MarshalSSZDyn

func (e *ExecutionPayload) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the payload using the view that matches Version.

func (*ExecutionPayload) MarshalSSZDynView

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

func (*ExecutionPayload) MarshalSSZTo

func (e *ExecutionPayload) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*ExecutionPayload) MarshalYAML

func (e *ExecutionPayload) MarshalYAML() ([]byte, error)

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

func (*ExecutionPayload) SizeSSZ

func (e *ExecutionPayload) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayload) SizeSSZDyn

func (e *ExecutionPayload) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the payload for the active Version.

func (*ExecutionPayload) SizeSSZDynView

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

func (*ExecutionPayload) ToVersioned

ToVersioned converts e into a *spec.VersionedExecutionPayload.

func (*ExecutionPayload) ToView

func (e *ExecutionPayload) ToView() (any, error)

ToView returns a fresh fork-specific ExecutionPayload populated with e's ToView returns a fresh fork-specific ExecutionPayload populated with e's fields.

func (*ExecutionPayload) UnmarshalJSON

func (e *ExecutionPayload) UnmarshalJSON(data []byte) error

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

func (*ExecutionPayload) UnmarshalSSZ

func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*ExecutionPayload) UnmarshalSSZDyn

func (e *ExecutionPayload) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the payload into the view that matches Version.

func (*ExecutionPayload) UnmarshalSSZDynView

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

func (*ExecutionPayload) UnmarshalYAML

func (e *ExecutionPayload) UnmarshalYAML(data []byte) error

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

type ExecutionPayloadBid

type ExecutionPayloadBid struct {
	Version               version.DataVersion
	ParentBlockHash       phase0.Hash32
	ParentBlockRoot       phase0.Root
	BlockHash             phase0.Hash32
	PrevRandao            phase0.Root
	FeeRecipient          bellatrix.ExecutionAddress
	GasLimit              uint64
	BuilderIndex          gloas.BuilderIndex
	Slot                  phase0.Slot
	Value                 phase0.Gwei
	ExecutionPayment      phase0.Gwei
	BlobKZGCommitments    []deneb.KZGCommitment
	ExecutionRequestsRoot phase0.Root
	InclusionListBits     []byte
}

ExecutionPayloadBid is a fork-agnostic execution payload bid (EIP-7732 and later) containing the union of fields from every fork. Fields populated on a given instance depend on Version.

func (*ExecutionPayloadBid) FromView

func (e *ExecutionPayloadBid) FromView(view any) error

FromView populates e from a fork-specific ExecutionPayloadBid.

func (*ExecutionPayloadBid) HashTreeRoot

func (e *ExecutionPayloadBid) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*ExecutionPayloadBid) HashTreeRootWith

func (e *ExecutionPayloadBid) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*ExecutionPayloadBid) HashTreeRootWithDyn

func (e *ExecutionPayloadBid) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*ExecutionPayloadBid) HashTreeRootWithDynView

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

func (*ExecutionPayloadBid) MarshalJSON

func (e *ExecutionPayloadBid) MarshalJSON() ([]byte, error)

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

func (*ExecutionPayloadBid) MarshalSSZ

func (e *ExecutionPayloadBid) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadBid) MarshalSSZDyn

func (e *ExecutionPayloadBid) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the bid using the view that matches Version.

func (*ExecutionPayloadBid) MarshalSSZDynView

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

func (*ExecutionPayloadBid) MarshalSSZTo

func (e *ExecutionPayloadBid) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*ExecutionPayloadBid) MarshalYAML

func (e *ExecutionPayloadBid) MarshalYAML() ([]byte, error)

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

func (*ExecutionPayloadBid) SizeSSZ

func (e *ExecutionPayloadBid) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadBid) SizeSSZDyn

func (e *ExecutionPayloadBid) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the bid for the active Version.

func (*ExecutionPayloadBid) SizeSSZDynView

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

func (*ExecutionPayloadBid) ToView

func (e *ExecutionPayloadBid) ToView() (any, error)

ToView returns a fresh fork-specific ExecutionPayloadBid populated with e's ToView returns a fresh fork-specific ExecutionPayloadBid populated with e's fields.

func (*ExecutionPayloadBid) UnmarshalJSON

func (e *ExecutionPayloadBid) UnmarshalJSON(data []byte) error

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

func (*ExecutionPayloadBid) UnmarshalSSZ

func (e *ExecutionPayloadBid) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*ExecutionPayloadBid) UnmarshalSSZDyn

func (e *ExecutionPayloadBid) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the bid into the view that matches Version.

func (*ExecutionPayloadBid) UnmarshalSSZDynView

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

func (*ExecutionPayloadBid) UnmarshalYAML

func (e *ExecutionPayloadBid) UnmarshalYAML(data []byte) error

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

type ExecutionPayloadEnvelope

type ExecutionPayloadEnvelope struct {
	Version               version.DataVersion
	Payload               *ExecutionPayload
	ExecutionRequests     *electra.ExecutionRequests
	BuilderIndex          gloas.BuilderIndex
	BeaconBlockRoot       phase0.Root
	ParentBeaconBlockRoot phase0.Root
}

ExecutionPayloadEnvelope is a fork-agnostic execution payload envelope (EIP-7732 and later). Currently only gloas defines this container; later forks that share the schema will reuse the gloas view.

func (*ExecutionPayloadEnvelope) FromVersioned

FromVersioned populates e from src by extracting the field matching src.Version and feeding it through e.FromView.

func (*ExecutionPayloadEnvelope) FromView

func (e *ExecutionPayloadEnvelope) FromView(view any) error

FromView populates e from a fork-specific ExecutionPayloadEnvelope.

func (*ExecutionPayloadEnvelope) HashTreeRoot

func (e *ExecutionPayloadEnvelope) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*ExecutionPayloadEnvelope) HashTreeRootWith

func (e *ExecutionPayloadEnvelope) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*ExecutionPayloadEnvelope) HashTreeRootWithDyn

func (e *ExecutionPayloadEnvelope) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*ExecutionPayloadEnvelope) HashTreeRootWithDynView

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

func (*ExecutionPayloadEnvelope) MarshalJSON

func (e *ExecutionPayloadEnvelope) MarshalJSON() ([]byte, error)

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

func (*ExecutionPayloadEnvelope) MarshalSSZ

func (e *ExecutionPayloadEnvelope) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadEnvelope) MarshalSSZDyn

func (e *ExecutionPayloadEnvelope) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the envelope using the view that matches Version.

func (*ExecutionPayloadEnvelope) MarshalSSZDynView

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

func (*ExecutionPayloadEnvelope) MarshalSSZTo

func (e *ExecutionPayloadEnvelope) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*ExecutionPayloadEnvelope) MarshalYAML

func (e *ExecutionPayloadEnvelope) MarshalYAML() ([]byte, error)

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

func (*ExecutionPayloadEnvelope) SizeSSZ

func (e *ExecutionPayloadEnvelope) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadEnvelope) SizeSSZDyn

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

func (*ExecutionPayloadEnvelope) SizeSSZDynView

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

func (*ExecutionPayloadEnvelope) ToVersioned

ToVersioned converts e into a *spec.VersionedExecutionPayloadEnvelope by placing the fork-specific view (via e.ToView) into the field matching e.Version.

func (*ExecutionPayloadEnvelope) ToView

func (e *ExecutionPayloadEnvelope) ToView() (any, error)

ToView returns a fresh fork-specific ExecutionPayloadEnvelope populated with e's fields, recursing into Payload via copyByName.

func (*ExecutionPayloadEnvelope) UnmarshalJSON

func (e *ExecutionPayloadEnvelope) UnmarshalJSON(data []byte) error

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

func (*ExecutionPayloadEnvelope) UnmarshalSSZ

func (e *ExecutionPayloadEnvelope) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*ExecutionPayloadEnvelope) UnmarshalSSZDyn

func (e *ExecutionPayloadEnvelope) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the envelope into the view that matches Version.

func (*ExecutionPayloadEnvelope) UnmarshalSSZDynView

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

func (*ExecutionPayloadEnvelope) UnmarshalYAML

func (e *ExecutionPayloadEnvelope) UnmarshalYAML(data []byte) error

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

type ExecutionPayloadHeader

type ExecutionPayloadHeader struct {
	Version          version.DataVersion
	ParentHash       phase0.Hash32
	FeeRecipient     bellatrix.ExecutionAddress
	StateRoot        phase0.Root
	ReceiptsRoot     phase0.Root
	LogsBloom        [256]byte
	PrevRandao       [32]byte
	BlockNumber      uint64
	GasLimit         uint64
	GasUsed          uint64
	Timestamp        uint64
	ExtraData        []byte
	BaseFeePerGasLE  [32]byte
	BaseFeePerGas    *uint256.Int
	BlockHash        phase0.Hash32
	TransactionsRoot phase0.Root
	WithdrawalsRoot  phase0.Root
	BlobGasUsed      uint64
	ExcessBlobGas    uint64
}

ExecutionPayloadHeader is a fork-agnostic execution payload header containing the union of fields from every fork. Fields populated on a given instance depend on Version.

func (*ExecutionPayloadHeader) FromView

func (e *ExecutionPayloadHeader) FromView(view any) error

FromView populates e from a fork-specific ExecutionPayloadHeader.

func (*ExecutionPayloadHeader) HashTreeRoot

func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*ExecutionPayloadHeader) HashTreeRootWith

func (e *ExecutionPayloadHeader) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*ExecutionPayloadHeader) HashTreeRootWithDyn

func (e *ExecutionPayloadHeader) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*ExecutionPayloadHeader) HashTreeRootWithDynView

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

func (*ExecutionPayloadHeader) MarshalJSON

func (e *ExecutionPayloadHeader) MarshalJSON() ([]byte, error)

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

func (*ExecutionPayloadHeader) MarshalSSZ

func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadHeader) MarshalSSZDyn

func (e *ExecutionPayloadHeader) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the header using the view that matches Version.

func (*ExecutionPayloadHeader) MarshalSSZDynView

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

func (*ExecutionPayloadHeader) MarshalSSZTo

func (e *ExecutionPayloadHeader) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*ExecutionPayloadHeader) MarshalYAML

func (e *ExecutionPayloadHeader) MarshalYAML() ([]byte, error)

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

func (*ExecutionPayloadHeader) SizeSSZ

func (e *ExecutionPayloadHeader) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*ExecutionPayloadHeader) SizeSSZDyn

func (e *ExecutionPayloadHeader) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the header for the active Version.

func (*ExecutionPayloadHeader) SizeSSZDynView

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

func (*ExecutionPayloadHeader) ToView

func (e *ExecutionPayloadHeader) ToView() (any, error)

ToView returns a fresh fork-specific ExecutionPayloadHeader populated with ToView returns a fresh fork-specific ExecutionPayloadHeader populated with e's fields.

func (*ExecutionPayloadHeader) UnmarshalJSON

func (e *ExecutionPayloadHeader) UnmarshalJSON(data []byte) error

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

func (*ExecutionPayloadHeader) UnmarshalSSZ

func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*ExecutionPayloadHeader) UnmarshalSSZDyn

func (e *ExecutionPayloadHeader) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the header into the view that matches Version.

func (*ExecutionPayloadHeader) UnmarshalSSZDynView

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

func (*ExecutionPayloadHeader) UnmarshalYAML

func (e *ExecutionPayloadHeader) UnmarshalYAML(data []byte) error

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

type IndexedAttestation

type IndexedAttestation struct {
	Version          version.DataVersion
	AttestingIndices []uint64
	Data             *phase0.AttestationData
	Signature        phase0.BLSSignature
}

IndexedAttestation is a fork-agnostic indexed attestation. The AttestingIndices ssz-max grows from Electra onwards.

func (*IndexedAttestation) FromVersioned

FromVersioned populates i from src.

func (*IndexedAttestation) FromView

func (i *IndexedAttestation) FromView(view any) error

FromView populates i from a fork-specific IndexedAttestation.

func (*IndexedAttestation) HashTreeRoot

func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)

HashTreeRoot implements the fastssz.HashRoot interface.

func (*IndexedAttestation) HashTreeRootWith

func (i *IndexedAttestation) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*IndexedAttestation) HashTreeRootWithDyn

func (i *IndexedAttestation) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

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

func (*IndexedAttestation) HashTreeRootWithDynView

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

func (*IndexedAttestation) MarshalJSON

func (i *IndexedAttestation) MarshalJSON() ([]byte, error)

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

func (*IndexedAttestation) MarshalSSZ

func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)

MarshalSSZ implements the fastssz.Marshaler interface.

func (*IndexedAttestation) MarshalSSZDyn

func (i *IndexedAttestation) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)

MarshalSSZDyn marshals the indexed attestation using the view that matches Version.

func (*IndexedAttestation) MarshalSSZDynView

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

func (*IndexedAttestation) MarshalSSZTo

func (i *IndexedAttestation) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*IndexedAttestation) MarshalYAML

func (i *IndexedAttestation) MarshalYAML() ([]byte, error)

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

func (*IndexedAttestation) SizeSSZ

func (i *IndexedAttestation) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*IndexedAttestation) SizeSSZDyn

func (i *IndexedAttestation) SizeSSZDyn(ds sszutils.DynamicSpecs) int

SizeSSZDyn returns the SSZ size of the indexed attestation for the active Version.

func (*IndexedAttestation) SizeSSZDynView

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

func (*IndexedAttestation) ToVersioned

ToVersioned converts i into a *spec.VersionedIndexedAttestation.

func (*IndexedAttestation) ToView

func (i *IndexedAttestation) ToView() (any, error)

ToView returns a fresh fork-specific IndexedAttestation populated with i's fields. The concrete return type matches viewType().

func (*IndexedAttestation) UnmarshalJSON

func (i *IndexedAttestation) UnmarshalJSON(data []byte) error

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

func (*IndexedAttestation) UnmarshalSSZ

func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*IndexedAttestation) UnmarshalSSZDyn

func (i *IndexedAttestation) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error

UnmarshalSSZDyn decodes the indexed attestation into the view that matches Version.

func (*IndexedAttestation) UnmarshalSSZDynView

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

func (*IndexedAttestation) UnmarshalYAML

func (i *IndexedAttestation) UnmarshalYAML(data []byte) error

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

type SignedAggregateAndProof

type SignedAggregateAndProof struct {
	Version   version.DataVersion
	Message   *AggregateAndProof
	Signature phase0.BLSSignature
}

SignedAggregateAndProof is a fork-agnostic signed aggregate and proof.

func (*SignedAggregateAndProof) FromVersioned

FromVersioned populates s from src.

func (*SignedAggregateAndProof) FromView

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

FromView populates s from a fork-specific SignedAggregateAndProof.

func (*SignedAggregateAndProof) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedAggregateAndProof) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedAggregateAndProof) HashTreeRootWithDyn

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

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

func (*SignedAggregateAndProof) HashTreeRootWithDynView

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

func (*SignedAggregateAndProof) MarshalJSON

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

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

func (*SignedAggregateAndProof) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedAggregateAndProof) MarshalSSZDyn

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

MarshalSSZDyn marshals the signed proof using the view that matches Version.

func (*SignedAggregateAndProof) MarshalSSZDynView

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

func (*SignedAggregateAndProof) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedAggregateAndProof) MarshalYAML

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

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

func (*SignedAggregateAndProof) SizeSSZ

func (s *SignedAggregateAndProof) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedAggregateAndProof) SizeSSZDyn

SizeSSZDyn returns the SSZ size of the signed proof for the active Version.

func (*SignedAggregateAndProof) SizeSSZDynView

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

func (*SignedAggregateAndProof) ToVersioned

ToVersioned converts s into a *spec.VersionedSignedAggregateAndProof.

func (*SignedAggregateAndProof) ToView

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

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

func (*SignedAggregateAndProof) UnmarshalJSON

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

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

func (*SignedAggregateAndProof) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedAggregateAndProof) UnmarshalSSZDyn

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

UnmarshalSSZDyn decodes the signed proof into the view that matches Version.

func (*SignedAggregateAndProof) UnmarshalSSZDynView

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

func (*SignedAggregateAndProof) UnmarshalYAML

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

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

type SignedBeaconBlock

type SignedBeaconBlock struct {
	Version   version.DataVersion
	Message   *BeaconBlock
	Signature phase0.BLSSignature
}

SignedBeaconBlock is a fork-agnostic signed beacon block.

func (*SignedBeaconBlock) FromVersioned

func (s *SignedBeaconBlock) FromVersioned(src *spec.VersionedSignedBeaconBlock) error

FromVersioned populates s from src.

func (*SignedBeaconBlock) FromView

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

FromView populates s from a fork-specific SignedBeaconBlock.

func (*SignedBeaconBlock) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedBeaconBlock) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedBeaconBlock) HashTreeRootWithDyn

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

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

func (*SignedBeaconBlock) HashTreeRootWithDynView

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

func (*SignedBeaconBlock) MarshalJSON

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

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

func (*SignedBeaconBlock) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedBeaconBlock) MarshalSSZDyn

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

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

func (*SignedBeaconBlock) MarshalSSZDynView

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

func (*SignedBeaconBlock) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedBeaconBlock) MarshalYAML

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

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

func (*SignedBeaconBlock) SizeSSZ

func (s *SignedBeaconBlock) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedBeaconBlock) SizeSSZDyn

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

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

func (*SignedBeaconBlock) SizeSSZDynView

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

func (*SignedBeaconBlock) ToVersioned

ToVersioned converts s into a *spec.VersionedSignedBeaconBlock.

func (*SignedBeaconBlock) ToView

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

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

func (*SignedBeaconBlock) UnmarshalJSON

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

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

func (*SignedBeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedBeaconBlock) UnmarshalSSZDyn

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

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

func (*SignedBeaconBlock) UnmarshalSSZDynView

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

func (*SignedBeaconBlock) UnmarshalYAML

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

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

type SignedExecutionPayloadBid

type SignedExecutionPayloadBid struct {
	Version   version.DataVersion
	Message   *ExecutionPayloadBid
	Signature phase0.BLSSignature
}

SignedExecutionPayloadBid is a fork-agnostic signed execution payload bid.

func (*SignedExecutionPayloadBid) FromVersioned

FromVersioned populates s from src.

func (*SignedExecutionPayloadBid) FromView

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

FromView populates s from a fork-specific SignedExecutionPayloadBid.

func (*SignedExecutionPayloadBid) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadBid) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadBid) HashTreeRootWithDyn

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

func (*SignedExecutionPayloadBid) HashTreeRootWithDynView

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

func (*SignedExecutionPayloadBid) MarshalJSON

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

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

func (*SignedExecutionPayloadBid) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadBid) MarshalSSZDyn

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

MarshalSSZDyn marshals the signed bid using the view that matches Version.

func (*SignedExecutionPayloadBid) MarshalSSZDynView

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

func (*SignedExecutionPayloadBid) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadBid) MarshalYAML

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

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

func (*SignedExecutionPayloadBid) SizeSSZ

func (s *SignedExecutionPayloadBid) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadBid) SizeSSZDyn

SizeSSZDyn returns the SSZ size of the signed bid for the active Version.

func (*SignedExecutionPayloadBid) SizeSSZDynView

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

func (*SignedExecutionPayloadBid) ToVersioned

ToVersioned converts s into a *spec.VersionedSignedExecutionPayloadBid.

func (*SignedExecutionPayloadBid) ToView

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

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

func (*SignedExecutionPayloadBid) UnmarshalJSON

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

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

func (*SignedExecutionPayloadBid) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedExecutionPayloadBid) UnmarshalSSZDyn

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

UnmarshalSSZDyn decodes the signed bid into the view that matches Version.

func (*SignedExecutionPayloadBid) UnmarshalSSZDynView

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

func (*SignedExecutionPayloadBid) UnmarshalYAML

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

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

type SignedExecutionPayloadEnvelope

type SignedExecutionPayloadEnvelope struct {
	Version   version.DataVersion
	Message   *ExecutionPayloadEnvelope
	Signature phase0.BLSSignature
}

SignedExecutionPayloadEnvelope is a fork-agnostic signed execution payload envelope. Currently only gloas defines this container; later forks that share the schema will reuse the gloas view.

func (*SignedExecutionPayloadEnvelope) FromVersioned

FromVersioned populates s from src by extracting the field matching src.Version and feeding it through s.FromView.

func (*SignedExecutionPayloadEnvelope) FromView

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

FromView populates s from a fork-specific SignedExecutionPayloadEnvelope.

func (*SignedExecutionPayloadEnvelope) HashTreeRoot

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

HashTreeRoot implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadEnvelope) HashTreeRootWith

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

HashTreeRootWith implements the fastssz.HashRoot interface.

func (*SignedExecutionPayloadEnvelope) HashTreeRootWithDyn

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

func (*SignedExecutionPayloadEnvelope) HashTreeRootWithDynView

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

func (*SignedExecutionPayloadEnvelope) MarshalJSON

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

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

func (*SignedExecutionPayloadEnvelope) MarshalSSZ

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

MarshalSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelope) MarshalSSZDyn

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

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

func (*SignedExecutionPayloadEnvelope) MarshalSSZDynView

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

func (*SignedExecutionPayloadEnvelope) MarshalSSZTo

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

MarshalSSZTo implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelope) MarshalYAML

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

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

func (*SignedExecutionPayloadEnvelope) SizeSSZ

func (s *SignedExecutionPayloadEnvelope) SizeSSZ() int

SizeSSZ implements the fastssz.Marshaler interface.

func (*SignedExecutionPayloadEnvelope) SizeSSZDyn

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

func (*SignedExecutionPayloadEnvelope) SizeSSZDynView

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

func (*SignedExecutionPayloadEnvelope) ToVersioned

ToVersioned converts s into a *spec.VersionedSignedExecutionPayloadEnvelope by placing the fork-specific view (via s.ToView) into the field matching s.Version.

func (*SignedExecutionPayloadEnvelope) ToView

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

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

func (*SignedExecutionPayloadEnvelope) UnmarshalJSON

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

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

func (*SignedExecutionPayloadEnvelope) UnmarshalSSZ

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

UnmarshalSSZ implements the fastssz.Unmarshaler interface.

func (*SignedExecutionPayloadEnvelope) UnmarshalSSZDyn

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

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

func (*SignedExecutionPayloadEnvelope) UnmarshalSSZDynView

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

func (*SignedExecutionPayloadEnvelope) UnmarshalYAML

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

UnmarshalYAML delegates to the per-fork SignedExecutionPayloadEnvelope 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