bellatrix

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

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

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

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

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

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

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

Index

Constants

View Source
const ExecutionAddressLength = 20

ExecutionAddressLength is the number of bytes in an execution address.

View Source
const FeeRecipientLength = 20

FeeRecipientLength is the number of bytes in an execution fee recipient.

View Source
const MaxBytesPerTransaction = 1_073_741_824

MaxBytesPerTransaction is the maximum number of bytes in a transaction.

View Source
const MaxTransactionsPerPayload = 1_048_576

MaxTransactionsPerPayload is the maximum number of transactions in a payload.

Variables

This section is empty.

Functions

This section is empty.

Types

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 []*phase0.AttesterSlashing    `dynssz-max:"MAX_ATTESTER_SLASHINGS" ssz-max:"2"`
	Attestations      []*phase0.Attestation         `dynssz-max:"MAX_ATTESTATIONS"       ssz-max:"128"`
	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  *ExecutionPayload
}

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 *ExecutionPayloadHeader
}

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 (s *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 (s *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 (s *BeaconState) String() string

String returns a string version of the structure.

func (*BeaconState) UnmarshalJSON

func (s *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 (s *BeaconState) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type ExecutionAddress

type ExecutionAddress [20]byte

ExecutionAddress is a execution address.

func (ExecutionAddress) Format

func (a ExecutionAddress) Format(state fmt.State, v rune)

Format formats the execution address.

func (ExecutionAddress) IsZero

func (a ExecutionAddress) IsZero() bool

IsZero returns true if the execution address is zero.

func (ExecutionAddress) MarshalJSON

func (a ExecutionAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (ExecutionAddress) MarshalYAML

func (a ExecutionAddress) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (ExecutionAddress) String

func (a ExecutionAddress) String() string

String returns an EIP-55 string version of the address.

func (*ExecutionAddress) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*ExecutionAddress) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type ExecutionPayload

type ExecutionPayload struct {
	ParentHash    phase0.Hash32    `ssz-size:"32"`
	FeeRecipient  ExecutionAddress `ssz-size:"20"`
	StateRoot     [32]byte         `ssz-size:"32"`
	ReceiptsRoot  [32]byte         `ssz-size:"32"`
	LogsBloom     [256]byte        `ssz-size:"256"`
	PrevRandao    [32]byte         `ssz-size:"32"`
	BlockNumber   uint64
	GasLimit      uint64
	GasUsed       uint64
	Timestamp     uint64
	ExtraData     []byte        `dynssz-max:"MAX_EXTRA_DATA_BYTES"                                   ssz-max:"32"`
	BaseFeePerGas [32]byte      `ssz-size:"32"`
	BlockHash     phase0.Hash32 `ssz-size:"32"`
	Transactions  []Transaction `dynssz-max:"MAX_TRANSACTIONS_PER_PAYLOAD,MAX_BYTES_PER_TRANSACTION" ssz-max:"1048576,1073741824"`
}

ExecutionPayload represents an execution layer payload.

func (*ExecutionPayload) HashTreeRoot

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

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

func (*ExecutionPayload) HashTreeRootWith

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

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

func (*ExecutionPayload) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ExecutionPayload) MarshalSSZ

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

MarshalSSZ marshals the *ExecutionPayload to SSZ-encoded bytes.

func (*ExecutionPayload) MarshalSSZTo

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

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

func (*ExecutionPayload) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*ExecutionPayload) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *ExecutionPayload.

func (*ExecutionPayload) String

func (e *ExecutionPayload) String() string

String returns a string version of the structure.

func (*ExecutionPayload) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*ExecutionPayload) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *ExecutionPayload from SSZ-encoded bytes.

func (*ExecutionPayload) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type ExecutionPayloadHeader

type ExecutionPayloadHeader struct {
	ParentHash       phase0.Hash32    `ssz-size:"32"`
	FeeRecipient     ExecutionAddress `ssz-size:"20"`
	StateRoot        [32]byte         `ssz-size:"32"`
	ReceiptsRoot     [32]byte         `ssz-size:"32"`
	LogsBloom        [256]byte        `ssz-size:"256"`
	PrevRandao       [32]byte         `ssz-size:"32"`
	BlockNumber      uint64
	GasLimit         uint64
	GasUsed          uint64
	Timestamp        uint64
	ExtraData        []byte        `ssz-max:"32"`
	BaseFeePerGas    [32]byte      `ssz-size:"32"`
	BlockHash        phase0.Hash32 `ssz-size:"32"`
	TransactionsRoot phase0.Root   `ssz-size:"32"`
}

ExecutionPayloadHeader represents an execution layer payload header.

func (*ExecutionPayloadHeader) HashTreeRoot

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

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

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

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

MarshalJSON implements json.Marshaler.

func (*ExecutionPayloadHeader) MarshalSSZ

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

MarshalSSZ marshals the *ExecutionPayloadHeader to SSZ-encoded bytes.

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

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

MarshalYAML implements yaml.Marshaler.

func (*ExecutionPayloadHeader) SizeSSZ

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

SizeSSZ returns the SSZ encoded size of the *ExecutionPayloadHeader.

func (*ExecutionPayloadHeader) String

func (e *ExecutionPayloadHeader) String() string

String returns a string version of the structure.

func (*ExecutionPayloadHeader) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*ExecutionPayloadHeader) UnmarshalSSZ

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

UnmarshalSSZ unmarshals the *ExecutionPayloadHeader from SSZ-encoded bytes.

func (*ExecutionPayloadHeader) UnmarshalYAML

func (e *ExecutionPayloadHeader) 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 Transaction

type Transaction []byte

Transaction is an opaque execution layer transaction.

func (Transaction) MarshalJSON

func (t Transaction) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Transaction) MarshalYAML

func (t Transaction) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (Transaction) UnmarshalJSON

func (t Transaction) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Transaction) UnmarshalYAML

func (t *Transaction) 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