generic

package
v1.20.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const BeaconBlockBodyExecutionPayloadChunksCeil uint64 = 32
View Source
const BeaconBlockBodyExecutionPayloadIndex uint64 = 9
View Source
const BeaconBlockBodyExecutionPayloadWithdrawalsIndex uint64 = 14
View Source
const BeaconBlockBodyIndex uint64 = 4
View Source
const BeaconBlockChunksCeil uint64 = 8
View Source
const BeaconBlockHeaderStateRootGeneralizedIndex uint64 = 11 // Container with 5 fields, so gid 8 is the first field. We want the 4th field, so gid 8 + 3 = 11
View Source
const BeaconBlockWithdrawalsArrayMax uint64 = 16
View Source
const BeaconStateBlockRootsFieldIndex uint64 = 5
View Source
const BeaconStateBlockRootsMaxLength uint64 = 1 << 13
View Source
const BeaconStateHistoricalSummariesFieldIndex uint64 = 27
View Source
const BeaconStateHistoricalSummariesMaxLength uint64 = 1 << 24
View Source
const BeaconStateSlotIndex uint64 = 2

BeaconStateSlotIndex is the field offset of the Slot field in the BeaconState struct

View Source
const BeaconStateStateRootsFieldIndex uint64 = 6
View Source
const BeaconStateStateRootsMaxLength uint64 = 1 << 13
View Source
const BeaconStateValidatorsIndex uint64 = 11

BeaconStateValidatorsIndex is the field offset of the Validators field in the BeaconState struct

View Source
const SlotsPerHistoricalRoot uint64 = 8192

Variables

SSZ is the process-wide dynamic-ssz instance used for all beacon state and block encoding, hashing and merkle tree operations. The mainnet preset is baked into the static ssz-size/ssz-max struct tags, so no spec overrides are needed. Type descriptors are cached per instance — always use this singleton. The stream reader buffer is sized for beacon state downloads (~310 MB on mainnet); the 2 KB default would make far too many small reads.

Functions

func ConcatGindices added in v1.20.8

func ConcatGindices(steps ...uint64) uint64

ConcatGindices concatenates generalized-index path steps the way remerkleable does: each step is a gindex relative to its own subtree root (root = 1).

func ContainerFieldGindex added in v1.20.8

func ContainerFieldGindex(fieldCount, fieldIndex uint64) uint64

ContainerFieldGindex returns the generalized index of field `fieldIndex` inside a standard SSZ Container that has `fieldCount` fields.

Fields are left-aligned in a binary tree of width nextPowerOfTwo(fieldCount), so the gindex is nextPowerOfTwo(fieldCount) + fieldIndex (root = 1).

Pre-Gloas only. Progressive containers use ProgressiveContainerFieldGindex.

func GetGeneralizedIndexForListElement added in v1.20.8

func GetGeneralizedIndexForListElement(listRootGindex uint64, capacity uint64, elementIndex uint64) uint64

GetGeneralizedIndexForListElement returns the gindex of an element inside a fixed-capacity SSZ List[T, N] (with length mixin) that sits at listRootGindex. capacity must be a power of two (typically the list's N).

Applies under both classic Containers and ProgressiveContainers once you have the list field's root gindex (historical_summaries stays a normal List in Gloas).

func GetGeneralizedIndexForProgressiveListElement added in v1.20.8

func GetGeneralizedIndexForProgressiveListElement(listRootGindex uint64, elementIndex uint64) uint64

GetGeneralizedIndexForProgressiveListElement returns the gindex of an element inside a ProgressiveList that itself sits at listRootGindex in a larger tree (e.g. a ProgressiveContainer field). See ProgressiveListElementGindex for packing notes on basic vs composite element types.

Gloas only for ProgressiveList fields. Fixed-capacity List navigation (including Gloas historical_summaries) uses GetGeneralizedIndexForListElement in gindex.go.

func GetGeneralizedIndexForValidator

func GetGeneralizedIndexForValidator(index uint64, validatorsArrayIndex uint64) uint64

GetGeneralizedIndexForValidator returns the gindex of validators[index] when validators is a fixed-capacity SSZ List[Validator, VALIDATOR_REGISTRY_LIMIT] (capacity 2^40) sitting at validatorsArrayIndex in the parent tree.

Pre-Gloas only. Gloas validators are a ProgressiveList; use GetGeneralizedIndexForProgressiveListElement (or gloas.GetGeneralizedIndexForValidator).

func GetGeneralizedIndexForVectorElement added in v1.20.8

func GetGeneralizedIndexForVectorElement(vectorRootGindex uint64, length uint64, elementIndex uint64) uint64

GetGeneralizedIndexForVectorElement returns the gindex of an element inside a fixed-length SSZ Vector[T, N] that sits at vectorRootGindex. length must be a power of two.

Applies under both classic Containers and ProgressiveContainers once you have the vector field's root gindex (e.g. block_roots).

func ProgressiveChunkGindex added in v1.20.8

func ProgressiveChunkGindex(index uint64) uint64

ProgressiveChunkGindex returns the generalized index of chunk `index` within a progressive Merkle tree whose root is gindex 1 (EIP-7916).

func ProgressiveContainerFieldGindex added in v1.20.8

func ProgressiveContainerFieldGindex(fieldIndex uint64) uint64

ProgressiveContainerFieldGindex returns the generalized index of field `fieldIndex` (its ssz-index) within a ProgressiveContainer whose root is gindex 1. The progressive tree of field roots is the left child; active_fields is mixed in on the right.

func ProgressiveListElementGindex added in v1.20.8

func ProgressiveListElementGindex(elementIndex uint64) uint64

ProgressiveListElementGindex returns the generalized index of element `elementIndex` within a ProgressiveList whose root is gindex 1. The progressive tree of elements is the left child; the list length is mixed in on the right.

This is the index of the Merkle chunk for that element. For ProgressiveList of composite types (e.g. Validator), each element is one chunk so elementIndex is used directly. For basic types that pack into 32-byte chunks (e.g. uint64 packs 4 per leaf), pass the packed chunk index instead of the raw element index.

Types

type Attestation

type Attestation struct {
	AggregationBits []byte           `json:"aggregation_bits" ssz:"bitlist" ssz-type:"bitlist" ssz-max:"2048"`
	Data            *AttestationData `json:"data"`
	Signature       [96]byte         `json:"signature" ssz-size:"96"`
}

func (*Attestation) HashTreeRootDyn added in v1.20.8

func (t *Attestation) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Attestation using dynamic specifications.

func (*Attestation) HashTreeRootWithDyn added in v1.20.8

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

HashTreeRootWithDyn computes the SSZ hash tree root of the *Attestation using dynamic specifications and the given hash walker.

func (*Attestation) MarshalSSZDyn added in v1.20.8

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

MarshalSSZDyn marshals the *Attestation to SSZ-encoded bytes using dynamic specifications.

func (*Attestation) MarshalSSZEncoder added in v1.20.8

func (t *Attestation) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Attestation to the given SSZ encoder using dynamic specifications.

func (*Attestation) SizeSSZ

func (t *Attestation) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Attestation.

func (*Attestation) SizeSSZDyn added in v1.20.8

func (t *Attestation) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Attestation using dynamic specifications.

func (*Attestation) UnmarshalSSZDecoder added in v1.20.8

func (t *Attestation) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Attestation from the given SSZ decoder using dynamic specifications.

func (*Attestation) UnmarshalSSZDyn added in v1.20.8

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

UnmarshalSSZDyn unmarshals the *Attestation from SSZ-encoded bytes using dynamic specifications.

type AttestationData

type AttestationData struct {
	Slot            uint64      `json:"slot"`
	Index           uint64      `json:"index"`
	BeaconBlockHash [32]byte    `json:"beacon_block_root" ssz-size:"32"`
	Source          *Checkpoint `json:"source"`
	Target          *Checkpoint `json:"target"`
}

func (*AttestationData) HashTreeRootDyn added in v1.20.8

func (t *AttestationData) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *AttestationData using dynamic specifications.

func (*AttestationData) HashTreeRootWithDyn added in v1.20.8

func (t *AttestationData) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *AttestationData using dynamic specifications and the given hash walker.

func (*AttestationData) MarshalSSZDyn added in v1.20.8

func (t *AttestationData) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *AttestationData to SSZ-encoded bytes using dynamic specifications.

func (*AttestationData) MarshalSSZEncoder added in v1.20.8

func (t *AttestationData) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *AttestationData to the given SSZ encoder using dynamic specifications.

func (*AttestationData) SizeSSZ

func (t *AttestationData) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *AttestationData.

func (*AttestationData) SizeSSZDyn added in v1.20.8

func (t *AttestationData) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *AttestationData using dynamic specifications.

func (*AttestationData) UnmarshalSSZDecoder added in v1.20.8

func (t *AttestationData) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *AttestationData from the given SSZ decoder using dynamic specifications.

func (*AttestationData) UnmarshalSSZDyn added in v1.20.8

func (t *AttestationData) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *AttestationData from SSZ-encoded bytes using dynamic specifications.

type AttesterSlashing

type AttesterSlashing struct {
	Attestation1 *IndexedAttestation `json:"attestation_1"`
	Attestation2 *IndexedAttestation `json:"attestation_2"`
}

func (*AttesterSlashing) HashTreeRootDyn added in v1.20.8

func (t *AttesterSlashing) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *AttesterSlashing using dynamic specifications.

func (*AttesterSlashing) HashTreeRootWithDyn added in v1.20.8

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

HashTreeRootWithDyn computes the SSZ hash tree root of the *AttesterSlashing using dynamic specifications and the given hash walker.

func (*AttesterSlashing) MarshalSSZDyn added in v1.20.8

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

MarshalSSZDyn marshals the *AttesterSlashing to SSZ-encoded bytes using dynamic specifications.

func (*AttesterSlashing) MarshalSSZEncoder added in v1.20.8

func (t *AttesterSlashing) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *AttesterSlashing to the given SSZ encoder using dynamic specifications.

func (*AttesterSlashing) SizeSSZDyn added in v1.20.8

func (t *AttesterSlashing) SizeSSZDyn(ds sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *AttesterSlashing using dynamic specifications.

func (*AttesterSlashing) UnmarshalSSZDecoder added in v1.20.8

func (t *AttesterSlashing) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *AttesterSlashing from the given SSZ decoder using dynamic specifications.

func (*AttesterSlashing) UnmarshalSSZDyn added in v1.20.8

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

UnmarshalSSZDyn unmarshals the *AttesterSlashing from SSZ-encoded bytes using dynamic specifications.

type BLSToExecutionChange

type BLSToExecutionChange struct {
	ValidatorIndex     uint64   `json:"validator_index"`
	FromBLSPubKey      [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
	ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}

func (*BLSToExecutionChange) HashTreeRoot

func (t *BLSToExecutionChange) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *BLSToExecutionChange.

func (*BLSToExecutionChange) HashTreeRootDyn added in v1.20.8

func (t *BLSToExecutionChange) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *BLSToExecutionChange using dynamic specifications.

func (*BLSToExecutionChange) HashTreeRootWith

func (t *BLSToExecutionChange) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *BLSToExecutionChange using the given hash walker.

func (*BLSToExecutionChange) HashTreeRootWithDyn added in v1.20.8

func (t *BLSToExecutionChange) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *BLSToExecutionChange using dynamic specifications and the given hash walker.

func (*BLSToExecutionChange) MarshalSSZDyn added in v1.20.8

func (t *BLSToExecutionChange) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *BLSToExecutionChange to SSZ-encoded bytes using dynamic specifications.

func (*BLSToExecutionChange) MarshalSSZEncoder added in v1.20.8

func (t *BLSToExecutionChange) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *BLSToExecutionChange to the given SSZ encoder using dynamic specifications.

func (*BLSToExecutionChange) MarshalSSZTo

func (t *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *BLSToExecutionChange to SSZ-encoded bytes, appending to the provided buffer.

func (*BLSToExecutionChange) SizeSSZ

func (t *BLSToExecutionChange) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *BLSToExecutionChange.

func (*BLSToExecutionChange) SizeSSZDyn added in v1.20.8

func (t *BLSToExecutionChange) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *BLSToExecutionChange using dynamic specifications.

func (*BLSToExecutionChange) UnmarshalSSZ

func (t *BLSToExecutionChange) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *BLSToExecutionChange from SSZ-encoded bytes.

func (*BLSToExecutionChange) UnmarshalSSZDecoder added in v1.20.8

func (t *BLSToExecutionChange) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *BLSToExecutionChange from the given SSZ decoder using dynamic specifications.

func (*BLSToExecutionChange) UnmarshalSSZDyn added in v1.20.8

func (t *BLSToExecutionChange) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *BLSToExecutionChange from SSZ-encoded bytes using dynamic specifications.

type BeaconBlockHeader

type BeaconBlockHeader struct {
	Slot          uint64 `json:"slot"`
	ProposerIndex uint64 `json:"proposer_index"`
	ParentRoot    []byte `json:"parent_root" ssz-size:"32"`
	StateRoot     []byte `json:"state_root" ssz-size:"32"`
	BodyRoot      []byte `json:"body_root" ssz-size:"32"`
}

func (*BeaconBlockHeader) HashTreeRoot

func (t *BeaconBlockHeader) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *BeaconBlockHeader.

func (*BeaconBlockHeader) HashTreeRootDyn added in v1.20.8

func (t *BeaconBlockHeader) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *BeaconBlockHeader using dynamic specifications.

func (*BeaconBlockHeader) HashTreeRootWith

func (t *BeaconBlockHeader) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlockHeader using the given hash walker.

func (*BeaconBlockHeader) HashTreeRootWithDyn added in v1.20.8

func (t *BeaconBlockHeader) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *BeaconBlockHeader using dynamic specifications and the given hash walker.

func (*BeaconBlockHeader) MarshalSSZDyn added in v1.20.8

func (t *BeaconBlockHeader) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *BeaconBlockHeader to SSZ-encoded bytes using dynamic specifications.

func (*BeaconBlockHeader) MarshalSSZEncoder added in v1.20.8

func (t *BeaconBlockHeader) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *BeaconBlockHeader to the given SSZ encoder using dynamic specifications.

func (*BeaconBlockHeader) MarshalSSZTo

func (t *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *BeaconBlockHeader to SSZ-encoded bytes, appending to the provided buffer.

func (*BeaconBlockHeader) SizeSSZ

func (t *BeaconBlockHeader) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *BeaconBlockHeader.

func (*BeaconBlockHeader) SizeSSZDyn added in v1.20.8

func (t *BeaconBlockHeader) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *BeaconBlockHeader using dynamic specifications.

func (*BeaconBlockHeader) UnmarshalSSZ

func (t *BeaconBlockHeader) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *BeaconBlockHeader from SSZ-encoded bytes.

func (*BeaconBlockHeader) UnmarshalSSZDecoder added in v1.20.8

func (t *BeaconBlockHeader) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *BeaconBlockHeader from the given SSZ decoder using dynamic specifications.

func (*BeaconBlockHeader) UnmarshalSSZDyn added in v1.20.8

func (t *BeaconBlockHeader) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *BeaconBlockHeader from SSZ-encoded bytes using dynamic specifications.

type Checkpoint

type Checkpoint struct {
	Epoch uint64 `json:"epoch"`
	Root  []byte `json:"root" ssz-size:"32"`
}

func (*Checkpoint) HashTreeRoot

func (t *Checkpoint) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Checkpoint.

func (*Checkpoint) HashTreeRootDyn added in v1.20.8

func (t *Checkpoint) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Checkpoint using dynamic specifications.

func (*Checkpoint) HashTreeRootWith

func (t *Checkpoint) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Checkpoint using the given hash walker.

func (*Checkpoint) HashTreeRootWithDyn added in v1.20.8

func (t *Checkpoint) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Checkpoint using dynamic specifications and the given hash walker.

func (*Checkpoint) MarshalSSZDyn added in v1.20.8

func (t *Checkpoint) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Checkpoint to SSZ-encoded bytes using dynamic specifications.

func (*Checkpoint) MarshalSSZEncoder added in v1.20.8

func (t *Checkpoint) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Checkpoint to the given SSZ encoder using dynamic specifications.

func (*Checkpoint) MarshalSSZTo

func (t *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Checkpoint to SSZ-encoded bytes, appending to the provided buffer.

func (*Checkpoint) SizeSSZ

func (t *Checkpoint) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Checkpoint.

func (*Checkpoint) SizeSSZDyn added in v1.20.8

func (t *Checkpoint) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Checkpoint using dynamic specifications.

func (*Checkpoint) UnmarshalSSZ

func (t *Checkpoint) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Checkpoint from SSZ-encoded bytes.

func (*Checkpoint) UnmarshalSSZDecoder added in v1.20.8

func (t *Checkpoint) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Checkpoint from the given SSZ decoder using dynamic specifications.

func (*Checkpoint) UnmarshalSSZDyn added in v1.20.8

func (t *Checkpoint) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Checkpoint from SSZ-encoded bytes using dynamic specifications.

type Deposit

type Deposit struct {
	Proof [][]byte `ssz-size:"33,32"`
	Data  *DepositData
}

func (*Deposit) HashTreeRootDyn added in v1.20.8

func (t *Deposit) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Deposit using dynamic specifications.

func (*Deposit) HashTreeRootWithDyn added in v1.20.8

func (t *Deposit) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Deposit using dynamic specifications and the given hash walker.

func (*Deposit) MarshalSSZDyn added in v1.20.8

func (t *Deposit) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Deposit to SSZ-encoded bytes using dynamic specifications.

func (*Deposit) MarshalSSZEncoder added in v1.20.8

func (t *Deposit) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Deposit to the given SSZ encoder using dynamic specifications.

func (*Deposit) SizeSSZ

func (t *Deposit) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Deposit.

func (*Deposit) SizeSSZDyn added in v1.20.8

func (t *Deposit) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Deposit using dynamic specifications.

func (*Deposit) UnmarshalSSZDecoder added in v1.20.8

func (t *Deposit) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Deposit from the given SSZ decoder using dynamic specifications.

func (*Deposit) UnmarshalSSZDyn added in v1.20.8

func (t *Deposit) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Deposit from SSZ-encoded bytes using dynamic specifications.

type DepositData

type DepositData struct {
	PublicKey             []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64 `json:"amount"`
	Signature             []byte `json:"signature" ssz-size:"96"`
}

Deposit data (including signature)

func (*DepositData) HashTreeRoot

func (t *DepositData) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *DepositData.

func (*DepositData) HashTreeRootDyn added in v1.20.8

func (t *DepositData) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *DepositData using dynamic specifications.

func (*DepositData) HashTreeRootWith

func (t *DepositData) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *DepositData using the given hash walker.

func (*DepositData) HashTreeRootWithDyn added in v1.20.8

func (t *DepositData) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *DepositData using dynamic specifications and the given hash walker.

func (*DepositData) MarshalSSZDyn added in v1.20.8

func (t *DepositData) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *DepositData to SSZ-encoded bytes using dynamic specifications.

func (*DepositData) MarshalSSZEncoder added in v1.20.8

func (t *DepositData) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *DepositData to the given SSZ encoder using dynamic specifications.

func (*DepositData) MarshalSSZTo

func (t *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *DepositData to SSZ-encoded bytes, appending to the provided buffer.

func (*DepositData) SizeSSZ

func (t *DepositData) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *DepositData.

func (*DepositData) SizeSSZDyn added in v1.20.8

func (t *DepositData) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *DepositData using dynamic specifications.

func (*DepositData) UnmarshalSSZ

func (t *DepositData) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *DepositData from SSZ-encoded bytes.

func (*DepositData) UnmarshalSSZDecoder added in v1.20.8

func (t *DepositData) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *DepositData from the given SSZ decoder using dynamic specifications.

func (*DepositData) UnmarshalSSZDyn added in v1.20.8

func (t *DepositData) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *DepositData from SSZ-encoded bytes using dynamic specifications.

type DepositDataNoSignature

type DepositDataNoSignature struct {
	PublicKey             []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64 `json:"amount"`
}

Deposit data (with no signature field)

func (*DepositDataNoSignature) HashTreeRoot

func (t *DepositDataNoSignature) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *DepositDataNoSignature.

func (*DepositDataNoSignature) HashTreeRootDyn added in v1.20.8

func (t *DepositDataNoSignature) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *DepositDataNoSignature using dynamic specifications.

func (*DepositDataNoSignature) HashTreeRootWith

func (t *DepositDataNoSignature) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *DepositDataNoSignature using the given hash walker.

func (*DepositDataNoSignature) HashTreeRootWithDyn added in v1.20.8

func (t *DepositDataNoSignature) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *DepositDataNoSignature using dynamic specifications and the given hash walker.

func (*DepositDataNoSignature) MarshalSSZDyn added in v1.20.8

func (t *DepositDataNoSignature) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *DepositDataNoSignature to SSZ-encoded bytes using dynamic specifications.

func (*DepositDataNoSignature) MarshalSSZEncoder added in v1.20.8

func (t *DepositDataNoSignature) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *DepositDataNoSignature to the given SSZ encoder using dynamic specifications.

func (*DepositDataNoSignature) MarshalSSZTo

func (t *DepositDataNoSignature) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *DepositDataNoSignature to SSZ-encoded bytes, appending to the provided buffer.

func (*DepositDataNoSignature) SizeSSZ

func (t *DepositDataNoSignature) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *DepositDataNoSignature.

func (*DepositDataNoSignature) SizeSSZDyn added in v1.20.8

func (t *DepositDataNoSignature) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *DepositDataNoSignature using dynamic specifications.

func (*DepositDataNoSignature) UnmarshalSSZ

func (t *DepositDataNoSignature) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *DepositDataNoSignature from SSZ-encoded bytes.

func (*DepositDataNoSignature) UnmarshalSSZDecoder added in v1.20.8

func (t *DepositDataNoSignature) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *DepositDataNoSignature from the given SSZ decoder using dynamic specifications.

func (*DepositDataNoSignature) UnmarshalSSZDyn added in v1.20.8

func (t *DepositDataNoSignature) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *DepositDataNoSignature from SSZ-encoded bytes using dynamic specifications.

type Eth1Data

type Eth1Data struct {
	DepositRoot  []byte `json:"deposit_root" ssz-size:"32"`
	DepositCount uint64 `json:"deposit_count"`
	BlockHash    []byte `json:"block_hash" ssz-size:"32"`
}

func (*Eth1Data) HashTreeRoot

func (t *Eth1Data) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Eth1Data.

func (*Eth1Data) HashTreeRootDyn added in v1.20.8

func (t *Eth1Data) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Eth1Data using dynamic specifications.

func (*Eth1Data) HashTreeRootWith

func (t *Eth1Data) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Eth1Data using the given hash walker.

func (*Eth1Data) HashTreeRootWithDyn added in v1.20.8

func (t *Eth1Data) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Eth1Data using dynamic specifications and the given hash walker.

func (*Eth1Data) MarshalSSZDyn added in v1.20.8

func (t *Eth1Data) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Eth1Data to SSZ-encoded bytes using dynamic specifications.

func (*Eth1Data) MarshalSSZEncoder added in v1.20.8

func (t *Eth1Data) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Eth1Data to the given SSZ encoder using dynamic specifications.

func (*Eth1Data) MarshalSSZTo

func (t *Eth1Data) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Eth1Data to SSZ-encoded bytes, appending to the provided buffer.

func (*Eth1Data) SizeSSZ

func (t *Eth1Data) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Eth1Data.

func (*Eth1Data) SizeSSZDyn added in v1.20.8

func (t *Eth1Data) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Eth1Data using dynamic specifications.

func (*Eth1Data) UnmarshalSSZ

func (t *Eth1Data) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Eth1Data from SSZ-encoded bytes.

func (*Eth1Data) UnmarshalSSZDecoder added in v1.20.8

func (t *Eth1Data) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Eth1Data from the given SSZ decoder using dynamic specifications.

func (*Eth1Data) UnmarshalSSZDyn added in v1.20.8

func (t *Eth1Data) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Eth1Data from SSZ-encoded bytes using dynamic specifications.

type ExecutionPayload

type ExecutionPayload struct {
	ParentHash    [32]byte      `ssz-size:"32" json:"parent_hash"`
	FeeRecipient  [20]byte      `ssz-size:"20" json:"fee_recipient"`
	StateRoot     [32]byte      `ssz-size:"32" json:"state_root"`
	ReceiptsRoot  [32]byte      `ssz-size:"32" json:"receipts_root"`
	LogsBloom     [256]byte     `ssz-size:"256" json:"logs_bloom"`
	PrevRandao    [32]byte      `ssz-size:"32" json:"prev_randao"`
	BlockNumber   uint64        `json:"block_number"`
	GasLimit      uint64        `json:"gas_limit"`
	GasUsed       uint64        `json:"gas_used"`
	Timestamp     uint64        `json:"timestamp"`
	ExtraData     []byte        `ssz-max:"32" json:"extra_data"`
	BaseFeePerGas Uint256       `ssz-size:"32" json:"base_fee_per_gas"`
	BlockHash     [32]byte      `ssz-size:"32" json:"block_hash"`
	Transactions  [][]byte      `ssz-max:"1048576,1073741824" ssz-size:"?,?" json:"transactions"`
	Withdrawals   []*Withdrawal `json:"withdrawals" ssz-max:"16"`
	BlobGasUsed   uint64        `json:"blob_gas_used"`
	ExcessBlobGas uint64        `json:"excess_blob_gas"`
}

func (*ExecutionPayload) HashTreeRootDyn added in v1.20.8

func (t *ExecutionPayload) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *ExecutionPayload using dynamic specifications.

func (*ExecutionPayload) HashTreeRootWithDyn added in v1.20.8

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

HashTreeRootWithDyn computes the SSZ hash tree root of the *ExecutionPayload using dynamic specifications and the given hash walker.

func (*ExecutionPayload) MarshalSSZDyn added in v1.20.8

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

MarshalSSZDyn marshals the *ExecutionPayload to SSZ-encoded bytes using dynamic specifications.

func (*ExecutionPayload) MarshalSSZEncoder added in v1.20.8

func (t *ExecutionPayload) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *ExecutionPayload to the given SSZ encoder using dynamic specifications.

func (*ExecutionPayload) SizeSSZ

func (t *ExecutionPayload) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *ExecutionPayload.

func (*ExecutionPayload) SizeSSZDyn added in v1.20.8

func (t *ExecutionPayload) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *ExecutionPayload using dynamic specifications.

func (*ExecutionPayload) UnmarshalSSZDecoder added in v1.20.8

func (t *ExecutionPayload) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *ExecutionPayload from the given SSZ decoder using dynamic specifications.

func (*ExecutionPayload) UnmarshalSSZDyn added in v1.20.8

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

UnmarshalSSZDyn unmarshals the *ExecutionPayload from SSZ-encoded bytes using dynamic specifications.

type ExecutionPayloadHeader

type ExecutionPayloadHeader struct {
	ParentHash       [32]byte  `json:"parent_hash" ssz-size:"32"`
	FeeRecipient     [20]byte  `json:"fee_recipient" ssz-size:"20"`
	StateRoot        [32]byte  `json:"state_root" ssz-size:"32"`
	ReceiptsRoot     [32]byte  `json:"receipts_root" ssz-size:"32"`
	LogsBloom        [256]byte `json:"logs_bloom" ssz-size:"256"`
	PrevRandao       [32]byte  `json:"prev_randao" ssz-size:"32"`
	BlockNumber      uint64    `json:"block_number"`
	GasLimit         uint64    `json:"gas_limit"`
	GasUsed          uint64    `json:"gas_used"`
	Timestamp        uint64    `json:"timestamp"`
	ExtraData        []byte    `json:"extra_data" ssz-max:"32"`
	BaseFeePerGas    Uint256   `json:"base_fee_per_gas" ssz-size:"32"`
	BlockHash        [32]byte  `json:"block_hash" ssz-size:"32"`
	TransactionsRoot [32]byte  `json:"transactions_root" ssz-size:"32"`
	WithdrawalRoot   [32]byte  `json:"withdrawals_root" ssz-size:"32"`
	BlobGasUsed      uint64    `json:"blob_gas_used"`
	ExcessBlobGas    uint64    `json:"excess_blob_gas"`
}

func (*ExecutionPayloadHeader) HashTreeRoot

func (t *ExecutionPayloadHeader) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *ExecutionPayloadHeader.

func (*ExecutionPayloadHeader) HashTreeRootDyn added in v1.20.8

func (t *ExecutionPayloadHeader) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *ExecutionPayloadHeader using dynamic specifications.

func (*ExecutionPayloadHeader) HashTreeRootWith

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

HashTreeRootWith computes the SSZ hash tree root of the *ExecutionPayloadHeader using the given hash walker.

func (*ExecutionPayloadHeader) HashTreeRootWithDyn added in v1.20.8

func (t *ExecutionPayloadHeader) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *ExecutionPayloadHeader using dynamic specifications and the given hash walker.

func (*ExecutionPayloadHeader) MarshalSSZDyn added in v1.20.8

func (t *ExecutionPayloadHeader) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *ExecutionPayloadHeader to SSZ-encoded bytes using dynamic specifications.

func (*ExecutionPayloadHeader) MarshalSSZEncoder added in v1.20.8

func (t *ExecutionPayloadHeader) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *ExecutionPayloadHeader to the given SSZ encoder using dynamic specifications.

func (*ExecutionPayloadHeader) MarshalSSZTo

func (t *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *ExecutionPayloadHeader to SSZ-encoded bytes, appending to the provided buffer.

func (*ExecutionPayloadHeader) SizeSSZ

func (t *ExecutionPayloadHeader) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *ExecutionPayloadHeader.

func (*ExecutionPayloadHeader) SizeSSZDyn added in v1.20.8

func (t *ExecutionPayloadHeader) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *ExecutionPayloadHeader using dynamic specifications.

func (*ExecutionPayloadHeader) UnmarshalSSZ

func (t *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *ExecutionPayloadHeader from SSZ-encoded bytes.

func (*ExecutionPayloadHeader) UnmarshalSSZDecoder added in v1.20.8

func (t *ExecutionPayloadHeader) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *ExecutionPayloadHeader from the given SSZ decoder using dynamic specifications.

func (*ExecutionPayloadHeader) UnmarshalSSZDyn added in v1.20.8

func (t *ExecutionPayloadHeader) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *ExecutionPayloadHeader from SSZ-encoded bytes using dynamic specifications.

type Fork

type Fork struct {
	PreviousVersion []byte `json:"previous_version" ssz-size:"4"`
	CurrentVersion  []byte `json:"current_version" ssz-size:"4"`
	Epoch           uint64 `json:"epoch"`
}

func (*Fork) HashTreeRoot

func (t *Fork) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Fork.

func (*Fork) HashTreeRootDyn added in v1.20.8

func (t *Fork) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Fork using dynamic specifications.

func (*Fork) HashTreeRootWith

func (t *Fork) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Fork using the given hash walker.

func (*Fork) HashTreeRootWithDyn added in v1.20.8

func (t *Fork) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Fork using dynamic specifications and the given hash walker.

func (*Fork) MarshalSSZDyn added in v1.20.8

func (t *Fork) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Fork to SSZ-encoded bytes using dynamic specifications.

func (*Fork) MarshalSSZEncoder added in v1.20.8

func (t *Fork) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Fork to the given SSZ encoder using dynamic specifications.

func (*Fork) MarshalSSZTo

func (t *Fork) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Fork to SSZ-encoded bytes, appending to the provided buffer.

func (*Fork) SizeSSZ

func (t *Fork) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Fork.

func (*Fork) SizeSSZDyn added in v1.20.8

func (t *Fork) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Fork using dynamic specifications.

func (*Fork) UnmarshalSSZ

func (t *Fork) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Fork from SSZ-encoded bytes.

func (*Fork) UnmarshalSSZDecoder added in v1.20.8

func (t *Fork) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Fork from the given SSZ decoder using dynamic specifications.

func (*Fork) UnmarshalSSZDyn added in v1.20.8

func (t *Fork) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Fork from SSZ-encoded bytes using dynamic specifications.

type HistoricalSummary

type HistoricalSummary struct {
	BlockSummaryRoot [32]byte `json:"block_summary_root" ssz-size:"32"`
	StateSummaryRoot [32]byte `json:"state_summary_root" ssz-size:"32"`
}

func (*HistoricalSummary) HashTreeRoot

func (t *HistoricalSummary) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *HistoricalSummary.

func (*HistoricalSummary) HashTreeRootDyn added in v1.20.8

func (t *HistoricalSummary) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *HistoricalSummary using dynamic specifications.

func (*HistoricalSummary) HashTreeRootWith

func (t *HistoricalSummary) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *HistoricalSummary using the given hash walker.

func (*HistoricalSummary) HashTreeRootWithDyn added in v1.20.8

func (t *HistoricalSummary) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *HistoricalSummary using dynamic specifications and the given hash walker.

func (*HistoricalSummary) MarshalSSZDyn added in v1.20.8

func (t *HistoricalSummary) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *HistoricalSummary to SSZ-encoded bytes using dynamic specifications.

func (*HistoricalSummary) MarshalSSZEncoder added in v1.20.8

func (t *HistoricalSummary) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *HistoricalSummary to the given SSZ encoder using dynamic specifications.

func (*HistoricalSummary) MarshalSSZTo

func (t *HistoricalSummary) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *HistoricalSummary to SSZ-encoded bytes, appending to the provided buffer.

func (*HistoricalSummary) SizeSSZ

func (t *HistoricalSummary) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *HistoricalSummary.

func (*HistoricalSummary) SizeSSZDyn added in v1.20.8

func (t *HistoricalSummary) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *HistoricalSummary using dynamic specifications.

func (*HistoricalSummary) UnmarshalSSZ

func (t *HistoricalSummary) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *HistoricalSummary from SSZ-encoded bytes.

func (*HistoricalSummary) UnmarshalSSZDecoder added in v1.20.8

func (t *HistoricalSummary) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *HistoricalSummary from the given SSZ decoder using dynamic specifications.

func (*HistoricalSummary) UnmarshalSSZDyn added in v1.20.8

func (t *HistoricalSummary) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *HistoricalSummary from SSZ-encoded bytes using dynamic specifications.

type HistoricalSummaryLists

type HistoricalSummaryLists struct {
	BlockRoots [8192][32]byte `json:"block_roots" ssz-size:"8192,32"`
	StateRoots [8192][32]byte `json:"state_roots" ssz-size:"8192,32"`
}

func (*HistoricalSummaryLists) HashTreeRoot

func (t *HistoricalSummaryLists) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *HistoricalSummaryLists.

func (*HistoricalSummaryLists) HashTreeRootDyn added in v1.20.8

func (t *HistoricalSummaryLists) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *HistoricalSummaryLists using dynamic specifications.

func (*HistoricalSummaryLists) HashTreeRootWith

func (t *HistoricalSummaryLists) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *HistoricalSummaryLists using the given hash walker.

func (*HistoricalSummaryLists) HashTreeRootWithDyn added in v1.20.8

func (t *HistoricalSummaryLists) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *HistoricalSummaryLists using dynamic specifications and the given hash walker.

func (*HistoricalSummaryLists) MarshalSSZDyn added in v1.20.8

func (t *HistoricalSummaryLists) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *HistoricalSummaryLists to SSZ-encoded bytes using dynamic specifications.

func (*HistoricalSummaryLists) MarshalSSZEncoder added in v1.20.8

func (t *HistoricalSummaryLists) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *HistoricalSummaryLists to the given SSZ encoder using dynamic specifications.

func (*HistoricalSummaryLists) MarshalSSZTo

func (t *HistoricalSummaryLists) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *HistoricalSummaryLists to SSZ-encoded bytes, appending to the provided buffer.

func (*HistoricalSummaryLists) SizeSSZ

func (t *HistoricalSummaryLists) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *HistoricalSummaryLists.

func (*HistoricalSummaryLists) SizeSSZDyn added in v1.20.8

func (t *HistoricalSummaryLists) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *HistoricalSummaryLists using dynamic specifications.

func (*HistoricalSummaryLists) UnmarshalSSZ

func (t *HistoricalSummaryLists) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *HistoricalSummaryLists from SSZ-encoded bytes.

func (*HistoricalSummaryLists) UnmarshalSSZDecoder added in v1.20.8

func (t *HistoricalSummaryLists) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *HistoricalSummaryLists from the given SSZ decoder using dynamic specifications.

func (*HistoricalSummaryLists) UnmarshalSSZDyn added in v1.20.8

func (t *HistoricalSummaryLists) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *HistoricalSummaryLists from SSZ-encoded bytes using dynamic specifications.

type IndexedAttestation

type IndexedAttestation struct {
	AttestationIndices []uint64         `json:"attesting_indices" ssz-max:"2048"`
	Data               *AttestationData `json:"data"`
	Signature          []byte           `json:"signature" ssz-size:"96"`
}

func (*IndexedAttestation) HashTreeRootDyn added in v1.20.8

func (t *IndexedAttestation) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *IndexedAttestation using dynamic specifications.

func (*IndexedAttestation) HashTreeRootWithDyn added in v1.20.8

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

HashTreeRootWithDyn computes the SSZ hash tree root of the *IndexedAttestation using dynamic specifications and the given hash walker.

func (*IndexedAttestation) MarshalSSZDyn added in v1.20.8

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

MarshalSSZDyn marshals the *IndexedAttestation to SSZ-encoded bytes using dynamic specifications.

func (*IndexedAttestation) MarshalSSZEncoder added in v1.20.8

func (t *IndexedAttestation) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *IndexedAttestation to the given SSZ encoder using dynamic specifications.

func (*IndexedAttestation) SizeSSZ

func (t *IndexedAttestation) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *IndexedAttestation.

func (*IndexedAttestation) SizeSSZDyn added in v1.20.8

func (t *IndexedAttestation) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *IndexedAttestation using dynamic specifications.

func (*IndexedAttestation) UnmarshalSSZDecoder added in v1.20.8

func (t *IndexedAttestation) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *IndexedAttestation from the given SSZ decoder using dynamic specifications.

func (*IndexedAttestation) UnmarshalSSZDyn added in v1.20.8

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

UnmarshalSSZDyn unmarshals the *IndexedAttestation from SSZ-encoded bytes using dynamic specifications.

type PendingConsolidation

type PendingConsolidation struct {
	SourceIndex uint64 `json:"source_index"`
	TargetIndex uint64 `json:"target_index"`
}

func (*PendingConsolidation) HashTreeRoot

func (t *PendingConsolidation) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *PendingConsolidation.

func (*PendingConsolidation) HashTreeRootDyn added in v1.20.8

func (t *PendingConsolidation) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *PendingConsolidation using dynamic specifications.

func (*PendingConsolidation) HashTreeRootWith

func (t *PendingConsolidation) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *PendingConsolidation using the given hash walker.

func (*PendingConsolidation) HashTreeRootWithDyn added in v1.20.8

func (t *PendingConsolidation) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *PendingConsolidation using dynamic specifications and the given hash walker.

func (*PendingConsolidation) MarshalSSZDyn added in v1.20.8

func (t *PendingConsolidation) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *PendingConsolidation to SSZ-encoded bytes using dynamic specifications.

func (*PendingConsolidation) MarshalSSZEncoder added in v1.20.8

func (t *PendingConsolidation) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *PendingConsolidation to the given SSZ encoder using dynamic specifications.

func (*PendingConsolidation) MarshalSSZTo

func (t *PendingConsolidation) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *PendingConsolidation to SSZ-encoded bytes, appending to the provided buffer.

func (*PendingConsolidation) SizeSSZ

func (t *PendingConsolidation) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *PendingConsolidation.

func (*PendingConsolidation) SizeSSZDyn added in v1.20.8

func (t *PendingConsolidation) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *PendingConsolidation using dynamic specifications.

func (*PendingConsolidation) UnmarshalSSZ

func (t *PendingConsolidation) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *PendingConsolidation from SSZ-encoded bytes.

func (*PendingConsolidation) UnmarshalSSZDecoder added in v1.20.8

func (t *PendingConsolidation) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *PendingConsolidation from the given SSZ decoder using dynamic specifications.

func (*PendingConsolidation) UnmarshalSSZDyn added in v1.20.8

func (t *PendingConsolidation) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *PendingConsolidation from SSZ-encoded bytes using dynamic specifications.

type PendingDeposit

type PendingDeposit struct {
	Pubkey                []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64 `json:"amount"`
	Signature             []byte `json:"signature" ssz-size:"96"`
	Slot                  uint64 `json:"slot"`
}

func (*PendingDeposit) HashTreeRoot

func (t *PendingDeposit) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *PendingDeposit.

func (*PendingDeposit) HashTreeRootDyn added in v1.20.8

func (t *PendingDeposit) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *PendingDeposit using dynamic specifications.

func (*PendingDeposit) HashTreeRootWith

func (t *PendingDeposit) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *PendingDeposit using the given hash walker.

func (*PendingDeposit) HashTreeRootWithDyn added in v1.20.8

func (t *PendingDeposit) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *PendingDeposit using dynamic specifications and the given hash walker.

func (*PendingDeposit) MarshalSSZDyn added in v1.20.8

func (t *PendingDeposit) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *PendingDeposit to SSZ-encoded bytes using dynamic specifications.

func (*PendingDeposit) MarshalSSZEncoder added in v1.20.8

func (t *PendingDeposit) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *PendingDeposit to the given SSZ encoder using dynamic specifications.

func (*PendingDeposit) MarshalSSZTo

func (t *PendingDeposit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *PendingDeposit to SSZ-encoded bytes, appending to the provided buffer.

func (*PendingDeposit) SizeSSZ

func (t *PendingDeposit) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *PendingDeposit.

func (*PendingDeposit) SizeSSZDyn added in v1.20.8

func (t *PendingDeposit) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *PendingDeposit using dynamic specifications.

func (*PendingDeposit) UnmarshalSSZ

func (t *PendingDeposit) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *PendingDeposit from SSZ-encoded bytes.

func (*PendingDeposit) UnmarshalSSZDecoder added in v1.20.8

func (t *PendingDeposit) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *PendingDeposit from the given SSZ decoder using dynamic specifications.

func (*PendingDeposit) UnmarshalSSZDyn added in v1.20.8

func (t *PendingDeposit) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *PendingDeposit from SSZ-encoded bytes using dynamic specifications.

type PendingPartialWithdrawal

type PendingPartialWithdrawal struct {
	ValidatorIndex    uint64 `json:"validator_index"`
	Amount            uint64 `json:"amount"`
	WithdrawableEpoch uint64 `json:"withdrawable_epoch"`
}

func (*PendingPartialWithdrawal) HashTreeRoot

func (t *PendingPartialWithdrawal) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *PendingPartialWithdrawal.

func (*PendingPartialWithdrawal) HashTreeRootDyn added in v1.20.8

func (t *PendingPartialWithdrawal) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *PendingPartialWithdrawal using dynamic specifications.

func (*PendingPartialWithdrawal) HashTreeRootWith

func (t *PendingPartialWithdrawal) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *PendingPartialWithdrawal using the given hash walker.

func (*PendingPartialWithdrawal) HashTreeRootWithDyn added in v1.20.8

HashTreeRootWithDyn computes the SSZ hash tree root of the *PendingPartialWithdrawal using dynamic specifications and the given hash walker.

func (*PendingPartialWithdrawal) MarshalSSZDyn added in v1.20.8

func (t *PendingPartialWithdrawal) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *PendingPartialWithdrawal to SSZ-encoded bytes using dynamic specifications.

func (*PendingPartialWithdrawal) MarshalSSZEncoder added in v1.20.8

func (t *PendingPartialWithdrawal) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *PendingPartialWithdrawal to the given SSZ encoder using dynamic specifications.

func (*PendingPartialWithdrawal) MarshalSSZTo

func (t *PendingPartialWithdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *PendingPartialWithdrawal to SSZ-encoded bytes, appending to the provided buffer.

func (*PendingPartialWithdrawal) SizeSSZ

func (t *PendingPartialWithdrawal) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *PendingPartialWithdrawal.

func (*PendingPartialWithdrawal) SizeSSZDyn added in v1.20.8

func (t *PendingPartialWithdrawal) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *PendingPartialWithdrawal using dynamic specifications.

func (*PendingPartialWithdrawal) UnmarshalSSZ

func (t *PendingPartialWithdrawal) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *PendingPartialWithdrawal from SSZ-encoded bytes.

func (*PendingPartialWithdrawal) UnmarshalSSZDecoder added in v1.20.8

func (t *PendingPartialWithdrawal) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *PendingPartialWithdrawal from the given SSZ decoder using dynamic specifications.

func (*PendingPartialWithdrawal) UnmarshalSSZDyn added in v1.20.8

func (t *PendingPartialWithdrawal) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *PendingPartialWithdrawal from SSZ-encoded bytes using dynamic specifications.

type ProposerSlashing

type ProposerSlashing struct {
	Header1 *SignedBeaconBlockHeader `json:"signed_header_1"`
	Header2 *SignedBeaconBlockHeader `json:"signed_header_2"`
}

func (*ProposerSlashing) HashTreeRootDyn added in v1.20.8

func (t *ProposerSlashing) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *ProposerSlashing using dynamic specifications.

func (*ProposerSlashing) HashTreeRootWithDyn added in v1.20.8

func (t *ProposerSlashing) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *ProposerSlashing using dynamic specifications and the given hash walker.

func (*ProposerSlashing) MarshalSSZDyn added in v1.20.8

func (t *ProposerSlashing) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *ProposerSlashing to SSZ-encoded bytes using dynamic specifications.

func (*ProposerSlashing) MarshalSSZEncoder added in v1.20.8

func (t *ProposerSlashing) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *ProposerSlashing to the given SSZ encoder using dynamic specifications.

func (*ProposerSlashing) SizeSSZ

func (t *ProposerSlashing) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *ProposerSlashing.

func (*ProposerSlashing) SizeSSZDyn added in v1.20.8

func (t *ProposerSlashing) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *ProposerSlashing using dynamic specifications.

func (*ProposerSlashing) UnmarshalSSZDecoder added in v1.20.8

func (t *ProposerSlashing) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *ProposerSlashing from the given SSZ decoder using dynamic specifications.

func (*ProposerSlashing) UnmarshalSSZDyn added in v1.20.8

func (t *ProposerSlashing) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *ProposerSlashing from SSZ-encoded bytes using dynamic specifications.

type SignedBLSToExecutionChange

type SignedBLSToExecutionChange struct {
	Message   *BLSToExecutionChange `json:"message"`
	Signature [96]byte              `json:"signature" ssz-size:"96"`
}

func (*SignedBLSToExecutionChange) HashTreeRootDyn added in v1.20.8

func (t *SignedBLSToExecutionChange) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SignedBLSToExecutionChange using dynamic specifications.

func (*SignedBLSToExecutionChange) HashTreeRootWithDyn added in v1.20.8

HashTreeRootWithDyn computes the SSZ hash tree root of the *SignedBLSToExecutionChange using dynamic specifications and the given hash walker.

func (*SignedBLSToExecutionChange) MarshalSSZDyn added in v1.20.8

func (t *SignedBLSToExecutionChange) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SignedBLSToExecutionChange to SSZ-encoded bytes using dynamic specifications.

func (*SignedBLSToExecutionChange) MarshalSSZEncoder added in v1.20.8

func (t *SignedBLSToExecutionChange) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SignedBLSToExecutionChange to the given SSZ encoder using dynamic specifications.

func (*SignedBLSToExecutionChange) SizeSSZ

func (t *SignedBLSToExecutionChange) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SignedBLSToExecutionChange.

func (*SignedBLSToExecutionChange) SizeSSZDyn added in v1.20.8

func (t *SignedBLSToExecutionChange) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SignedBLSToExecutionChange using dynamic specifications.

func (*SignedBLSToExecutionChange) UnmarshalSSZDecoder added in v1.20.8

func (t *SignedBLSToExecutionChange) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SignedBLSToExecutionChange from the given SSZ decoder using dynamic specifications.

func (*SignedBLSToExecutionChange) UnmarshalSSZDyn added in v1.20.8

func (t *SignedBLSToExecutionChange) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SignedBLSToExecutionChange from SSZ-encoded bytes using dynamic specifications.

type SignedBeaconBlockHeader

type SignedBeaconBlockHeader struct {
	Header    *BeaconBlockHeader `json:"message"`
	Signature []byte             `json:"signature" ssz-size:"96"`
}

func (*SignedBeaconBlockHeader) HashTreeRootDyn added in v1.20.8

func (t *SignedBeaconBlockHeader) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SignedBeaconBlockHeader using dynamic specifications.

func (*SignedBeaconBlockHeader) HashTreeRootWithDyn added in v1.20.8

func (t *SignedBeaconBlockHeader) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *SignedBeaconBlockHeader using dynamic specifications and the given hash walker.

func (*SignedBeaconBlockHeader) MarshalSSZDyn added in v1.20.8

func (t *SignedBeaconBlockHeader) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SignedBeaconBlockHeader to SSZ-encoded bytes using dynamic specifications.

func (*SignedBeaconBlockHeader) MarshalSSZEncoder added in v1.20.8

func (t *SignedBeaconBlockHeader) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SignedBeaconBlockHeader to the given SSZ encoder using dynamic specifications.

func (*SignedBeaconBlockHeader) SizeSSZ

func (t *SignedBeaconBlockHeader) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SignedBeaconBlockHeader.

func (*SignedBeaconBlockHeader) SizeSSZDyn added in v1.20.8

func (t *SignedBeaconBlockHeader) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SignedBeaconBlockHeader using dynamic specifications.

func (*SignedBeaconBlockHeader) UnmarshalSSZDecoder added in v1.20.8

func (t *SignedBeaconBlockHeader) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SignedBeaconBlockHeader from the given SSZ decoder using dynamic specifications.

func (*SignedBeaconBlockHeader) UnmarshalSSZDyn added in v1.20.8

func (t *SignedBeaconBlockHeader) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SignedBeaconBlockHeader from SSZ-encoded bytes using dynamic specifications.

type SignedVoluntaryExit

type SignedVoluntaryExit struct {
	Exit      *VoluntaryExit `json:"message"`
	Signature [96]byte       `json:"signature" ssz-size:"96"`
}

func (*SignedVoluntaryExit) HashTreeRootDyn added in v1.20.8

func (t *SignedVoluntaryExit) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SignedVoluntaryExit using dynamic specifications.

func (*SignedVoluntaryExit) HashTreeRootWithDyn added in v1.20.8

func (t *SignedVoluntaryExit) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *SignedVoluntaryExit using dynamic specifications and the given hash walker.

func (*SignedVoluntaryExit) MarshalSSZDyn added in v1.20.8

func (t *SignedVoluntaryExit) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SignedVoluntaryExit to SSZ-encoded bytes using dynamic specifications.

func (*SignedVoluntaryExit) MarshalSSZEncoder added in v1.20.8

func (t *SignedVoluntaryExit) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SignedVoluntaryExit to the given SSZ encoder using dynamic specifications.

func (*SignedVoluntaryExit) SizeSSZ

func (t *SignedVoluntaryExit) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SignedVoluntaryExit.

func (*SignedVoluntaryExit) SizeSSZDyn added in v1.20.8

func (t *SignedVoluntaryExit) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SignedVoluntaryExit using dynamic specifications.

func (*SignedVoluntaryExit) UnmarshalSSZDecoder added in v1.20.8

func (t *SignedVoluntaryExit) UnmarshalSSZDecoder(ds sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SignedVoluntaryExit from the given SSZ decoder using dynamic specifications.

func (*SignedVoluntaryExit) UnmarshalSSZDyn added in v1.20.8

func (t *SignedVoluntaryExit) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SignedVoluntaryExit from SSZ-encoded bytes using dynamic specifications.

type SigningRoot

type SigningRoot struct {
	ObjectRoot []byte `json:"object_root" ssz-size:"32"`
	Domain     []byte `json:"domain" ssz-size:"32"`
}

BLS signing root with domain

func (*SigningRoot) HashTreeRoot

func (t *SigningRoot) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *SigningRoot.

func (*SigningRoot) HashTreeRootDyn added in v1.20.8

func (t *SigningRoot) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SigningRoot using dynamic specifications.

func (*SigningRoot) HashTreeRootWith

func (t *SigningRoot) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *SigningRoot using the given hash walker.

func (*SigningRoot) HashTreeRootWithDyn added in v1.20.8

func (t *SigningRoot) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *SigningRoot using dynamic specifications and the given hash walker.

func (*SigningRoot) MarshalSSZDyn added in v1.20.8

func (t *SigningRoot) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SigningRoot to SSZ-encoded bytes using dynamic specifications.

func (*SigningRoot) MarshalSSZEncoder added in v1.20.8

func (t *SigningRoot) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SigningRoot to the given SSZ encoder using dynamic specifications.

func (*SigningRoot) MarshalSSZTo

func (t *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *SigningRoot to SSZ-encoded bytes, appending to the provided buffer.

func (*SigningRoot) SizeSSZ

func (t *SigningRoot) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SigningRoot.

func (*SigningRoot) SizeSSZDyn added in v1.20.8

func (t *SigningRoot) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SigningRoot using dynamic specifications.

func (*SigningRoot) UnmarshalSSZ

func (t *SigningRoot) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *SigningRoot from SSZ-encoded bytes.

func (*SigningRoot) UnmarshalSSZDecoder added in v1.20.8

func (t *SigningRoot) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SigningRoot from the given SSZ decoder using dynamic specifications.

func (*SigningRoot) UnmarshalSSZDyn added in v1.20.8

func (t *SigningRoot) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SigningRoot from SSZ-encoded bytes using dynamic specifications.

type SyncAggregate

type SyncAggregate struct {
	SyncCommiteeBits      []byte   `json:"sync_committee_bits" ssz-size:"64"`
	SyncCommiteeSignature [96]byte `json:"sync_committee_signature" ssz-size:"96"`
}

func (*SyncAggregate) HashTreeRoot

func (t *SyncAggregate) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *SyncAggregate.

func (*SyncAggregate) HashTreeRootDyn added in v1.20.8

func (t *SyncAggregate) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SyncAggregate using dynamic specifications.

func (*SyncAggregate) HashTreeRootWith

func (t *SyncAggregate) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *SyncAggregate using the given hash walker.

func (*SyncAggregate) HashTreeRootWithDyn added in v1.20.8

func (t *SyncAggregate) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *SyncAggregate using dynamic specifications and the given hash walker.

func (*SyncAggregate) MarshalSSZDyn added in v1.20.8

func (t *SyncAggregate) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SyncAggregate to SSZ-encoded bytes using dynamic specifications.

func (*SyncAggregate) MarshalSSZEncoder added in v1.20.8

func (t *SyncAggregate) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SyncAggregate to the given SSZ encoder using dynamic specifications.

func (*SyncAggregate) MarshalSSZTo

func (t *SyncAggregate) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *SyncAggregate to SSZ-encoded bytes, appending to the provided buffer.

func (*SyncAggregate) SizeSSZ

func (t *SyncAggregate) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SyncAggregate.

func (*SyncAggregate) SizeSSZDyn added in v1.20.8

func (t *SyncAggregate) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SyncAggregate using dynamic specifications.

func (*SyncAggregate) UnmarshalSSZ

func (t *SyncAggregate) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *SyncAggregate from SSZ-encoded bytes.

func (*SyncAggregate) UnmarshalSSZDecoder added in v1.20.8

func (t *SyncAggregate) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SyncAggregate from the given SSZ decoder using dynamic specifications.

func (*SyncAggregate) UnmarshalSSZDyn added in v1.20.8

func (t *SyncAggregate) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SyncAggregate from SSZ-encoded bytes using dynamic specifications.

type SyncCommittee

type SyncCommittee struct {
	PubKeys         [][]byte `json:"pubkeys" ssz-size:"512,48"`
	AggregatePubKey [48]byte `json:"aggregate_pubkey" ssz-size:"48"`
}

func (*SyncCommittee) HashTreeRoot

func (t *SyncCommittee) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *SyncCommittee.

func (*SyncCommittee) HashTreeRootDyn added in v1.20.8

func (t *SyncCommittee) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *SyncCommittee using dynamic specifications.

func (*SyncCommittee) HashTreeRootWith

func (t *SyncCommittee) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *SyncCommittee using the given hash walker.

func (*SyncCommittee) HashTreeRootWithDyn added in v1.20.8

func (t *SyncCommittee) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *SyncCommittee using dynamic specifications and the given hash walker.

func (*SyncCommittee) MarshalSSZDyn added in v1.20.8

func (t *SyncCommittee) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *SyncCommittee to SSZ-encoded bytes using dynamic specifications.

func (*SyncCommittee) MarshalSSZEncoder added in v1.20.8

func (t *SyncCommittee) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *SyncCommittee to the given SSZ encoder using dynamic specifications.

func (*SyncCommittee) MarshalSSZTo

func (t *SyncCommittee) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *SyncCommittee to SSZ-encoded bytes, appending to the provided buffer.

func (*SyncCommittee) SizeSSZ

func (t *SyncCommittee) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *SyncCommittee.

func (*SyncCommittee) SizeSSZDyn added in v1.20.8

func (t *SyncCommittee) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *SyncCommittee using dynamic specifications.

func (*SyncCommittee) UnmarshalSSZ

func (t *SyncCommittee) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *SyncCommittee from SSZ-encoded bytes.

func (*SyncCommittee) UnmarshalSSZDecoder added in v1.20.8

func (t *SyncCommittee) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *SyncCommittee from the given SSZ decoder using dynamic specifications.

func (*SyncCommittee) UnmarshalSSZDyn added in v1.20.8

func (t *SyncCommittee) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *SyncCommittee from SSZ-encoded bytes using dynamic specifications.

type Uint256

type Uint256 [32]byte

func (*Uint256) HashTreeRoot added in v1.20.8

func (t *Uint256) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Uint256.

func (*Uint256) HashTreeRootDyn added in v1.20.8

func (t *Uint256) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Uint256 using dynamic specifications.

func (*Uint256) HashTreeRootWith added in v1.20.8

func (t *Uint256) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Uint256 using the given hash walker.

func (*Uint256) HashTreeRootWithDyn added in v1.20.8

func (t *Uint256) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Uint256 using dynamic specifications and the given hash walker.

func (*Uint256) MarshalSSZDyn added in v1.20.8

func (t *Uint256) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Uint256 to SSZ-encoded bytes using dynamic specifications.

func (*Uint256) MarshalSSZEncoder added in v1.20.8

func (t *Uint256) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Uint256 to the given SSZ encoder using dynamic specifications.

func (*Uint256) MarshalSSZTo added in v1.20.8

func (t *Uint256) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Uint256 to SSZ-encoded bytes, appending to the provided buffer.

func (*Uint256) SizeSSZ added in v1.20.8

func (t *Uint256) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Uint256.

func (*Uint256) SizeSSZDyn added in v1.20.8

func (t *Uint256) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Uint256 using dynamic specifications.

func (*Uint256) UnmarshalSSZ added in v1.20.8

func (t *Uint256) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Uint256 from SSZ-encoded bytes.

func (*Uint256) UnmarshalSSZDecoder added in v1.20.8

func (t *Uint256) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Uint256 from the given SSZ decoder using dynamic specifications.

func (*Uint256) UnmarshalSSZDyn added in v1.20.8

func (t *Uint256) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Uint256 from SSZ-encoded bytes using dynamic specifications.

type Validator

type Validator struct {
	Pubkey                     []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials      []byte `json:"withdrawal_credentials" ssz-size:"32"`
	EffectiveBalance           uint64 `json:"effective_balance"`
	Slashed                    bool   `json:"slashed"`
	ActivationEligibilityEpoch uint64 `json:"activation_eligibility_epoch"`
	ActivationEpoch            uint64 `json:"activation_epoch"`
	ExitEpoch                  uint64 `json:"exit_epoch"`
	WithdrawableEpoch          uint64 `json:"withdrawable_epoch"`
}

func (*Validator) HashTreeRoot

func (t *Validator) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Validator.

func (*Validator) HashTreeRootDyn added in v1.20.8

func (t *Validator) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Validator using dynamic specifications.

func (*Validator) HashTreeRootWith

func (t *Validator) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Validator using the given hash walker.

func (*Validator) HashTreeRootWithDyn added in v1.20.8

func (t *Validator) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Validator using dynamic specifications and the given hash walker.

func (*Validator) MarshalSSZDyn added in v1.20.8

func (t *Validator) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Validator to SSZ-encoded bytes using dynamic specifications.

func (*Validator) MarshalSSZEncoder added in v1.20.8

func (t *Validator) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Validator to the given SSZ encoder using dynamic specifications.

func (*Validator) MarshalSSZTo

func (t *Validator) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Validator to SSZ-encoded bytes, appending to the provided buffer.

func (*Validator) SizeSSZ

func (t *Validator) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Validator.

func (*Validator) SizeSSZDyn added in v1.20.8

func (t *Validator) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Validator using dynamic specifications.

func (*Validator) UnmarshalSSZ

func (t *Validator) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Validator from SSZ-encoded bytes.

func (*Validator) UnmarshalSSZDecoder added in v1.20.8

func (t *Validator) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Validator from the given SSZ decoder using dynamic specifications.

func (*Validator) UnmarshalSSZDyn added in v1.20.8

func (t *Validator) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Validator from SSZ-encoded bytes using dynamic specifications.

type VoluntaryExit

type VoluntaryExit struct {
	Epoch          uint64 `json:"epoch"`
	ValidatorIndex uint64 `json:"validator_index"`
}

Voluntary exit transaction

func (*VoluntaryExit) HashTreeRoot

func (t *VoluntaryExit) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *VoluntaryExit.

func (*VoluntaryExit) HashTreeRootDyn added in v1.20.8

func (t *VoluntaryExit) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *VoluntaryExit using dynamic specifications.

func (*VoluntaryExit) HashTreeRootWith

func (t *VoluntaryExit) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *VoluntaryExit using the given hash walker.

func (*VoluntaryExit) HashTreeRootWithDyn added in v1.20.8

func (t *VoluntaryExit) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *VoluntaryExit using dynamic specifications and the given hash walker.

func (*VoluntaryExit) MarshalSSZDyn added in v1.20.8

func (t *VoluntaryExit) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *VoluntaryExit to SSZ-encoded bytes using dynamic specifications.

func (*VoluntaryExit) MarshalSSZEncoder added in v1.20.8

func (t *VoluntaryExit) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *VoluntaryExit to the given SSZ encoder using dynamic specifications.

func (*VoluntaryExit) MarshalSSZTo

func (t *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *VoluntaryExit to SSZ-encoded bytes, appending to the provided buffer.

func (*VoluntaryExit) SizeSSZ

func (t *VoluntaryExit) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *VoluntaryExit.

func (*VoluntaryExit) SizeSSZDyn added in v1.20.8

func (t *VoluntaryExit) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *VoluntaryExit using dynamic specifications.

func (*VoluntaryExit) UnmarshalSSZ

func (t *VoluntaryExit) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *VoluntaryExit from SSZ-encoded bytes.

func (*VoluntaryExit) UnmarshalSSZDecoder added in v1.20.8

func (t *VoluntaryExit) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *VoluntaryExit from the given SSZ decoder using dynamic specifications.

func (*VoluntaryExit) UnmarshalSSZDyn added in v1.20.8

func (t *VoluntaryExit) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *VoluntaryExit from SSZ-encoded bytes using dynamic specifications.

type Withdrawal

type Withdrawal struct {
	Index          uint64   `json:"index"`
	ValidatorIndex uint64   `json:"validator_index"`
	Address        [20]byte `json:"address" ssz-size:"20"`
	Amount         uint64   `json:"amount"`
}

func (*Withdrawal) HashTreeRoot

func (t *Withdrawal) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *Withdrawal.

func (*Withdrawal) HashTreeRootDyn added in v1.20.8

func (t *Withdrawal) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *Withdrawal using dynamic specifications.

func (*Withdrawal) HashTreeRootWith

func (t *Withdrawal) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *Withdrawal using the given hash walker.

func (*Withdrawal) HashTreeRootWithDyn added in v1.20.8

func (t *Withdrawal) HashTreeRootWithDyn(_ sszutils.DynamicSpecs, hh sszutils.HashWalker) error

HashTreeRootWithDyn computes the SSZ hash tree root of the *Withdrawal using dynamic specifications and the given hash walker.

func (*Withdrawal) MarshalSSZDyn added in v1.20.8

func (t *Withdrawal) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *Withdrawal to SSZ-encoded bytes using dynamic specifications.

func (*Withdrawal) MarshalSSZEncoder added in v1.20.8

func (t *Withdrawal) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *Withdrawal to the given SSZ encoder using dynamic specifications.

func (*Withdrawal) MarshalSSZTo

func (t *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *Withdrawal to SSZ-encoded bytes, appending to the provided buffer.

func (*Withdrawal) SizeSSZ

func (t *Withdrawal) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *Withdrawal.

func (*Withdrawal) SizeSSZDyn added in v1.20.8

func (t *Withdrawal) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *Withdrawal using dynamic specifications.

func (*Withdrawal) UnmarshalSSZ

func (t *Withdrawal) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *Withdrawal from SSZ-encoded bytes.

func (*Withdrawal) UnmarshalSSZDecoder added in v1.20.8

func (t *Withdrawal) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *Withdrawal from the given SSZ decoder using dynamic specifications.

func (*Withdrawal) UnmarshalSSZDyn added in v1.20.8

func (t *Withdrawal) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *Withdrawal from SSZ-encoded bytes using dynamic specifications.

type WithdrawalCredentialsChange

type WithdrawalCredentialsChange struct {
	ValidatorIndex     uint64   `json:"validator_index"`
	FromBLSPubkey      [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
	ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}

Withdrawal creds change message

func (*WithdrawalCredentialsChange) HashTreeRoot

func (t *WithdrawalCredentialsChange) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *WithdrawalCredentialsChange.

func (*WithdrawalCredentialsChange) HashTreeRootDyn added in v1.20.8

func (t *WithdrawalCredentialsChange) HashTreeRootDyn(ds sszutils.DynamicSpecs) (root [32]byte, err error)

HashTreeRootDyn computes the SSZ hash tree root of the *WithdrawalCredentialsChange using dynamic specifications.

func (*WithdrawalCredentialsChange) HashTreeRootWith

func (t *WithdrawalCredentialsChange) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *WithdrawalCredentialsChange using the given hash walker.

func (*WithdrawalCredentialsChange) HashTreeRootWithDyn added in v1.20.8

HashTreeRootWithDyn computes the SSZ hash tree root of the *WithdrawalCredentialsChange using dynamic specifications and the given hash walker.

func (*WithdrawalCredentialsChange) MarshalSSZDyn added in v1.20.8

func (t *WithdrawalCredentialsChange) MarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (dst []byte, err error)

MarshalSSZDyn marshals the *WithdrawalCredentialsChange to SSZ-encoded bytes using dynamic specifications.

func (*WithdrawalCredentialsChange) MarshalSSZEncoder added in v1.20.8

func (t *WithdrawalCredentialsChange) MarshalSSZEncoder(ds sszutils.DynamicSpecs, enc sszutils.Encoder) (err error)

MarshalSSZEncoder marshals the *WithdrawalCredentialsChange to the given SSZ encoder using dynamic specifications.

func (*WithdrawalCredentialsChange) MarshalSSZTo

func (t *WithdrawalCredentialsChange) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *WithdrawalCredentialsChange to SSZ-encoded bytes, appending to the provided buffer.

func (*WithdrawalCredentialsChange) SizeSSZ

func (t *WithdrawalCredentialsChange) SizeSSZ() (size int)

SizeSSZ returns the SSZ encoded size of the *WithdrawalCredentialsChange.

func (*WithdrawalCredentialsChange) SizeSSZDyn added in v1.20.8

func (t *WithdrawalCredentialsChange) SizeSSZDyn(_ sszutils.DynamicSpecs) (size int)

SizeSSZDyn returns the SSZ encoded size of the *WithdrawalCredentialsChange using dynamic specifications.

func (*WithdrawalCredentialsChange) UnmarshalSSZ

func (t *WithdrawalCredentialsChange) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *WithdrawalCredentialsChange from SSZ-encoded bytes.

func (*WithdrawalCredentialsChange) UnmarshalSSZDecoder added in v1.20.8

func (t *WithdrawalCredentialsChange) UnmarshalSSZDecoder(_ sszutils.DynamicSpecs, dec sszutils.Decoder) (err error)

UnmarshalSSZDecoder unmarshals the *WithdrawalCredentialsChange from the given SSZ decoder using dynamic specifications.

func (*WithdrawalCredentialsChange) UnmarshalSSZDyn added in v1.20.8

func (t *WithdrawalCredentialsChange) UnmarshalSSZDyn(_ sszutils.DynamicSpecs, buf []byte) (err error)

UnmarshalSSZDyn unmarshals the *WithdrawalCredentialsChange from SSZ-encoded bytes using dynamic specifications.

Jump to

Keyboard shortcuts

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