electra

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateAndProof

type AggregateAndProof struct {
	AggregatorIndex phase0.ValidatorIndex
	Aggregate       *Attestation
	SelectionProof  phase0.BLSSignature `ssz-size:"96"`
}

AggregateAndProof is the Ethereum 2 attestation structure.

func (*AggregateAndProof) HashTreeRoot

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

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

func (*AggregateAndProof) HashTreeRootWith

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

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

func (*AggregateAndProof) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*AggregateAndProof) MarshalSSZ

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

MarshalSSZ marshals the *AggregateAndProof to SSZ-encoded bytes.

func (*AggregateAndProof) MarshalSSZTo

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

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

func (*AggregateAndProof) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*AggregateAndProof) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *AggregateAndProof.

func (*AggregateAndProof) String

func (a *AggregateAndProof) String() string

String returns a string version of the structure.

func (*AggregateAndProof) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*AggregateAndProof) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *AggregateAndProof from SSZ-encoded bytes.

func (*AggregateAndProof) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type Attestation

type Attestation struct {
	AggregationBits bitfield.Bitlist `dynssz-max:"MAX_VALIDATORS_PER_COMMITTEE*MAX_COMMITTEES_PER_SLOT" ssz-max:"131072"`
	Data            *phase0.AttestationData
	Signature       phase0.BLSSignature  `ssz-size:"96"`
	CommitteeBits   bitfield.Bitvector64 `dynssz-size:"MAX_COMMITTEES_PER_SLOT/8" ssz-size:"8"`
}

Attestation is the Ethereum 2 attestation structure.

func (*Attestation) AggregateValidatorIndex

func (a *Attestation) AggregateValidatorIndex() (phase0.ValidatorIndex, error)

AggregateValidatorIndex returns the index if only one bit is set, otherwise error.

func (*Attestation) CommitteeIndex

func (a *Attestation) CommitteeIndex() (phase0.CommitteeIndex, error)

CommitteeIndex returns the index if only one bit is set, otherwise error.

func (*Attestation) HashTreeRoot

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

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

func (*Attestation) HashTreeRootWith

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

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

func (*Attestation) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*Attestation) MarshalSSZ

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

MarshalSSZ marshals the *Attestation to SSZ-encoded bytes.

func (*Attestation) MarshalSSZTo

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

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

func (*Attestation) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*Attestation) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *Attestation.

func (*Attestation) String

func (a *Attestation) String() string

String returns a string version of the structure.

func (*Attestation) ToSingleAttestation

func (a *Attestation) ToSingleAttestation(validatorIndex *phase0.ValidatorIndex) (*SingleAttestation, error)

ToSingleAttestation returns a SingleAttestation representation of the Attestation.

func (*Attestation) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*Attestation) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *Attestation from SSZ-encoded bytes.

func (*Attestation) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type AttesterSlashing

type AttesterSlashing struct {
	Attestation1 *IndexedAttestation
	Attestation2 *IndexedAttestation
}

AttesterSlashing provides information about an attester slashing.

func (*AttesterSlashing) HashTreeRoot

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

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

func (*AttesterSlashing) HashTreeRootWith

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

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

func (*AttesterSlashing) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*AttesterSlashing) MarshalSSZ

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

MarshalSSZ marshals the *AttesterSlashing to SSZ-encoded bytes.

func (*AttesterSlashing) MarshalSSZTo

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

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

func (*AttesterSlashing) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*AttesterSlashing) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *AttesterSlashing.

func (*AttesterSlashing) String

func (a *AttesterSlashing) String() string

func (*AttesterSlashing) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*AttesterSlashing) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *AttesterSlashing from SSZ-encoded bytes.

func (*AttesterSlashing) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type BeaconBlock

type BeaconBlock struct {
	Slot          phase0.Slot
	ProposerIndex phase0.ValidatorIndex
	ParentRoot    phase0.Root `ssz-size:"32"`
	StateRoot     phase0.Root `ssz-size:"32"`
	Body          *BeaconBlockBody
}

BeaconBlock represents a beacon block.

func (*BeaconBlock) HashTreeRoot

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

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

func (*BeaconBlock) HashTreeRootWith

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

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

func (*BeaconBlock) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconBlock) MarshalSSZ

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

MarshalSSZ marshals the *BeaconBlock to SSZ-encoded bytes.

func (*BeaconBlock) MarshalSSZTo

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

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

func (*BeaconBlock) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlock) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *BeaconBlock.

func (*BeaconBlock) String

func (b *BeaconBlock) String() string

String returns a string version of the structure.

func (*BeaconBlock) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *BeaconBlock from SSZ-encoded bytes.

func (*BeaconBlock) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type BeaconBlockBody

type BeaconBlockBody struct {
	RANDAOReveal          phase0.BLSSignature `ssz-size:"96"`
	ETH1Data              *phase0.ETH1Data
	Graffiti              [32]byte                      `ssz-size:"32"`
	ProposerSlashings     []*phase0.ProposerSlashing    `dynssz-max:"MAX_PROPOSER_SLASHINGS"         ssz-max:"16"`
	AttesterSlashings     []*AttesterSlashing           `dynssz-max:"MAX_ATTESTER_SLASHINGS_ELECTRA" ssz-max:"1"`
	Attestations          []*Attestation                `dynssz-max:"MAX_ATTESTATIONS_ELECTRA"       ssz-max:"8"`
	Deposits              []*phase0.Deposit             `dynssz-max:"MAX_DEPOSITS"                   ssz-max:"16"`
	VoluntaryExits        []*phase0.SignedVoluntaryExit `dynssz-max:"MAX_VOLUNTARY_EXITS"            ssz-max:"16"`
	SyncAggregate         *altair.SyncAggregate
	ExecutionPayload      *deneb.ExecutionPayload
	BLSToExecutionChanges []*capella.SignedBLSToExecutionChange `dynssz-max:"MAX_BLS_TO_EXECUTION_CHANGES"   ssz-max:"16"`
	BlobKZGCommitments    []deneb.KZGCommitment                 `dynssz-max:"MAX_BLOB_COMMITMENTS_PER_BLOCK" ssz-max:"4096" ssz-size:"?,48"`
	ExecutionRequests     *ExecutionRequests
}

BeaconBlockBody represents the body of a beacon block.

func (*BeaconBlockBody) HashTreeRoot

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

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

func (*BeaconBlockBody) HashTreeRootWith

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

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

func (*BeaconBlockBody) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconBlockBody) MarshalSSZ

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

MarshalSSZ marshals the *BeaconBlockBody to SSZ-encoded bytes.

func (*BeaconBlockBody) MarshalSSZTo

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

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

func (*BeaconBlockBody) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlockBody) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *BeaconBlockBody.

func (*BeaconBlockBody) String

func (b *BeaconBlockBody) String() string

String returns a string version of the structure.

func (*BeaconBlockBody) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconBlockBody) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *BeaconBlockBody from SSZ-encoded bytes.

func (*BeaconBlockBody) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type BeaconState

type BeaconState struct {
	GenesisTime                   uint64
	GenesisValidatorsRoot         phase0.Root `ssz-size:"32"`
	Slot                          phase0.Slot
	Fork                          *phase0.Fork
	LatestBlockHeader             *phase0.BeaconBlockHeader
	BlockRoots                    []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
	StateRoots                    []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
	HistoricalRoots               []phase0.Root `dynssz-max:"HISTORICAL_ROOTS_LIMIT"        ssz-max:"16777216" ssz-size:"?,32"`
	ETH1Data                      *phase0.ETH1Data
	ETH1DataVotes                 []*phase0.ETH1Data `dynssz-max:"EPOCHS_PER_ETH1_VOTING_PERIOD*SLOTS_PER_EPOCH" ssz-max:"2048"`
	ETH1DepositIndex              uint64
	Validators                    []*phase0.Validator         `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	Balances                      []phase0.Gwei               `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	RANDAOMixes                   []phase0.Root               `dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
	Slashings                     []phase0.Gwei               `dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR"     ssz-size:"8192"`
	PreviousEpochParticipation    []altair.ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	CurrentEpochParticipation     []altair.ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	JustificationBits             bitfield.Bitvector4         `ssz-size:"1"`
	PreviousJustifiedCheckpoint   *phase0.Checkpoint
	CurrentJustifiedCheckpoint    *phase0.Checkpoint
	FinalizedCheckpoint           *phase0.Checkpoint
	InactivityScores              []uint64 `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
	CurrentSyncCommittee          *altair.SyncCommittee
	NextSyncCommittee             *altair.SyncCommittee
	LatestExecutionPayloadHeader  *deneb.ExecutionPayloadHeader
	NextWithdrawalIndex           capella.WithdrawalIndex
	NextWithdrawalValidatorIndex  phase0.ValidatorIndex
	HistoricalSummaries           []*capella.HistoricalSummary `dynssz-max:"HISTORICAL_ROOTS_LIMIT" ssz-max:"16777216"`
	DepositRequestsStartIndex     uint64
	DepositBalanceToConsume       phase0.Gwei
	ExitBalanceToConsume          phase0.Gwei
	EarliestExitEpoch             phase0.Epoch
	ConsolidationBalanceToConsume phase0.Gwei
	EarliestConsolidationEpoch    phase0.Epoch
	PendingDeposits               []*PendingDeposit           `dynssz-max:"PENDING_DEPOSITS_LIMIT"            ssz-max:"134217728"`
	PendingPartialWithdrawals     []*PendingPartialWithdrawal `dynssz-max:"PENDING_PARTIAL_WITHDRAWALS_LIMIT" ssz-max:"134217728"`
	PendingConsolidations         []*PendingConsolidation     `dynssz-max:"PENDING_CONSOLIDATIONS_LIMIT"      ssz-max:"262144"`
}

BeaconState represents a beacon state.

func (*BeaconState) HashTreeRoot

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

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

func (*BeaconState) HashTreeRootWith

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

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

func (*BeaconState) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconState) MarshalSSZ

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

MarshalSSZ marshals the *BeaconState to SSZ-encoded bytes.

func (*BeaconState) MarshalSSZTo

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

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

func (*BeaconState) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconState) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *BeaconState.

func (*BeaconState) String

func (b *BeaconState) String() string

String returns a string version of the structure.

func (*BeaconState) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconState) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *BeaconState from SSZ-encoded bytes.

func (*BeaconState) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type Consolidation

type Consolidation struct {
	SourceIndex phase0.ValidatorIndex
	TargetIndex phase0.ValidatorIndex
	Epoch       phase0.Epoch
}

Consolidation represents a consolidation.

func (*Consolidation) HashTreeRoot

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

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

func (*Consolidation) HashTreeRootWith

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

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

func (*Consolidation) MarshalJSON

func (c *Consolidation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*Consolidation) MarshalSSZ

func (t *Consolidation) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *Consolidation to SSZ-encoded bytes.

func (*Consolidation) MarshalSSZTo

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

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

func (*Consolidation) MarshalYAML

func (c *Consolidation) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*Consolidation) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *Consolidation.

func (*Consolidation) String

func (c *Consolidation) String() string

String returns a string version of the structure.

func (*Consolidation) UnmarshalJSON

func (c *Consolidation) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Consolidation) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *Consolidation from SSZ-encoded bytes.

func (*Consolidation) UnmarshalYAML

func (c *Consolidation) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type ConsolidationRequest

type ConsolidationRequest struct {
	SourceAddress bellatrix.ExecutionAddress `ssz-size:"20"`
	SourcePubkey  phase0.BLSPubKey           `ssz-size:"48"`
	TargetPubkey  phase0.BLSPubKey           `ssz-size:"48"`
}

ConsolidationRequest represents an execution layer consolidation request.

func (*ConsolidationRequest) HashTreeRoot

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

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

func (*ConsolidationRequest) HashTreeRootWith

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

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

func (*ConsolidationRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ConsolidationRequest) MarshalSSZ

func (t *ConsolidationRequest) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *ConsolidationRequest to SSZ-encoded bytes.

func (*ConsolidationRequest) MarshalSSZTo

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

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

func (*ConsolidationRequest) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*ConsolidationRequest) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *ConsolidationRequest.

func (*ConsolidationRequest) String

func (e *ConsolidationRequest) String() string

String returns a string version of the structure.

func (*ConsolidationRequest) UnmarshalJSON

func (e *ConsolidationRequest) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*ConsolidationRequest) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *ConsolidationRequest from SSZ-encoded bytes.

func (*ConsolidationRequest) UnmarshalYAML

func (e *ConsolidationRequest) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type DepositRequest

type DepositRequest struct {
	Pubkey                phase0.BLSPubKey `ssz-size:"48"`
	WithdrawalCredentials []byte           `ssz-size:"32"`
	Amount                phase0.Gwei
	Signature             phase0.BLSSignature `ssz-size:"96"`
	Index                 uint64
}

DepositRequest represents a deposit receipt.

func (*DepositRequest) HashTreeRoot

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

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

func (*DepositRequest) HashTreeRootWith

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

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

func (*DepositRequest) MarshalJSON

func (d *DepositRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*DepositRequest) MarshalSSZ

func (t *DepositRequest) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *DepositRequest to SSZ-encoded bytes.

func (*DepositRequest) MarshalSSZTo

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

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

func (*DepositRequest) MarshalYAML

func (d *DepositRequest) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*DepositRequest) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *DepositRequest.

func (*DepositRequest) String

func (d *DepositRequest) String() string

String returns a string version of the structure.

func (*DepositRequest) UnmarshalJSON

func (d *DepositRequest) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*DepositRequest) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *DepositRequest from SSZ-encoded bytes.

func (*DepositRequest) UnmarshalYAML

func (d *DepositRequest) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type ExecutionRequests

type ExecutionRequests struct {
	Deposits       []*DepositRequest       `dynssz-max:"MAX_DEPOSIT_REQUESTS_PER_PAYLOAD"       ssz-max:"8192"`
	Withdrawals    []*WithdrawalRequest    `dynssz-max:"MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD"    ssz-max:"16"`
	Consolidations []*ConsolidationRequest `dynssz-max:"MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD" ssz-max:"2"`
}

ExecutionRequests represents an execution layer payload.

func (*ExecutionRequests) HashTreeRoot

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

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

func (*ExecutionRequests) HashTreeRootWith

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

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

func (*ExecutionRequests) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ExecutionRequests) MarshalSSZ

func (t *ExecutionRequests) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *ExecutionRequests to SSZ-encoded bytes.

func (*ExecutionRequests) MarshalSSZTo

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

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

func (*ExecutionRequests) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*ExecutionRequests) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *ExecutionRequests.

func (*ExecutionRequests) String

func (e *ExecutionRequests) String() string

String returns a string version of the structure.

func (*ExecutionRequests) UnmarshalJSON

func (e *ExecutionRequests) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*ExecutionRequests) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *ExecutionRequests from SSZ-encoded bytes.

func (*ExecutionRequests) UnmarshalYAML

func (e *ExecutionRequests) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type IndexedAttestation

type IndexedAttestation struct {
	// Currently using primitives as sszgen does not handle []ValidatorIndex
	AttestingIndices []uint64 `dynssz-max:"MAX_VALIDATORS_PER_COMMITTEE*MAX_COMMITTEES_PER_SLOT" ssz-max:"131072"`
	Data             *phase0.AttestationData
	Signature        phase0.BLSSignature `ssz-size:"96"`
}

IndexedAttestation provides a signed attestation with a list of attesting indices.

func (*IndexedAttestation) HashTreeRoot

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

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

func (*IndexedAttestation) HashTreeRootWith

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

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

func (*IndexedAttestation) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*IndexedAttestation) MarshalSSZ

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

MarshalSSZ marshals the *IndexedAttestation to SSZ-encoded bytes.

func (*IndexedAttestation) MarshalSSZTo

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

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

func (*IndexedAttestation) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*IndexedAttestation) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *IndexedAttestation.

func (*IndexedAttestation) String

func (i *IndexedAttestation) String() string

String returns a string version of the structure.

func (*IndexedAttestation) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*IndexedAttestation) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *IndexedAttestation from SSZ-encoded bytes.

func (*IndexedAttestation) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type PendingConsolidation

type PendingConsolidation struct {
	SourceIndex phase0.ValidatorIndex
	TargetIndex phase0.ValidatorIndex
}

PendingConsolidation represents a pending consolidation.

func (*PendingConsolidation) HashTreeRoot

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

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

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) MarshalJSON

func (p *PendingConsolidation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*PendingConsolidation) MarshalSSZ

func (t *PendingConsolidation) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *PendingConsolidation to SSZ-encoded bytes.

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) MarshalYAML

func (p *PendingConsolidation) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*PendingConsolidation) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *PendingConsolidation.

func (*PendingConsolidation) String

func (p *PendingConsolidation) String() string

String returns a string version of the structure.

func (*PendingConsolidation) UnmarshalJSON

func (p *PendingConsolidation) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*PendingConsolidation) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *PendingConsolidation from SSZ-encoded bytes.

func (*PendingConsolidation) UnmarshalYAML

func (p *PendingConsolidation) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type PendingDeposit

type PendingDeposit struct {
	Pubkey                phase0.BLSPubKey `ssz-size:"48"`
	WithdrawalCredentials []byte           `ssz-size:"32"`
	Amount                phase0.Gwei
	Signature             phase0.BLSSignature `ssz-size:"96"`
	Slot                  phase0.Slot
}

PendingDeposit represents a pending balance deposit.

func (*PendingDeposit) HashTreeRoot

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

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

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) MarshalJSON

func (p *PendingDeposit) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*PendingDeposit) MarshalSSZ

func (t *PendingDeposit) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *PendingDeposit to SSZ-encoded bytes.

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) MarshalYAML

func (p *PendingDeposit) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*PendingDeposit) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *PendingDeposit.

func (*PendingDeposit) String

func (p *PendingDeposit) String() string

String returns a string version of the structure.

func (*PendingDeposit) UnmarshalJSON

func (p *PendingDeposit) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*PendingDeposit) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *PendingDeposit from SSZ-encoded bytes.

func (*PendingDeposit) UnmarshalYAML

func (p *PendingDeposit) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type PendingPartialWithdrawal

type PendingPartialWithdrawal struct {
	ValidatorIndex    phase0.ValidatorIndex
	Amount            phase0.Gwei
	WithdrawableEpoch phase0.Epoch
}

PendingPartialWithdrawal represents a pending partial withdrawal.

func (*PendingPartialWithdrawal) HashTreeRoot

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

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

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) MarshalJSON

func (p *PendingPartialWithdrawal) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*PendingPartialWithdrawal) MarshalSSZ

func (t *PendingPartialWithdrawal) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *PendingPartialWithdrawal to SSZ-encoded bytes.

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) MarshalYAML

func (p *PendingPartialWithdrawal) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*PendingPartialWithdrawal) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *PendingPartialWithdrawal.

func (*PendingPartialWithdrawal) String

func (p *PendingPartialWithdrawal) String() string

String returns a string version of the structure.

func (*PendingPartialWithdrawal) UnmarshalJSON

func (p *PendingPartialWithdrawal) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*PendingPartialWithdrawal) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *PendingPartialWithdrawal from SSZ-encoded bytes.

func (*PendingPartialWithdrawal) UnmarshalYAML

func (p *PendingPartialWithdrawal) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SignedAggregateAndProof

type SignedAggregateAndProof struct {
	Message   *AggregateAndProof
	Signature phase0.BLSSignature `ssz-size:"96"`
}

SignedAggregateAndProof provides information about a signed aggregate and proof.

func (*SignedAggregateAndProof) HashTreeRoot

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

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

func (*SignedAggregateAndProof) HashTreeRootWith

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

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

func (*SignedAggregateAndProof) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*SignedAggregateAndProof) MarshalSSZ

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

MarshalSSZ marshals the *SignedAggregateAndProof to SSZ-encoded bytes.

func (*SignedAggregateAndProof) MarshalSSZTo

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

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

func (*SignedAggregateAndProof) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*SignedAggregateAndProof) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *SignedAggregateAndProof.

func (*SignedAggregateAndProof) String

func (s *SignedAggregateAndProof) String() string

String returns a string version of the structure.

func (*SignedAggregateAndProof) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*SignedAggregateAndProof) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *SignedAggregateAndProof from SSZ-encoded bytes.

func (*SignedAggregateAndProof) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type SignedBeaconBlock

type SignedBeaconBlock struct {
	Message   *BeaconBlock
	Signature phase0.BLSSignature `ssz-size:"96"`
}

SignedBeaconBlock is a signed beacon block.

func (*SignedBeaconBlock) HashTreeRoot

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

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

func (*SignedBeaconBlock) HashTreeRootWith

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

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

func (*SignedBeaconBlock) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*SignedBeaconBlock) MarshalSSZ

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

MarshalSSZ marshals the *SignedBeaconBlock to SSZ-encoded bytes.

func (*SignedBeaconBlock) MarshalSSZTo

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

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

func (*SignedBeaconBlock) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*SignedBeaconBlock) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *SignedBeaconBlock.

func (*SignedBeaconBlock) String

func (s *SignedBeaconBlock) String() string

String returns a string version of the structure.

func (*SignedBeaconBlock) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*SignedBeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *SignedBeaconBlock from SSZ-encoded bytes.

func (*SignedBeaconBlock) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type SingleAttestation

type SingleAttestation struct {
	CommitteeIndex phase0.CommitteeIndex
	AttesterIndex  phase0.ValidatorIndex
	Data           *phase0.AttestationData
	Signature      phase0.BLSSignature `ssz-size:"96"`
}

SingleAttestation is a new struct in electra for propagating network only Attestations. See: https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#singleattestation.

func (*SingleAttestation) HashTreeRoot

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

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

func (*SingleAttestation) HashTreeRootWith

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

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

func (*SingleAttestation) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*SingleAttestation) MarshalSSZ

func (t *SingleAttestation) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *SingleAttestation to SSZ-encoded bytes.

func (*SingleAttestation) MarshalSSZTo

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

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

func (*SingleAttestation) MarshalYAML

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

MarshalYAML implements yaml.Marshaller.

func (*SingleAttestation) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *SingleAttestation.

func (*SingleAttestation) String

func (a *SingleAttestation) String() string

String returns a string version of the structure.

func (*SingleAttestation) UnmarshalJSON

func (a *SingleAttestation) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SingleAttestation) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *SingleAttestation from SSZ-encoded bytes.

func (*SingleAttestation) UnmarshalYAML

func (a *SingleAttestation) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type WithdrawalRequest

type WithdrawalRequest struct {
	SourceAddress   bellatrix.ExecutionAddress `ssz-size:"20"`
	ValidatorPubkey phase0.BLSPubKey           `ssz-size:"48"`
	Amount          phase0.Gwei
}

WithdrawalRequest represents an execution layer withdraw request.

func (*WithdrawalRequest) HashTreeRoot

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

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

func (*WithdrawalRequest) HashTreeRootWith

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

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

func (*WithdrawalRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*WithdrawalRequest) MarshalSSZ

func (t *WithdrawalRequest) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *WithdrawalRequest to SSZ-encoded bytes.

func (*WithdrawalRequest) MarshalSSZTo

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

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

func (*WithdrawalRequest) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*WithdrawalRequest) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *WithdrawalRequest.

func (*WithdrawalRequest) String

func (e *WithdrawalRequest) String() string

String returns a string version of the structure.

func (*WithdrawalRequest) UnmarshalJSON

func (e *WithdrawalRequest) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*WithdrawalRequest) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *WithdrawalRequest from SSZ-encoded bytes.

func (*WithdrawalRequest) UnmarshalYAML

func (e *WithdrawalRequest) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

Jump to

Keyboard shortcuts

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