Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 7246aa557afef6969b210d597ef4b6cdc56c54c2142fb7d519b13b399ce02f48 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5840d7bc98a354c7f79eb07685f7f8f5e159adff77ad0a5ced29dcece135ea47 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 816b120ae80f320cd4722fc7c1ad1bc91973eab501f026fb018919d70cfbf7ae Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 1adf9d87c0daf2d5ca512a05673e6122f02eb93cea160ccd42328f11064fdd9e Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: e971353850c7a8147795247fa9010449b1c28c13f1552d66b848523554f961b3 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 56086eb70ef7ef503e14152499bf7a6012e881b899e3a13ad3bf54d5ece71e0d Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 37e8fcece613d7a83371eae9512646a092fd9eb00591c4f3181fd3f7a6a3d7ed Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: ff0e79adb03fb66620844f8e4ed4037d96218cb53b0d5301906b15edcc33653a Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 1ea5c2b15f49dc58c9cac387e469b69b57a391726c89357f3c3475750b2865b7 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: dde609e622a941e373617d8b52802870a55e9364e098cd4553497715c6c58032 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Index ¶
- type BLSToExecutionChange
- func (t *BLSToExecutionChange) HashTreeRoot() (root [32]byte, err error)
- func (t *BLSToExecutionChange) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BLSToExecutionChange) MarshalJSON() ([]byte, error)
- func (t *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (t *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BLSToExecutionChange) MarshalYAML() ([]byte, error)
- func (t *BLSToExecutionChange) SizeSSZ() (size int)
- func (b *BLSToExecutionChange) String() string
- func (b *BLSToExecutionChange) UnmarshalJSON(input []byte) error
- func (t *BLSToExecutionChange) UnmarshalSSZ(buf []byte) (err error)
- func (b *BLSToExecutionChange) UnmarshalYAML(input []byte) error
- type BeaconBlock
- func (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlock) MarshalJSON() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) MarshalYAML() ([]byte, error)
- func (t *BeaconBlock) SizeSSZ() (size int)
- func (b *BeaconBlock) String() string
- func (b *BeaconBlock) UnmarshalJSON(input []byte) error
- func (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlock) UnmarshalYAML(input []byte) error
- type BeaconBlockBody
- func (t *BeaconBlockBody) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
- func (t *BeaconBlockBody) SizeSSZ() (size int)
- func (b *BeaconBlockBody) String() string
- func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
- func (t *BeaconBlockBody) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
- type BeaconState
- func (t *BeaconState) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconState) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *BeaconState) MarshalJSON() ([]byte, error)
- func (t *BeaconState) MarshalSSZ() ([]byte, error)
- func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *BeaconState) MarshalYAML() ([]byte, error)
- func (t *BeaconState) SizeSSZ() (size int)
- func (s *BeaconState) String() string
- func (s *BeaconState) UnmarshalJSON(input []byte) error
- func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
- func (s *BeaconState) UnmarshalYAML(input []byte) error
- type ExecutionPayload
- func (t *ExecutionPayload) HashTreeRoot() (root [32]byte, err error)
- func (t *ExecutionPayload) HashTreeRootWith(hh sszutils.HashWalker) error
- func (e *ExecutionPayload) MarshalJSON() ([]byte, error)
- func (t *ExecutionPayload) MarshalSSZ() ([]byte, error)
- func (t *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayload) MarshalYAML() ([]byte, error)
- func (t *ExecutionPayload) SizeSSZ() (size int)
- func (e *ExecutionPayload) String() string
- func (e *ExecutionPayload) UnmarshalJSON(input []byte) error
- func (t *ExecutionPayload) UnmarshalSSZ(buf []byte) (err error)
- func (e *ExecutionPayload) UnmarshalYAML(input []byte) error
- type ExecutionPayloadHeader
- func (t *ExecutionPayloadHeader) HashTreeRoot() (root [32]byte, err error)
- func (t *ExecutionPayloadHeader) HashTreeRootWith(hh sszutils.HashWalker) error
- func (e *ExecutionPayloadHeader) MarshalJSON() ([]byte, error)
- func (t *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
- func (t *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayloadHeader) MarshalYAML() ([]byte, error)
- func (t *ExecutionPayloadHeader) SizeSSZ() (size int)
- func (e *ExecutionPayloadHeader) String() string
- func (e *ExecutionPayloadHeader) UnmarshalJSON(input []byte) error
- func (t *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) (err error)
- func (e *ExecutionPayloadHeader) UnmarshalYAML(input []byte) error
- type HistoricalSummary
- func (t *HistoricalSummary) HashTreeRoot() (root [32]byte, err error)
- func (t *HistoricalSummary) HashTreeRootWith(hh sszutils.HashWalker) error
- func (h *HistoricalSummary) MarshalJSON() ([]byte, error)
- func (t *HistoricalSummary) MarshalSSZ() ([]byte, error)
- func (t *HistoricalSummary) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (h *HistoricalSummary) MarshalYAML() ([]byte, error)
- func (t *HistoricalSummary) SizeSSZ() (size int)
- func (h *HistoricalSummary) String() string
- func (h *HistoricalSummary) UnmarshalJSON(input []byte) error
- func (t *HistoricalSummary) UnmarshalSSZ(buf []byte) (err error)
- func (h *HistoricalSummary) UnmarshalYAML(input []byte) error
- type SignedBLSToExecutionChange
- func (t *SignedBLSToExecutionChange) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBLSToExecutionChange) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBLSToExecutionChange) MarshalJSON() ([]byte, error)
- func (t *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (t *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBLSToExecutionChange) MarshalYAML() ([]byte, error)
- func (t *SignedBLSToExecutionChange) SizeSSZ() (size int)
- func (s *SignedBLSToExecutionChange) String() string
- func (s *SignedBLSToExecutionChange) UnmarshalJSON(input []byte) error
- func (t *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBLSToExecutionChange) UnmarshalYAML(input []byte) error
- type SignedBeaconBlock
- func (t *SignedBeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (t *SignedBeaconBlock) SizeSSZ() (size int)
- func (s *SignedBeaconBlock) String() string
- func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (t *SignedBeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
- type Withdrawal
- func (t *Withdrawal) HashTreeRoot() (root [32]byte, err error)
- func (t *Withdrawal) HashTreeRootWith(hh sszutils.HashWalker) error
- func (w *Withdrawal) MarshalJSON() ([]byte, error)
- func (t *Withdrawal) MarshalSSZ() ([]byte, error)
- func (t *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (w *Withdrawal) MarshalYAML() ([]byte, error)
- func (t *Withdrawal) SizeSSZ() (size int)
- func (w *Withdrawal) String() string
- func (w *Withdrawal) UnmarshalJSON(input []byte) error
- func (t *Withdrawal) UnmarshalSSZ(buf []byte) (err error)
- func (w *Withdrawal) UnmarshalYAML(input []byte) error
- type WithdrawalIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSToExecutionChange ¶
type BLSToExecutionChange struct {
ValidatorIndex phase0.ValidatorIndex
FromBLSPubkey phase0.BLSPubKey `ssz-size:"48"`
ToExecutionAddress bellatrix.ExecutionAddress `ssz-size:"20"`
}
BLSToExecutionChange provides information about a change of withdrawal credentials.
func (*BLSToExecutionChange) HashTreeRoot ¶
func (t *BLSToExecutionChange) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BLSToExecutionChange.
func (*BLSToExecutionChange) HashTreeRootWith ¶
func (t *BLSToExecutionChange) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BLSToExecutionChange using the given hash walker.
func (*BLSToExecutionChange) MarshalJSON ¶
func (b *BLSToExecutionChange) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BLSToExecutionChange) MarshalSSZ ¶
func (t *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BLSToExecutionChange to SSZ-encoded bytes.
func (*BLSToExecutionChange) MarshalSSZTo ¶
func (t *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BLSToExecutionChange to SSZ-encoded bytes, appending to the provided buffer.
func (*BLSToExecutionChange) MarshalYAML ¶
func (b *BLSToExecutionChange) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BLSToExecutionChange) SizeSSZ ¶
func (t *BLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BLSToExecutionChange.
func (*BLSToExecutionChange) String ¶
func (b *BLSToExecutionChange) String() string
String returns a string version of the structure.
func (*BLSToExecutionChange) UnmarshalJSON ¶
func (b *BLSToExecutionChange) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BLSToExecutionChange) UnmarshalSSZ ¶
func (t *BLSToExecutionChange) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BLSToExecutionChange from SSZ-encoded bytes.
func (*BLSToExecutionChange) UnmarshalYAML ¶
func (b *BLSToExecutionChange) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlock ¶
type BeaconBlock struct {
Slot phase0.Slot
ProposerIndex phase0.ValidatorIndex
ParentRoot phase0.Root `ssz-size:"32"`
StateRoot phase0.Root `ssz-size:"32"`
Body *BeaconBlockBody
}
BeaconBlock represents a beacon block.
func (*BeaconBlock) HashTreeRoot ¶
func (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlock.
func (*BeaconBlock) HashTreeRootWith ¶
func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlock using the given hash walker.
func (*BeaconBlock) MarshalJSON ¶
func (b *BeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlock) MarshalSSZ ¶
func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlock to SSZ-encoded bytes.
func (*BeaconBlock) MarshalSSZTo ¶
func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlock to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlock) MarshalYAML ¶
func (b *BeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlock) SizeSSZ ¶
func (t *BeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlock.
func (*BeaconBlock) String ¶
func (b *BeaconBlock) String() string
String returns a string version of the structure.
func (*BeaconBlock) UnmarshalJSON ¶
func (b *BeaconBlock) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconBlock) UnmarshalSSZ ¶
func (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlock from SSZ-encoded bytes.
func (*BeaconBlock) UnmarshalYAML ¶
func (b *BeaconBlock) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconBlockBody ¶
type BeaconBlockBody struct {
RANDAOReveal phase0.BLSSignature `ssz-size:"96"`
ETH1Data *phase0.ETH1Data
Graffiti [32]byte `ssz-size:"32"`
ProposerSlashings []*phase0.ProposerSlashing `dynssz-max:"MAX_PROPOSER_SLASHINGS" ssz-max:"16"`
AttesterSlashings []*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
BLSToExecutionChanges []*SignedBLSToExecutionChange `dynssz-max:"MAX_BLS_TO_EXECUTION_CHANGES" ssz-max:"16"`
}
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
NextWithdrawalIndex WithdrawalIndex
NextWithdrawalValidatorIndex phase0.ValidatorIndex
HistoricalSummaries []*HistoricalSummary `dynssz-max:"HISTORICAL_ROOTS_LIMIT" ssz-max:"16777216"`
}
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 ExecutionPayload ¶
type ExecutionPayload struct {
ParentHash phase0.Hash32 `ssz-size:"32"`
FeeRecipient bellatrix.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 []bellatrix.Transaction `dynssz-max:"MAX_TRANSACTIONS_PER_PAYLOAD,MAX_BYTES_PER_TRANSACTION" ssz-max:"1048576,1073741824" ssz-size:"?,?"`
Withdrawals []*Withdrawal `dynssz-max:"MAX_WITHDRAWALS_PER_PAYLOAD" ssz-max:"16"`
}
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 bellatrix.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"`
WithdrawalsRoot 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 HistoricalSummary ¶
type HistoricalSummary struct {
BlockSummaryRoot phase0.Root `ssz-size:"32"`
StateSummaryRoot phase0.Root `ssz-size:"32"`
}
HistoricalSummary represents a summary of past consensus state.
func (*HistoricalSummary) HashTreeRoot ¶
func (t *HistoricalSummary) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *HistoricalSummary.
func (*HistoricalSummary) HashTreeRootWith ¶
func (t *HistoricalSummary) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *HistoricalSummary using the given hash walker.
func (*HistoricalSummary) MarshalJSON ¶
func (h *HistoricalSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*HistoricalSummary) MarshalSSZ ¶
func (t *HistoricalSummary) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *HistoricalSummary to SSZ-encoded bytes.
func (*HistoricalSummary) MarshalSSZTo ¶
func (t *HistoricalSummary) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *HistoricalSummary to SSZ-encoded bytes, appending to the provided buffer.
func (*HistoricalSummary) MarshalYAML ¶
func (h *HistoricalSummary) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*HistoricalSummary) SizeSSZ ¶
func (t *HistoricalSummary) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *HistoricalSummary.
func (*HistoricalSummary) String ¶
func (h *HistoricalSummary) String() string
String returns a string version of the structure.
func (*HistoricalSummary) UnmarshalJSON ¶
func (h *HistoricalSummary) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*HistoricalSummary) UnmarshalSSZ ¶
func (t *HistoricalSummary) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *HistoricalSummary from SSZ-encoded bytes.
func (*HistoricalSummary) UnmarshalYAML ¶
func (h *HistoricalSummary) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct {
Message *BLSToExecutionChange
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBLSToExecutionChange provides information about a signed BLS to execution change.
func (*SignedBLSToExecutionChange) HashTreeRoot ¶
func (t *SignedBLSToExecutionChange) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedBLSToExecutionChange.
func (*SignedBLSToExecutionChange) HashTreeRootWith ¶
func (t *SignedBLSToExecutionChange) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedBLSToExecutionChange using the given hash walker.
func (*SignedBLSToExecutionChange) MarshalJSON ¶
func (s *SignedBLSToExecutionChange) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBLSToExecutionChange) MarshalSSZ ¶
func (t *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedBLSToExecutionChange to SSZ-encoded bytes.
func (*SignedBLSToExecutionChange) MarshalSSZTo ¶
func (t *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedBLSToExecutionChange to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedBLSToExecutionChange) MarshalYAML ¶
func (s *SignedBLSToExecutionChange) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBLSToExecutionChange) SizeSSZ ¶
func (t *SignedBLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedBLSToExecutionChange.
func (*SignedBLSToExecutionChange) String ¶
func (s *SignedBLSToExecutionChange) String() string
String returns a string version of the structure.
func (*SignedBLSToExecutionChange) UnmarshalJSON ¶
func (s *SignedBLSToExecutionChange) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBLSToExecutionChange) UnmarshalSSZ ¶
func (t *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedBLSToExecutionChange from SSZ-encoded bytes.
func (*SignedBLSToExecutionChange) UnmarshalYAML ¶
func (s *SignedBLSToExecutionChange) 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 Withdrawal ¶
type Withdrawal struct {
Index WithdrawalIndex
ValidatorIndex phase0.ValidatorIndex
Address bellatrix.ExecutionAddress `ssz-size:"20"`
Amount phase0.Gwei
}
Withdrawal provides information about a withdrawal.
func (*Withdrawal) HashTreeRoot ¶
func (t *Withdrawal) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *Withdrawal.
func (*Withdrawal) HashTreeRootWith ¶
func (t *Withdrawal) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *Withdrawal using the given hash walker.
func (*Withdrawal) MarshalJSON ¶
func (w *Withdrawal) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Withdrawal) MarshalSSZ ¶
func (t *Withdrawal) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *Withdrawal to SSZ-encoded bytes.
func (*Withdrawal) MarshalSSZTo ¶
func (t *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *Withdrawal to SSZ-encoded bytes, appending to the provided buffer.
func (*Withdrawal) MarshalYAML ¶
func (w *Withdrawal) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*Withdrawal) SizeSSZ ¶
func (t *Withdrawal) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *Withdrawal.
func (*Withdrawal) String ¶
func (w *Withdrawal) String() string
String returns a string version of the structure.
func (*Withdrawal) UnmarshalJSON ¶
func (w *Withdrawal) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*Withdrawal) UnmarshalSSZ ¶
func (t *Withdrawal) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *Withdrawal from SSZ-encoded bytes.
func (*Withdrawal) UnmarshalYAML ¶
func (w *Withdrawal) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type WithdrawalIndex ¶
type WithdrawalIndex uint64
WithdrawalIndex is the index of a withdrawal operation.
func (WithdrawalIndex) MarshalJSON ¶
func (w WithdrawalIndex) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*WithdrawalIndex) UnmarshalJSON ¶
func (w *WithdrawalIndex) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
Source Files
¶
- beaconblock.go
- beaconblock_ssz.go
- beaconblockbody.go
- beaconblockbody_ssz.go
- beaconstate.go
- beaconstate_json.go
- beaconstate_ssz.go
- beaconstate_yaml.go
- blstoexecutionchange.go
- blstoexecutionchange_ssz.go
- consts.go
- executionpayload.go
- executionpayload_ssz.go
- executionpayloadheader.go
- executionpayloadheader_ssz.go
- generate.go
- historicalsummary.go
- historicalsummary_json.go
- historicalsummary_ssz.go
- historicalsummary_yaml.go
- signedbeaconblock.go
- signedbeaconblock_ssz.go
- signedblstoexecutionchange.go
- signedblstoexecutionchange_ssz.go
- withdrawal.go
- withdrawal_ssz.go
- withdrawalindex.go