deneb

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 68

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 367c18d749028ab50a36b03cb0fa7b77b79156f0a98a3cc790c3b313f17590ec Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 2dedb1f5d2650e4c46b876321a078714a2b403dfbfb16d9979abc24b4e9a0bda Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 7c7db5f5d8cf77db9db876c546000abe22a3dacb37a582ebb8922caf3949cc23 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: dffaa4b3795b90958e446ffbff909ac9f3b14442fa71e5c67c8951c107fcad34 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: ae4d4c8d72b56c93e1c82dc924fcc49db3374c053c030f13a2b7fd183c7155c5 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 11e48d50a0b734205176a879cdd916ec1792ce5fcdb41d3a75cef7d0ee4c0548 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 11e48d50a0b734205176a879cdd916ec1792ce5fcdb41d3a75cef7d0ee4c0548 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 367c18d749028ab50a36b03cb0fa7b77b79156f0a98a3cc790c3b313f17590ec Version: 0.1.3

Index

Constants

View Source
const BlobLength = 131072

BlobLength is the number of bytes in a data blob.

View Source
const KZGCommitmentLength = 48

KZGCommitmentLength is the number of bytes in a KZG commitment.

View Source
const KZGProofLength = 48

KZGProofLength is the number of bytes in a KZG proof.

View Source
const VersionedHashLength = 32

VersionedHashLength is the number of bytes in a versioned hash.

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

func (b *BeaconBlock) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconBlock object

func (*BeaconBlock) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlock object

func (*BeaconBlock) HashTreeRootWith

func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconBlock object with a hasher

func (*BeaconBlock) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconBlock) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlock object

func (*BeaconBlock) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlock object to a target array

func (*BeaconBlock) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlock) SizeSSZ

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

SizeSSZ returns the ssz encoded size in bytes for the BeaconBlock object

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 (b *BeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconBlock object

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    `ssz-max:"16"`
	AttesterSlashings     []*phase0.AttesterSlashing    `ssz-max:"2"`
	Attestations          []*phase0.Attestation         `ssz-max:"128"`
	Deposits              []*phase0.Deposit             `ssz-max:"16"`
	VoluntaryExits        []*phase0.SignedVoluntaryExit `ssz-max:"16"`
	SyncAggregate         *altair.SyncAggregate
	ExecutionPayload      *ExecutionPayload
	BLSToExecutionChanges []*capella.SignedBLSToExecutionChange `ssz-max:"16"`
	BlobKZGCommitments    []KZGCommitment                       `ssz-max:"4096" ssz-size:"?,48"`
}

BeaconBlockBody represents the body of a beacon block.

func (*BeaconBlockBody) GetTree

func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconBlockBody object

func (*BeaconBlockBody) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockBody object

func (*BeaconBlockBody) HashTreeRootWith

func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconBlockBody object with a hasher

func (*BeaconBlockBody) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconBlockBody) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlockBody object

func (*BeaconBlockBody) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlockBody object to a target array

func (*BeaconBlockBody) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlockBody) SizeSSZ

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

SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockBody object

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 (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconBlockBody object

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 `ssz-max:"16777216"                         ssz-size:"?,32"`
	ETH1Data                     *phase0.ETH1Data
	ETH1DataVotes                []*phase0.ETH1Data `ssz-max:"2048"`
	ETH1DepositIndex             uint64
	Validators                   []*phase0.Validator         `ssz-max:"1099511627776"`
	Balances                     []phase0.Gwei               `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 `ssz-max:"1099511627776"`
	CurrentEpochParticipation    []altair.ParticipationFlags `ssz-max:"1099511627776"`
	JustificationBits            bitfield.Bitvector4         `ssz-size:"1"`
	PreviousJustifiedCheckpoint  *phase0.Checkpoint
	CurrentJustifiedCheckpoint   *phase0.Checkpoint
	FinalizedCheckpoint          *phase0.Checkpoint
	InactivityScores             []uint64 `ssz-max:"1099511627776"`
	CurrentSyncCommittee         *altair.SyncCommittee
	NextSyncCommittee            *altair.SyncCommittee
	LatestExecutionPayloadHeader *ExecutionPayloadHeader
	NextWithdrawalIndex          capella.WithdrawalIndex
	NextWithdrawalValidatorIndex phase0.ValidatorIndex
	HistoricalSummaries          []*capella.HistoricalSummary `ssz-max:"16777216"`
}

BeaconState represents a beacon state.

func (*BeaconState) GetTree added in v0.17.0

func (b *BeaconState) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconState object

func (*BeaconState) HashTreeRoot added in v0.17.0

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

HashTreeRoot ssz hashes the BeaconState object

func (*BeaconState) HashTreeRootWith added in v0.17.0

func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconState object with a hasher

func (*BeaconState) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*BeaconState) MarshalSSZ added in v0.17.0

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

MarshalSSZ ssz marshals the BeaconState object

func (*BeaconState) MarshalSSZTo added in v0.17.0

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

MarshalSSZTo ssz marshals the BeaconState object to a target array

func (*BeaconState) MarshalYAML added in v0.17.0

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

MarshalYAML implements yaml.Marshaler.

func (*BeaconState) SizeSSZ added in v0.17.0

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

SizeSSZ returns the ssz encoded size in bytes for the BeaconState object

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 added in v0.17.0

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

UnmarshalSSZ ssz unmarshals the BeaconState object

func (*BeaconState) UnmarshalYAML added in v0.17.0

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

UnmarshalYAML implements yaml.Unmarshaler.

type Blob added in v0.16.4

type Blob [131072]byte

Blob is a data blob.

func (Blob) Format added in v0.17.0

func (b Blob) Format(state fmt.State, v rune)

Format formats the blob.

func (Blob) MarshalJSON added in v0.17.0

func (b Blob) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Blob) MarshalYAML added in v0.17.0

func (b Blob) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (Blob) String added in v0.17.0

func (b Blob) String() string

String returns a string version of the structure.

func (*Blob) UnmarshalJSON added in v0.17.0

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

UnmarshalJSON implements json.Unmarshaler.

func (*Blob) UnmarshalYAML added in v0.17.0

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

UnmarshalYAML implements yaml.Unmarshaler.

type BlobIdentifier added in v0.16.4

type BlobIdentifier struct {
	BlockRoot phase0.Root `ssz-size:"32"`
	Index     BlobIndex
}

BlobIdentifier represents a data blob identifier.

func (*BlobIdentifier) GetTree added in v0.16.4

func (b *BlobIdentifier) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BlobIdentifier object

func (*BlobIdentifier) HashTreeRoot added in v0.16.4

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

HashTreeRoot ssz hashes the BlobIdentifier object

func (*BlobIdentifier) HashTreeRootWith added in v0.16.4

func (b *BlobIdentifier) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BlobIdentifier object with a hasher

func (*BlobIdentifier) MarshalJSON added in v0.16.4

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

MarshalJSON implements json.Marshaler.

func (*BlobIdentifier) MarshalSSZ added in v0.16.4

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

MarshalSSZ ssz marshals the BlobIdentifier object

func (*BlobIdentifier) MarshalSSZTo added in v0.16.4

func (b *BlobIdentifier) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlobIdentifier object to a target array

func (*BlobIdentifier) MarshalYAML added in v0.16.4

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

MarshalYAML implements yaml.Marshaler.

func (*BlobIdentifier) SizeSSZ added in v0.16.4

func (b *BlobIdentifier) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlobIdentifier object

func (*BlobIdentifier) String added in v0.16.4

func (b *BlobIdentifier) String() string

String returns a string version of the structure.

func (*BlobIdentifier) UnmarshalJSON added in v0.16.4

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

UnmarshalJSON implements json.Unmarshaler.

func (*BlobIdentifier) UnmarshalSSZ added in v0.16.4

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

UnmarshalSSZ ssz unmarshals the BlobIdentifier object

func (*BlobIdentifier) UnmarshalYAML added in v0.16.4

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

UnmarshalYAML implements yaml.Unmarshaler.

type BlobIndex

type BlobIndex uint64

BlobIndex is the index of a blob in a block.

func (*BlobIndex) MarshalJSON added in v0.17.0

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

MarshalJSON implements json.Marshaler.

func (*BlobIndex) UnmarshalJSON added in v0.17.0

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

UnmarshalJSON implements json.Unmarshaler.

type BlobSidecar added in v0.16.4

type BlobSidecar struct {
	Index                       BlobIndex
	Blob                        Blob          `ssz-size:"131072"`
	KZGCommitment               KZGCommitment `ssz-size:"48"`
	KZGProof                    KZGProof      `ssz-size:"48"`
	SignedBlockHeader           *phase0.SignedBeaconBlockHeader
	KZGCommitmentInclusionProof KZGCommitmentInclusionProof `ssz-size:"544"`
}

BlobSidecar represents a data blob sidecar.

func (*BlobSidecar) GetTree added in v0.16.4

func (b *BlobSidecar) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BlobSidecar object

func (*BlobSidecar) HashTreeRoot added in v0.16.4

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

HashTreeRoot ssz hashes the BlobSidecar object

func (*BlobSidecar) HashTreeRootWith added in v0.16.4

func (b *BlobSidecar) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BlobSidecar object with a hasher

func (*BlobSidecar) MarshalJSON added in v0.16.4

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

MarshalJSON implements json.Marshaler.

func (*BlobSidecar) MarshalSSZ added in v0.16.4

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

MarshalSSZ ssz marshals the BlobSidecar object

func (*BlobSidecar) MarshalSSZTo added in v0.16.4

func (b *BlobSidecar) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlobSidecar object to a target array

func (*BlobSidecar) MarshalYAML added in v0.16.4

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

MarshalYAML implements yaml.Marshaler.

func (*BlobSidecar) SizeSSZ added in v0.16.4

func (b *BlobSidecar) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlobSidecar object

func (*BlobSidecar) String added in v0.16.4

func (b *BlobSidecar) String() string

String returns a string version of the structure.

func (*BlobSidecar) UnmarshalJSON added in v0.16.4

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

UnmarshalJSON implements json.Unmarshaler.

func (*BlobSidecar) UnmarshalSSZ added in v0.16.4

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

UnmarshalSSZ ssz unmarshals the BlobSidecar object

func (*BlobSidecar) UnmarshalYAML added in v0.16.4

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

UnmarshalYAML implements yaml.Unmarshaler.

type ExecutionPayload

type ExecutionPayload struct {
	ParentHash    phase0.Hash32              `ssz-size:"32"`
	FeeRecipient  bellatrix.ExecutionAddress `ssz-size:"20"`
	StateRoot     phase0.Root                `ssz-size:"32"`
	ReceiptsRoot  phase0.Root                `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 *uint256.Int            `ssz-size:"32"`
	BlockHash     phase0.Hash32           `ssz-size:"32"`
	Transactions  []bellatrix.Transaction `ssz-max:"1048576,1073741824" ssz-size:"?,?"`
	Withdrawals   []*capella.Withdrawal   `ssz-max:"16"`
	BlobGasUsed   uint64
	ExcessBlobGas uint64
}

ExecutionPayload represents an execution layer payload.

func (*ExecutionPayload) GetTree

func (e *ExecutionPayload) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ExecutionPayload object

func (*ExecutionPayload) HashTreeRoot

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

HashTreeRoot ssz hashes the ExecutionPayload object

func (*ExecutionPayload) HashTreeRootWith

func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ExecutionPayload object with a hasher

func (*ExecutionPayload) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ExecutionPayload) MarshalSSZ

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

MarshalSSZ ssz marshals the ExecutionPayload object

func (*ExecutionPayload) MarshalSSZTo

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

MarshalSSZTo ssz marshals the ExecutionPayload object to a target array

func (*ExecutionPayload) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*ExecutionPayload) SizeSSZ

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

SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayload object

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 (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ExecutionPayload object

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     bellatrix.ExecutionAddress `ssz-size:"20"`
	StateRoot        phase0.Root                `ssz-size:"32"`
	ReceiptsRoot     phase0.Root                `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    *uint256.Int  `ssz-size:"32"`
	BlockHash        phase0.Hash32 `ssz-size:"32"`
	TransactionsRoot phase0.Root   `ssz-size:"32"`
	WithdrawalsRoot  phase0.Root   `ssz-size:"32"`
	BlobGasUsed      uint64
	ExcessBlobGas    uint64
}

ExecutionPayloadHeader represents an execution layer payload header.

func (*ExecutionPayloadHeader) GetTree

func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) HashTreeRoot

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

HashTreeRoot ssz hashes the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) HashTreeRootWith

func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ExecutionPayloadHeader object with a hasher

func (*ExecutionPayloadHeader) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*ExecutionPayloadHeader) MarshalSSZ

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

MarshalSSZ ssz marshals the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) MarshalSSZTo

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

MarshalSSZTo ssz marshals the ExecutionPayloadHeader object to a target array

func (*ExecutionPayloadHeader) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*ExecutionPayloadHeader) SizeSSZ

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

SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayloadHeader object

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 (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type KZGCommitment added in v0.19.5

type KZGCommitment [48]byte

KZGCommitment is an KZG commitment.

func (KZGCommitment) Format added in v0.19.5

func (k KZGCommitment) Format(state fmt.State, v rune)

Format formats the KZG commitment.

func (KZGCommitment) MarshalJSON added in v0.19.5

func (k KZGCommitment) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (KZGCommitment) MarshalYAML added in v0.19.5

func (k KZGCommitment) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (KZGCommitment) String added in v0.19.5

func (k KZGCommitment) String() string

String returns a string version of the structure.

func (*KZGCommitment) UnmarshalJSON added in v0.19.5

func (k *KZGCommitment) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*KZGCommitment) UnmarshalYAML added in v0.19.5

func (k *KZGCommitment) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type KZGCommitmentInclusionProof added in v0.19.5

type KZGCommitmentInclusionProof [kzgCommitmentProofElements][kzgCommitmentProofElementLength]byte

KZGCommitmentInclusionProof is the proof of inclusion for a KZG commitment.

func (*KZGCommitmentInclusionProof) MarshalJSON added in v0.19.5

func (k *KZGCommitmentInclusionProof) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (KZGCommitmentInclusionProof) MarshalYAML added in v0.19.5

func (k KZGCommitmentInclusionProof) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*KZGCommitmentInclusionProof) UnmarshalJSON added in v0.19.5

func (k *KZGCommitmentInclusionProof) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*KZGCommitmentInclusionProof) UnmarshalYAML added in v0.19.5

func (k *KZGCommitmentInclusionProof) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type KZGProof added in v0.19.5

type KZGProof [48]byte

KZGProof is an KZG proof.

func (KZGProof) Format added in v0.19.5

func (k KZGProof) Format(state fmt.State, v rune)

Format formats the KZG commitment.

func (KZGProof) MarshalJSON added in v0.19.5

func (k KZGProof) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (KZGProof) MarshalYAML added in v0.19.5

func (k KZGProof) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (KZGProof) String added in v0.19.5

func (k KZGProof) String() string

String returns a string version of the structure.

func (*KZGProof) UnmarshalJSON added in v0.19.5

func (k *KZGProof) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*KZGProof) UnmarshalYAML added in v0.19.5

func (k *KZGProof) 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) GetTree

func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SignedBeaconBlock object

func (*SignedBeaconBlock) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedBeaconBlock object

func (*SignedBeaconBlock) HashTreeRootWith

func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SignedBeaconBlock object with a hasher

func (*SignedBeaconBlock) MarshalJSON

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

MarshalJSON implements json.Marshaler.

func (*SignedBeaconBlock) MarshalSSZ

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

MarshalSSZ ssz marshals the SignedBeaconBlock object

func (*SignedBeaconBlock) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SignedBeaconBlock object to a target array

func (*SignedBeaconBlock) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*SignedBeaconBlock) SizeSSZ

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

SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlock object

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 (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedBeaconBlock object

func (*SignedBeaconBlock) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type VersionedHash

type VersionedHash [32]byte

VersionedHash is a hash with version information.

func (VersionedHash) Format added in v0.17.0

func (h VersionedHash) Format(state fmt.State, v rune)

Format formats the root.

func (*VersionedHash) MarshalJSON added in v0.17.0

func (h *VersionedHash) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*VersionedHash) MarshalYAML added in v0.17.0

func (h *VersionedHash) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (VersionedHash) String added in v0.17.0

func (h VersionedHash) String() string

String returns a string version of the structure.

func (*VersionedHash) UnmarshalJSON added in v0.17.0

func (h *VersionedHash) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*VersionedHash) UnmarshalYAML added in v0.17.0

func (h *VersionedHash) 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