spectests

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 80c53645a8d335a36f3f7609b335a46e64d1210e6c73a4a44da3367731dceb82

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateAndProof

type AggregateAndProof struct {
	Index          uint64             `json:"aggregator_index"`
	Aggregate      *Attestation       `json:"aggregate"`
	SelectionProof external.Signature `json:"selection_proof" ssz-size:"96"`
}

func (*AggregateAndProof) GetTree

func (a *AggregateAndProof) GetTree() (*ssz.Node, error)

GetTree ssz hashes the AggregateAndProof object

func (*AggregateAndProof) HashTreeRoot

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

HashTreeRoot ssz hashes the AggregateAndProof object

func (*AggregateAndProof) HashTreeRootWith

func (a *AggregateAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the AggregateAndProof object with a hasher

func (*AggregateAndProof) MarshalSSZ

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

MarshalSSZ ssz marshals the AggregateAndProof object

func (*AggregateAndProof) MarshalSSZTo

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

MarshalSSZTo ssz marshals the AggregateAndProof object to a target array

func (*AggregateAndProof) SizeSSZ

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

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

func (*AggregateAndProof) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the AggregateAndProof object

type Attestation

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

func (*Attestation) GetTree

func (a *Attestation) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Attestation object

func (*Attestation) HashTreeRoot

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

HashTreeRoot ssz hashes the Attestation object

func (*Attestation) HashTreeRootWith

func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Attestation object with a hasher

func (*Attestation) MarshalSSZ

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

MarshalSSZ ssz marshals the Attestation object

func (*Attestation) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Attestation object to a target array

func (*Attestation) SizeSSZ

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

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

func (*Attestation) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Attestation object

type AttestationData

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

func (*AttestationData) GetTree

func (a *AttestationData) GetTree() (*ssz.Node, error)

GetTree ssz hashes the AttestationData object

func (*AttestationData) HashTreeRoot

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

HashTreeRoot ssz hashes the AttestationData object

func (*AttestationData) HashTreeRootWith

func (a *AttestationData) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the AttestationData object with a hasher

func (*AttestationData) MarshalSSZ

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

MarshalSSZ ssz marshals the AttestationData object

func (*AttestationData) MarshalSSZTo

func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the AttestationData object to a target array

func (*AttestationData) SizeSSZ

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

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

func (*AttestationData) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the AttestationData object

type AttesterSlashing

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

func (*AttesterSlashing) GetTree

func (a *AttesterSlashing) GetTree() (*ssz.Node, error)

GetTree ssz hashes the AttesterSlashing object

func (*AttesterSlashing) HashTreeRoot

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

HashTreeRoot ssz hashes the AttesterSlashing object

func (*AttesterSlashing) HashTreeRootWith

func (a *AttesterSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the AttesterSlashing object with a hasher

func (*AttesterSlashing) MarshalSSZ

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

MarshalSSZ ssz marshals the AttesterSlashing object

func (*AttesterSlashing) MarshalSSZTo

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

MarshalSSZTo ssz marshals the AttesterSlashing object to a target array

func (*AttesterSlashing) SizeSSZ

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

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

func (*AttesterSlashing) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the AttesterSlashing object

type BeaconBlock

type BeaconBlock 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"`
	Body          *BeaconBlockBodyPhase0 `json:"body"`
}

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

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

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

func (*BeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconBlock object

type BeaconBlockBodyAltair

type BeaconBlockBodyAltair struct {
	RandaoReveal      []byte                 `json:"randao_reveal" ssz-size:"96"`
	Eth1Data          *Eth1Data              `json:"eth1_data"`
	Graffiti          [32]byte               `json:"graffiti" ssz-size:"32"`
	ProposerSlashings []*ProposerSlashing    `json:"proposer_slashings" ssz-max:"16"`
	AttesterSlashings []*AttesterSlashing    `json:"attester_slashings" ssz-max:"2"`
	Attestations      []*Attestation         `json:"attestations" ssz-max:"128"`
	Deposits          []*Deposit             `json:"deposits" ssz-max:"16"`
	VoluntaryExits    []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
	SyncAggregate     *SyncAggregate         `json:"sync_aggregate"`
}

func (*BeaconBlockBodyAltair) GetTree

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

GetTree ssz hashes the BeaconBlockBodyAltair object

func (*BeaconBlockBodyAltair) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockBodyAltair object

func (*BeaconBlockBodyAltair) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconBlockBodyAltair object with a hasher

func (*BeaconBlockBodyAltair) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlockBodyAltair object

func (*BeaconBlockBodyAltair) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlockBodyAltair object to a target array

func (*BeaconBlockBodyAltair) SizeSSZ

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

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

func (*BeaconBlockBodyAltair) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconBlockBodyAltair object

type BeaconBlockBodyBellatrix

type BeaconBlockBodyBellatrix struct {
	RandaoReveal      []byte                 `json:"randao_reveal" ssz-size:"96"`
	Eth1Data          *Eth1Data              `json:"eth1_data"`
	Graffiti          [32]byte               `json:"graffiti" ssz-size:"32"`
	ProposerSlashings []*ProposerSlashing    `json:"proposer_slashings" ssz-max:"16"`
	AttesterSlashings []*AttesterSlashing    `json:"attester_slashings" ssz-max:"2"`
	Attestations      []*Attestation         `json:"attestations" ssz-max:"128"`
	Deposits          []*Deposit             `json:"deposits" ssz-max:"16"`
	VoluntaryExits    []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
	SyncAggregate     *SyncAggregate         `json:"sync_aggregate"`
	ExecutionPayload  *ExecutionPayload      `json:"execution_payload"`
}

func (*BeaconBlockBodyBellatrix) GetTree

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

GetTree ssz hashes the BeaconBlockBodyBellatrix object

func (*BeaconBlockBodyBellatrix) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockBodyBellatrix object

func (*BeaconBlockBodyBellatrix) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconBlockBodyBellatrix object with a hasher

func (*BeaconBlockBodyBellatrix) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlockBodyBellatrix object

func (*BeaconBlockBodyBellatrix) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlockBodyBellatrix object to a target array

func (*BeaconBlockBodyBellatrix) SizeSSZ

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

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

func (*BeaconBlockBodyBellatrix) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconBlockBodyBellatrix object

type BeaconBlockBodyPhase0

type BeaconBlockBodyPhase0 struct {
	RandaoReveal      []byte                 `json:"randao_reveal" ssz-size:"96"`
	Eth1Data          *Eth1Data              `json:"eth1_data"`
	Graffiti          [32]byte               `json:"graffiti" ssz-size:"32"`
	ProposerSlashings []*ProposerSlashing    `json:"proposer_slashings" ssz-max:"16"`
	AttesterSlashings []*AttesterSlashing    `json:"attester_slashings" ssz-max:"2"`
	Attestations      []*Attestation         `json:"attestations" ssz-max:"128"`
	Deposits          []*Deposit             `json:"deposits" ssz-max:"16"`
	VoluntaryExits    []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
}

func (*BeaconBlockBodyPhase0) GetTree

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

GetTree ssz hashes the BeaconBlockBodyPhase0 object

func (*BeaconBlockBodyPhase0) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockBodyPhase0 object

func (*BeaconBlockBodyPhase0) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconBlockBodyPhase0 object with a hasher

func (*BeaconBlockBodyPhase0) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlockBodyPhase0 object

func (*BeaconBlockBodyPhase0) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlockBodyPhase0 object to a target array

func (*BeaconBlockBodyPhase0) SizeSSZ

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

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

func (*BeaconBlockBodyPhase0) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconBlockBodyPhase0 object

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

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

GetTree ssz hashes the BeaconBlockHeader object

func (*BeaconBlockHeader) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockHeader object

func (*BeaconBlockHeader) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconBlockHeader object with a hasher

func (*BeaconBlockHeader) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconBlockHeader object

func (*BeaconBlockHeader) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconBlockHeader object to a target array

func (*BeaconBlockHeader) SizeSSZ

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

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

func (*BeaconBlockHeader) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconBlockHeader object

type BeaconState

type BeaconState struct {
	GenesisTime                 uint64                `json:"genesis_time"`
	GenesisValidatorsRoot       []byte                `json:"genesis_validators_root" ssz-size:"32"`
	Slot                        uint64                `json:"slot"`
	Fork                        *Fork                 `json:"fork"`
	LatestBlockHeader           *BeaconBlockHeader    `json:"latest_block_header"`
	BlockRoots                  [][]byte              `json:"block_roots" ssz-size:"8192,32"`
	StateRoots                  [][]byte              `json:"state_roots" ssz-size:"8192,32"`
	HistoricalRoots             [][]byte              `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
	Eth1Data                    *Eth1Data             `json:"eth1_data"`
	Eth1DataVotes               []*Eth1Data           `json:"eth1_data_votes" ssz-max:"2048"`
	Eth1DepositIndex            uint64                `json:"eth1_deposit_index"`
	Validators                  []*Validator          `json:"validators" ssz-max:"1099511627776"`
	Balances                    []uint64              `json:"balances" ssz-max:"1099511627776"`
	RandaoMixes                 [][]byte              `json:"randao_mixes" ssz-size:"65536,32"`
	Slashings                   []uint64              `json:"slashings" ssz-size:"8192"`
	PreviousEpochAttestations   []*PendingAttestation `json:"previous_epoch_attestations" ssz-max:"4096"`
	CurrentEpochAttestations    []*PendingAttestation `json:"current_epoch_attestations" ssz-max:"4096"`
	JustificationBits           []byte                `json:"justification_bits" ssz-size:"1"`
	PreviousJustifiedCheckpoint *Checkpoint           `json:"previous_justified_checkpoint"`
	CurrentJustifiedCheckpoint  *Checkpoint           `json:"current_justified_checkpoint"`
	FinalizedCheckpoint         *Checkpoint           `json:"finalized_checkpoint"`
}

func (*BeaconState) GetTree

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

GetTree ssz hashes the BeaconState object

func (*BeaconState) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconState object

func (*BeaconState) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconState object with a hasher

func (*BeaconState) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconState object

func (*BeaconState) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconState object to a target array

func (*BeaconState) SizeSSZ

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

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

func (*BeaconState) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconState object

type BeaconStateAltair

type BeaconStateAltair struct {
	GenesisTime                 uint64             `json:"genesis_time"`
	GenesisValidatorsRoot       []byte             `json:"genesis_validators_root" ssz-size:"32"`
	Slot                        uint64             `json:"slot"`
	Fork                        *Fork              `json:"fork"`
	LatestBlockHeader           *BeaconBlockHeader `json:"latest_block_header"`
	BlockRoots                  [][]byte           `json:"block_roots" ssz-size:"8192,32"`
	StateRoots                  [][]byte           `json:"state_roots" ssz-size:"8192,32"`
	HistoricalRoots             [][]byte           `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
	Eth1Data                    *Eth1Data          `json:"eth1_data"`
	Eth1DataVotes               []*Eth1Data        `json:"eth1_data_votes" ssz-max:"2048"`
	Eth1DepositIndex            uint64             `json:"eth1_deposit_index"`
	Validators                  []*Validator       `json:"validators" ssz-max:"1099511627776"`
	Balances                    []uint64           `json:"balances" ssz-max:"1099511627776"`
	RandaoMixes                 [][]byte           `json:"randao_mixes" ssz-size:"65536,32"`
	Slashings                   []uint64           `json:"slashings" ssz-size:"8192"`
	PreviousEpochParticipation  []byte             `json:"previous_epoch_participation" ssz-max:"1099511627776"`
	CurrentEpochParticipation   []byte             `json:"current_epoch_participation" ssz-max:"1099511627776"`
	JustificationBits           []byte             `json:"justification_bits" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitvector4" ssz-size:"1"`
	PreviousJustifiedCheckpoint *Checkpoint        `json:"previous_justified_checkpoint"`
	CurrentJustifiedCheckpoint  *Checkpoint        `json:"current_justified_checkpoint"`
	FinalizedCheckpoint         *Checkpoint        `json:"finalized_checkpoint"`
	InactivityScores            []uint64           `json:"inactivity_scores" ssz-max:"1099511627776"`
	CurrentSyncCommittee        *SyncCommittee     `json:"current_sync_committee"`
	NextSyncCommittee           *SyncCommittee     `json:"next_sync_committee"`
}

func (*BeaconStateAltair) GetTree

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

GetTree ssz hashes the BeaconStateAltair object

func (*BeaconStateAltair) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconStateAltair object

func (*BeaconStateAltair) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconStateAltair object with a hasher

func (*BeaconStateAltair) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconStateAltair object

func (*BeaconStateAltair) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconStateAltair object to a target array

func (*BeaconStateAltair) SizeSSZ

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

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

func (*BeaconStateAltair) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconStateAltair object

type BeaconStateBellatrix

type BeaconStateBellatrix struct {
	GenesisTime                  uint64                  `json:"genesis_time"`
	GenesisValidatorsRoot        []byte                  `json:"genesis_validators_root" ssz-size:"32"`
	Slot                         uint64                  `json:"slot"`
	Fork                         *Fork                   `json:"fork"`
	LatestBlockHeader            *BeaconBlockHeader      `json:"latest_block_header"`
	BlockRoots                   [][]byte                `json:"block_roots" ssz-size:"8192,32"`
	StateRoots                   [][]byte                `json:"state_roots" ssz-size:"8192,32"`
	HistoricalRoots              [][]byte                `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
	Eth1Data                     *Eth1Data               `json:"eth1_data"`
	Eth1DataVotes                []*Eth1Data             `json:"eth1_data_votes" ssz-max:"2048"`
	Eth1DepositIndex             uint64                  `json:"eth1_deposit_index"`
	Validators                   []*Validator            `json:"validators" ssz-max:"1099511627776"`
	Balances                     []uint64                `json:"balances" ssz-max:"1099511627776"`
	RandaoMixes                  [][]byte                `json:"randao_mixes" ssz-size:"65536,32"`
	Slashings                    []uint64                `json:"slashings" ssz-size:"8192"`
	PreviousEpochParticipation   []byte                  `json:"previous_epoch_participation" ssz-max:"1099511627776"`
	CurrentEpochParticipation    []byte                  `json:"current_epoch_participation" ssz-max:"1099511627776"`
	JustificationBits            []byte                  `json:"justification_bits" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitvector4" ssz-size:"1"`
	PreviousJustifiedCheckpoint  *Checkpoint             `json:"previous_justified_checkpoint"`
	CurrentJustifiedCheckpoint   *Checkpoint             `json:"current_justified_checkpoint"`
	FinalizedCheckpoint          *Checkpoint             `json:"finalized_checkpoint"`
	InactivityScores             []uint64                `json:"inactivity_scores" ssz-max:"1099511627776"`
	CurrentSyncCommittee         *SyncCommittee          `json:"current_sync_committee"`
	NextSyncCommittee            *SyncCommittee          `json:"next_sync_committee"`
	LatestExecutionPayloadHeader *ExecutionPayloadHeader `json:"latest_execution_payload_header"`
}

func (*BeaconStateBellatrix) GetTree

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

GetTree ssz hashes the BeaconStateBellatrix object

func (*BeaconStateBellatrix) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconStateBellatrix object

func (*BeaconStateBellatrix) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BeaconStateBellatrix object with a hasher

func (*BeaconStateBellatrix) MarshalSSZ

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

MarshalSSZ ssz marshals the BeaconStateBellatrix object

func (*BeaconStateBellatrix) MarshalSSZTo

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

MarshalSSZTo ssz marshals the BeaconStateBellatrix object to a target array

func (*BeaconStateBellatrix) SizeSSZ

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

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

func (*BeaconStateBellatrix) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the BeaconStateBellatrix object

type Checkpoint

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

func (*Checkpoint) GetTree

func (c *Checkpoint) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Checkpoint object

func (*Checkpoint) HashTreeRoot

func (c *Checkpoint) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Checkpoint object

func (*Checkpoint) HashTreeRootWith

func (c *Checkpoint) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Checkpoint object with a hasher

func (*Checkpoint) MarshalSSZ

func (c *Checkpoint) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Checkpoint object

func (*Checkpoint) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Checkpoint object to a target array

func (*Checkpoint) SizeSSZ

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

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

func (*Checkpoint) UnmarshalSSZ

func (c *Checkpoint) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Checkpoint object

type Deposit

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

func (*Deposit) GetTree

func (d *Deposit) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Deposit object

func (*Deposit) HashTreeRoot

func (d *Deposit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Deposit object

func (*Deposit) HashTreeRootWith

func (d *Deposit) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Deposit object with a hasher

func (*Deposit) MarshalSSZ

func (d *Deposit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Deposit object

func (*Deposit) MarshalSSZTo

func (d *Deposit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Deposit object to a target array

func (*Deposit) SizeSSZ

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

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

func (*Deposit) UnmarshalSSZ

func (d *Deposit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Deposit object

type DepositData

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

func (*DepositData) GetTree

func (d *DepositData) GetTree() (*ssz.Node, error)

GetTree ssz hashes the DepositData object

func (*DepositData) HashTreeRoot

func (d *DepositData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositData object

func (*DepositData) HashTreeRootWith

func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the DepositData object with a hasher

func (*DepositData) MarshalSSZ

func (d *DepositData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositData object

func (*DepositData) MarshalSSZTo

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

MarshalSSZTo ssz marshals the DepositData object to a target array

func (*DepositData) SizeSSZ

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

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

func (*DepositData) UnmarshalSSZ

func (d *DepositData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositData object

type DepositMessage

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

func (*DepositMessage) GetTree

func (d *DepositMessage) GetTree() (*ssz.Node, error)

GetTree ssz hashes the DepositMessage object

func (*DepositMessage) HashTreeRoot

func (d *DepositMessage) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositMessage object

func (*DepositMessage) HashTreeRootWith

func (d *DepositMessage) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the DepositMessage object with a hasher

func (*DepositMessage) MarshalSSZ

func (d *DepositMessage) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositMessage object

func (*DepositMessage) MarshalSSZTo

func (d *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the DepositMessage object to a target array

func (*DepositMessage) SizeSSZ

func (d *DepositMessage) SizeSSZ() (size int)

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

func (*DepositMessage) UnmarshalSSZ

func (d *DepositMessage) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositMessage object

type Dummy

type Dummy struct {
}

func (*Dummy) GetTree

func (d *Dummy) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Dummy object

func (*Dummy) HashTreeRoot

func (d *Dummy) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Dummy object

func (*Dummy) HashTreeRootWith

func (d *Dummy) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Dummy object with a hasher

func (*Dummy) MarshalSSZ

func (d *Dummy) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Dummy object

func (*Dummy) MarshalSSZTo

func (d *Dummy) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Dummy object to a target array

func (*Dummy) SizeSSZ

func (d *Dummy) SizeSSZ() (size int)

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

func (*Dummy) UnmarshalSSZ

func (d *Dummy) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Dummy object

type ErrorResponse

type ErrorResponse struct {
	Message external.DynamicBytes `ssz-max:"256"`
}

func (*ErrorResponse) GetTree

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

GetTree ssz hashes the ErrorResponse object

func (*ErrorResponse) HashTreeRoot

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

HashTreeRoot ssz hashes the ErrorResponse object

func (*ErrorResponse) HashTreeRootWith

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

HashTreeRootWith ssz hashes the ErrorResponse object with a hasher

func (*ErrorResponse) MarshalSSZ

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

MarshalSSZ ssz marshals the ErrorResponse object

func (*ErrorResponse) MarshalSSZTo

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

MarshalSSZTo ssz marshals the ErrorResponse object to a target array

func (*ErrorResponse) SizeSSZ

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

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

func (*ErrorResponse) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the ErrorResponse object

type Eth1Block

type Eth1Block struct {
	Timestamp    uint64 `json:"timestamp"`
	DepositRoot  []byte `json:"deposit_root" ssz-size:"32"`
	DepositCount uint64 `json:"deposit_count" ssz-size:"32"`
}

func (*Eth1Block) GetTree

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

GetTree ssz hashes the Eth1Block object

func (*Eth1Block) HashTreeRoot

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

HashTreeRoot ssz hashes the Eth1Block object

func (*Eth1Block) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Eth1Block object with a hasher

func (*Eth1Block) MarshalSSZ

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

MarshalSSZ ssz marshals the Eth1Block object

func (*Eth1Block) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Eth1Block object to a target array

func (*Eth1Block) SizeSSZ

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

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

func (*Eth1Block) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Eth1Block object

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

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

GetTree ssz hashes the Eth1Data object

func (*Eth1Data) HashTreeRoot

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

HashTreeRoot ssz hashes the Eth1Data object

func (*Eth1Data) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Eth1Data object with a hasher

func (*Eth1Data) MarshalSSZ

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

MarshalSSZ ssz marshals the Eth1Data object

func (*Eth1Data) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Eth1Data object to a target array

func (*Eth1Data) SizeSSZ

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

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

func (*Eth1Data) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Eth1Data object

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 [32]byte  `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"`
}

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

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

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

func (*ExecutionPayload) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the ExecutionPayload object

type ExecutionPayloadHeader

type ExecutionPayloadHeader struct {
	ParentHash       []byte `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash" ssz-size:"32"`
	FeeRecipient     []byte `protobuf:"bytes,2,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient" ssz-size:"20"`
	StateRoot        []byte `protobuf:"bytes,3,opt,name=state_root,json=stateRoot,proto3" json:"state_root" ssz-size:"32"`
	ReceiptsRoot     []byte `protobuf:"bytes,4,opt,name=receipts_root,json=receiptsRoot,proto3" json:"receipts_root" ssz-size:"32"`
	LogsBloom        []byte `protobuf:"bytes,5,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom" ssz-size:"256"`
	PrevRandao       []byte `protobuf:"bytes,6,opt,name=prev_randao,json=prevRandao,proto3" json:"prev_randao" ssz-size:"32"`
	BlockNumber      uint64 `protobuf:"varint,7,opt,name=block_number,json=blockNumber,proto3" json:"block_number"`
	GasLimit         uint64 `protobuf:"varint,8,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit"`
	GasUsed          uint64 `protobuf:"varint,9,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used"`
	Timestamp        uint64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp"`
	ExtraData        []byte `protobuf:"bytes,11,opt,name=extra_data,json=extraData,proto3" json:"extra_data" ssz-max:"32"`
	BaseFeePerGas    []byte `protobuf:"bytes,12,opt,name=base_fee_per_gas,json=baseFeePerGas,proto3" json:"base_fee_per_gas" ssz-size:"32"`
	BlockHash        []byte `protobuf:"bytes,13,opt,name=block_hash,json=blockHash,proto3" json:"block_hash" ssz-size:"32"`
	TransactionsRoot []byte `protobuf:"bytes,14,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root" ssz-size:"32"`
}

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

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

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

func (*ExecutionPayloadHeader) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the ExecutionPayloadHeader object

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

func (f *Fork) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Fork object

func (*Fork) HashTreeRoot

func (f *Fork) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Fork object

func (*Fork) HashTreeRootWith

func (f *Fork) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Fork object with a hasher

func (*Fork) MarshalSSZ

func (f *Fork) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Fork object

func (*Fork) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Fork object to a target array

func (*Fork) SizeSSZ

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

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

func (*Fork) UnmarshalSSZ

func (f *Fork) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Fork object

type Hash

type Hash [32]byte

type HistoricalBatch

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

func (*HistoricalBatch) GetTree

func (h *HistoricalBatch) GetTree() (*ssz.Node, error)

GetTree ssz hashes the HistoricalBatch object

func (*HistoricalBatch) HashTreeRoot

func (h *HistoricalBatch) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the HistoricalBatch object

func (*HistoricalBatch) HashTreeRootWith

func (h *HistoricalBatch) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the HistoricalBatch object with a hasher

func (*HistoricalBatch) MarshalSSZ

func (h *HistoricalBatch) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the HistoricalBatch object

func (*HistoricalBatch) MarshalSSZTo

func (h *HistoricalBatch) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the HistoricalBatch object to a target array

func (*HistoricalBatch) SizeSSZ

func (h *HistoricalBatch) SizeSSZ() (size int)

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

func (*HistoricalBatch) UnmarshalSSZ

func (h *HistoricalBatch) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the HistoricalBatch object

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

func (i *IndexedAttestation) GetTree() (*ssz.Node, error)

GetTree ssz hashes the IndexedAttestation object

func (*IndexedAttestation) HashTreeRoot

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

HashTreeRoot ssz hashes the IndexedAttestation object

func (*IndexedAttestation) HashTreeRootWith

func (i *IndexedAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the IndexedAttestation object with a hasher

func (*IndexedAttestation) MarshalSSZ

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

MarshalSSZ ssz marshals the IndexedAttestation object

func (*IndexedAttestation) MarshalSSZTo

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

MarshalSSZTo ssz marshals the IndexedAttestation object to a target array

func (*IndexedAttestation) SizeSSZ

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

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

func (*IndexedAttestation) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the IndexedAttestation object

type Interface

type Interface interface {
}

type PendingAttestation

type PendingAttestation struct {
	AggregationBits []byte           `json:"aggregation_bits" ssz:"bitlist" ssz-max:"2048"`
	Data            *AttestationData `json:"data"`
	InclusionDelay  uint64           `json:"inclusion_delay"`
	ProposerIndex   uint64           `json:"proposer_index"`
}

func (*PendingAttestation) GetTree

func (p *PendingAttestation) GetTree() (*ssz.Node, error)

GetTree ssz hashes the PendingAttestation object

func (*PendingAttestation) HashTreeRoot

func (p *PendingAttestation) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the PendingAttestation object

func (*PendingAttestation) HashTreeRootWith

func (p *PendingAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the PendingAttestation object with a hasher

func (*PendingAttestation) MarshalSSZ

func (p *PendingAttestation) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the PendingAttestation object

func (*PendingAttestation) MarshalSSZTo

func (p *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the PendingAttestation object to a target array

func (*PendingAttestation) SizeSSZ

func (p *PendingAttestation) SizeSSZ() (size int)

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

func (*PendingAttestation) UnmarshalSSZ

func (p *PendingAttestation) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the PendingAttestation object

type ProposerSlashing

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

func (*ProposerSlashing) GetTree

func (p *ProposerSlashing) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ProposerSlashing object

func (*ProposerSlashing) HashTreeRoot

func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ProposerSlashing object

func (*ProposerSlashing) HashTreeRootWith

func (p *ProposerSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ProposerSlashing object with a hasher

func (*ProposerSlashing) MarshalSSZ

func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ProposerSlashing object

func (*ProposerSlashing) MarshalSSZTo

func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ProposerSlashing object to a target array

func (*ProposerSlashing) SizeSSZ

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

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

func (*ProposerSlashing) UnmarshalSSZ

func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ProposerSlashing object

type SignedBeaconBlock

type SignedBeaconBlock struct {
	Block     *BeaconBlock `json:"message"`
	Signature []byte       `json:"signature" ssz-size:"96"`
}

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

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

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

func (*SignedBeaconBlock) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SignedBeaconBlock object

type SignedBeaconBlockHeader

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

func (*SignedBeaconBlockHeader) GetTree

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

GetTree ssz hashes the SignedBeaconBlockHeader object

func (*SignedBeaconBlockHeader) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedBeaconBlockHeader object

func (*SignedBeaconBlockHeader) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SignedBeaconBlockHeader object with a hasher

func (*SignedBeaconBlockHeader) MarshalSSZ

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

MarshalSSZ ssz marshals the SignedBeaconBlockHeader object

func (*SignedBeaconBlockHeader) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SignedBeaconBlockHeader object to a target array

func (*SignedBeaconBlockHeader) SizeSSZ

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

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

func (*SignedBeaconBlockHeader) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SignedBeaconBlockHeader object

type SignedVoluntaryExit

type SignedVoluntaryExit struct {
	Exit      *VoluntaryExit          `json:"message"`
	Signature external.FixedSignature `json:"signature" ssz-size:"96"`
}

func (*SignedVoluntaryExit) GetTree

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

GetTree ssz hashes the SignedVoluntaryExit object

func (*SignedVoluntaryExit) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedVoluntaryExit object

func (*SignedVoluntaryExit) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SignedVoluntaryExit object with a hasher

func (*SignedVoluntaryExit) MarshalSSZ

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

MarshalSSZ ssz marshals the SignedVoluntaryExit object

func (*SignedVoluntaryExit) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SignedVoluntaryExit object to a target array

func (*SignedVoluntaryExit) SizeSSZ

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

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

func (*SignedVoluntaryExit) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SignedVoluntaryExit object

type SigningRoot

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

func (*SigningRoot) GetTree

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

GetTree ssz hashes the SigningRoot object

func (*SigningRoot) HashTreeRoot

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

HashTreeRoot ssz hashes the SigningRoot object

func (*SigningRoot) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SigningRoot object with a hasher

func (*SigningRoot) MarshalSSZ

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

MarshalSSZ ssz marshals the SigningRoot object

func (*SigningRoot) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SigningRoot object to a target array

func (*SigningRoot) SizeSSZ

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

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

func (*SigningRoot) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SigningRoot object

type Slot

type Slot uint64 // alias from the same package

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

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

GetTree ssz hashes the SyncAggregate object

func (*SyncAggregate) HashTreeRoot

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

HashTreeRoot ssz hashes the SyncAggregate object

func (*SyncAggregate) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SyncAggregate object with a hasher

func (*SyncAggregate) MarshalSSZ

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

MarshalSSZ ssz marshals the SyncAggregate object

func (*SyncAggregate) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SyncAggregate object to a target array

func (*SyncAggregate) SizeSSZ

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

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

func (*SyncAggregate) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SyncAggregate object

type SyncCommittee

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

func (*SyncCommittee) GetTree

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

GetTree ssz hashes the SyncCommittee object

func (*SyncCommittee) HashTreeRoot

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

HashTreeRoot ssz hashes the SyncCommittee object

func (*SyncCommittee) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SyncCommittee object with a hasher

func (*SyncCommittee) MarshalSSZ

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

MarshalSSZ ssz marshals the SyncCommittee object

func (*SyncCommittee) MarshalSSZTo

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

MarshalSSZTo ssz marshals the SyncCommittee object to a target array

func (*SyncCommittee) SizeSSZ

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

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

func (*SyncCommittee) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the SyncCommittee object

type Transfer

type Transfer struct {
	Sender    uint64 `json:"sender"`
	Recipient uint64 `json:"recipient"`
	Amount    uint64 `json:"amount"`
	Fee       uint64 `json:"fee"`
	Slot      uint64 `json:"slot"`
	Pubkey    []byte `json:"pubkey" ssz-size:"48"`
	Signature []byte `json:"signature" ssz-size:"96"`
}

func (*Transfer) GetTree

func (t *Transfer) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Transfer object

func (*Transfer) HashTreeRoot

func (t *Transfer) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Transfer object

func (*Transfer) HashTreeRootWith

func (t *Transfer) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Transfer object with a hasher

func (*Transfer) MarshalSSZ

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

MarshalSSZ ssz marshals the Transfer object

func (*Transfer) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Transfer object to a target array

func (*Transfer) SizeSSZ

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

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

func (*Transfer) UnmarshalSSZ

func (t *Transfer) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Transfer object

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

func (v *Validator) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Validator object

func (*Validator) HashTreeRoot

func (v *Validator) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Validator object

func (*Validator) HashTreeRootWith

func (v *Validator) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Validator object with a hasher

func (*Validator) MarshalSSZ

func (v *Validator) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Validator object

func (*Validator) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Validator object to a target array

func (*Validator) SizeSSZ

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

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

func (*Validator) UnmarshalSSZ

func (v *Validator) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Validator object

type VoluntaryExit

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

func (*VoluntaryExit) GetTree

func (v *VoluntaryExit) GetTree() (*ssz.Node, error)

GetTree ssz hashes the VoluntaryExit object

func (*VoluntaryExit) HashTreeRoot

func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the VoluntaryExit object

func (*VoluntaryExit) HashTreeRootWith

func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the VoluntaryExit object with a hasher

func (*VoluntaryExit) MarshalSSZ

func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the VoluntaryExit object

func (*VoluntaryExit) MarshalSSZTo

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

MarshalSSZTo ssz marshals the VoluntaryExit object to a target array

func (*VoluntaryExit) SizeSSZ

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

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

func (*VoluntaryExit) UnmarshalSSZ

func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the VoluntaryExit object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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