Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 0f32d46a03c5b48eb20899f96fbd36a60327f2918da4fd29aa8de1c60094e84b Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b83701534ede47eb4b774fd01bd0bdeb3a961003df7fba89064928503ebb744a Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 018bc2d81eda4937b696d9126ba849860e10099559080ac1612d372825535861 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 26315330081bc3a7a4e6ecd44e3f57bae86d1adab12c35b302e32cae32dca4ae Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: ae6b3b76c936149625e275cea82e96e363903a465b0a97f86915aee114eae68b Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 148988bf90e72f5f5d9a959fb928e3154d95916aa7d200000f607bff36cf2066 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 808f4f202167f8a685e35f78ec47ecd8763489bc237586b174ccdd299a59094b Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b688ad366bff76d2f5908424d96b97c9d52b32ac7e130273533baa269331767b Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Index ¶
- Constants
- 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 (b *BeaconState) MarshalJSON() ([]byte, error)
- func (t *BeaconState) MarshalSSZ() ([]byte, error)
- func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconState) MarshalYAML() ([]byte, error)
- func (t *BeaconState) SizeSSZ() (size int)
- func (b *BeaconState) String() string
- func (b *BeaconState) UnmarshalJSON(input []byte) error
- func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconState) UnmarshalYAML(input []byte) error
- type Blob
- type BlobIdentifier
- func (t *BlobIdentifier) HashTreeRoot() (root [32]byte, err error)
- func (t *BlobIdentifier) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BlobIdentifier) MarshalJSON() ([]byte, error)
- func (t *BlobIdentifier) MarshalSSZ() ([]byte, error)
- func (t *BlobIdentifier) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BlobIdentifier) MarshalYAML() ([]byte, error)
- func (t *BlobIdentifier) SizeSSZ() (size int)
- func (b *BlobIdentifier) String() string
- func (b *BlobIdentifier) UnmarshalJSON(input []byte) error
- func (t *BlobIdentifier) UnmarshalSSZ(buf []byte) (err error)
- func (b *BlobIdentifier) UnmarshalYAML(input []byte) error
- type BlobIndex
- type BlobSidecar
- func (t *BlobSidecar) HashTreeRoot() (root [32]byte, err error)
- func (t *BlobSidecar) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BlobSidecar) MarshalJSON() ([]byte, error)
- func (t *BlobSidecar) MarshalSSZ() ([]byte, error)
- func (t *BlobSidecar) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BlobSidecar) MarshalYAML() ([]byte, error)
- func (t *BlobSidecar) SizeSSZ() (size int)
- func (b *BlobSidecar) String() string
- func (b *BlobSidecar) UnmarshalJSON(input []byte) error
- func (t *BlobSidecar) UnmarshalSSZ(buf []byte) (err error)
- func (b *BlobSidecar) 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 KZGCommitment
- func (k KZGCommitment) Format(state fmt.State, v rune)
- func (k KZGCommitment) MarshalJSON() ([]byte, error)
- func (k KZGCommitment) MarshalYAML() ([]byte, error)
- func (k KZGCommitment) String() string
- func (k *KZGCommitment) UnmarshalJSON(input []byte) error
- func (k *KZGCommitment) UnmarshalYAML(input []byte) error
- type KZGCommitmentInclusionProof
- type KZGCommitmentInclusionProofElement
- func (k KZGCommitmentInclusionProofElement) Format(state fmt.State, v rune)
- func (k KZGCommitmentInclusionProofElement) MarshalJSON() ([]byte, error)
- func (k KZGCommitmentInclusionProofElement) MarshalYAML() ([]byte, error)
- func (k KZGCommitmentInclusionProofElement) String() string
- func (k *KZGCommitmentInclusionProofElement) UnmarshalJSON(input []byte) error
- func (k *KZGCommitmentInclusionProofElement) UnmarshalYAML(input []byte) error
- type KZGProof
- 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 VersionedHash
- func (h VersionedHash) Format(state fmt.State, v rune)
- func (h *VersionedHash) MarshalJSON() ([]byte, error)
- func (h *VersionedHash) MarshalYAML() ([]byte, error)
- func (h VersionedHash) String() string
- func (h *VersionedHash) UnmarshalJSON(input []byte) error
- func (h *VersionedHash) UnmarshalYAML(input []byte) error
Constants ¶
const BlobLength = 131072
BlobLength is the number of bytes in a data blob.
const KZGCommitmentLength = 48
KZGCommitmentLength is the number of bytes in a KZG commitment.
const KZGProofLength = 48
KZGProofLength is the number of bytes in a KZG proof.
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) 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 []*capella.SignedBLSToExecutionChange `dynssz-max:"MAX_BLS_TO_EXECUTION_CHANGES" ssz-max:"16"`
BlobKZGCommitments []KZGCommitment `dynssz-max:"MAX_BLOB_COMMITMENTS_PER_BLOCK" ssz-max:"4096" ssz-size:"?,48"`
}
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 capella.WithdrawalIndex
NextWithdrawalValidatorIndex phase0.ValidatorIndex
HistoricalSummaries []*capella.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 (b *BeaconState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconState) MarshalSSZ ¶
func (t *BeaconState) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconState to SSZ-encoded bytes.
func (*BeaconState) MarshalSSZTo ¶
func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconState to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconState) MarshalYAML ¶
func (b *BeaconState) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconState) SizeSSZ ¶
func (t *BeaconState) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconState.
func (*BeaconState) String ¶
func (b *BeaconState) String() string
String returns a string version of the structure.
func (*BeaconState) UnmarshalJSON ¶
func (b *BeaconState) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BeaconState) UnmarshalSSZ ¶
func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconState from SSZ-encoded bytes.
func (*BeaconState) UnmarshalYAML ¶
func (b *BeaconState) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type Blob ¶
type Blob [131072]byte
Blob is a data blob.
func (Blob) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Blob) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Blob) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Blob) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type BlobIdentifier ¶
BlobIdentifier represents a data blob identifier.
func (*BlobIdentifier) HashTreeRoot ¶
func (t *BlobIdentifier) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BlobIdentifier.
func (*BlobIdentifier) HashTreeRootWith ¶
func (t *BlobIdentifier) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BlobIdentifier using the given hash walker.
func (*BlobIdentifier) MarshalJSON ¶
func (b *BlobIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BlobIdentifier) MarshalSSZ ¶
func (t *BlobIdentifier) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BlobIdentifier to SSZ-encoded bytes.
func (*BlobIdentifier) MarshalSSZTo ¶
func (t *BlobIdentifier) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BlobIdentifier to SSZ-encoded bytes, appending to the provided buffer.
func (*BlobIdentifier) MarshalYAML ¶
func (b *BlobIdentifier) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BlobIdentifier) SizeSSZ ¶
func (t *BlobIdentifier) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BlobIdentifier.
func (*BlobIdentifier) String ¶
func (b *BlobIdentifier) String() string
String returns a string version of the structure.
func (*BlobIdentifier) UnmarshalJSON ¶
func (b *BlobIdentifier) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BlobIdentifier) UnmarshalSSZ ¶
func (t *BlobIdentifier) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BlobIdentifier from SSZ-encoded bytes.
func (*BlobIdentifier) UnmarshalYAML ¶
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 ¶
MarshalJSON implements json.Marshaler.
func (*BlobIndex) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type BlobSidecar ¶
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 `dynssz-size:"KZG_COMMITMENT_INCLUSION_PROOF_DEPTH,32" ssz-size:"17,32"`
}
BlobSidecar represents a data blob sidecar.
func (*BlobSidecar) HashTreeRoot ¶
func (t *BlobSidecar) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BlobSidecar.
func (*BlobSidecar) HashTreeRootWith ¶
func (t *BlobSidecar) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BlobSidecar using the given hash walker.
func (*BlobSidecar) MarshalJSON ¶
func (b *BlobSidecar) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BlobSidecar) MarshalSSZ ¶
func (t *BlobSidecar) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BlobSidecar to SSZ-encoded bytes.
func (*BlobSidecar) MarshalSSZTo ¶
func (t *BlobSidecar) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BlobSidecar to SSZ-encoded bytes, appending to the provided buffer.
func (*BlobSidecar) MarshalYAML ¶
func (b *BlobSidecar) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BlobSidecar) SizeSSZ ¶
func (t *BlobSidecar) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BlobSidecar.
func (*BlobSidecar) String ¶
func (b *BlobSidecar) String() string
String returns a string version of the structure.
func (*BlobSidecar) UnmarshalJSON ¶
func (b *BlobSidecar) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BlobSidecar) UnmarshalSSZ ¶
func (t *BlobSidecar) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BlobSidecar from SSZ-encoded bytes.
func (*BlobSidecar) UnmarshalYAML ¶
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 `dynssz-max:"MAX_EXTRA_DATA_BYTES" ssz-max:"32"`
BaseFeePerGas *uint256.Int `ssz-type:"uint256"`
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 []*capella.Withdrawal `dynssz-max:"MAX_WITHDRAWALS_PER_PAYLOAD" ssz-max:"16"`
BlobGasUsed uint64
ExcessBlobGas uint64
}
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 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-type:"uint256"`
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) 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 KZGCommitment ¶
type KZGCommitment [48]byte
KZGCommitment is an KZG commitment.
func (KZGCommitment) Format ¶
func (k KZGCommitment) Format(state fmt.State, v rune)
Format formats the KZG commitment.
func (KZGCommitment) MarshalJSON ¶
func (k KZGCommitment) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (KZGCommitment) MarshalYAML ¶
func (k KZGCommitment) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (KZGCommitment) String ¶
func (k KZGCommitment) String() string
String returns a string version of the structure.
func (*KZGCommitment) UnmarshalJSON ¶
func (k *KZGCommitment) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*KZGCommitment) UnmarshalYAML ¶
func (k *KZGCommitment) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type KZGCommitmentInclusionProof ¶
type KZGCommitmentInclusionProof []KZGCommitmentInclusionProofElement
KZGCommitmentInclusionProof is the proof of inclusion for a KZG commitment.
func (*KZGCommitmentInclusionProof) UnmarshalJSON ¶
func (k *KZGCommitmentInclusionProof) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type KZGCommitmentInclusionProofElement ¶
type KZGCommitmentInclusionProofElement [kzgCommitmentProofElementLength]byte
KZGCommitmentInclusionProofElement is an element of the proof of inclusion for a KZG commitment.
func (KZGCommitmentInclusionProofElement) Format ¶
func (k KZGCommitmentInclusionProofElement) Format(state fmt.State, v rune)
Format formats the root.
func (KZGCommitmentInclusionProofElement) MarshalJSON ¶
func (k KZGCommitmentInclusionProofElement) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (KZGCommitmentInclusionProofElement) MarshalYAML ¶
func (k KZGCommitmentInclusionProofElement) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (KZGCommitmentInclusionProofElement) String ¶
func (k KZGCommitmentInclusionProofElement) String() string
String returns a string version of the structure.
func (*KZGCommitmentInclusionProofElement) UnmarshalJSON ¶
func (k *KZGCommitmentInclusionProofElement) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*KZGCommitmentInclusionProofElement) UnmarshalYAML ¶
func (k *KZGCommitmentInclusionProofElement) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type KZGProof ¶
type KZGProof [48]byte
KZGProof is an KZG proof.
func (KZGProof) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (KZGProof) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*KZGProof) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*KZGProof) UnmarshalYAML ¶
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 VersionedHash ¶
type VersionedHash [32]byte
VersionedHash is a hash with version information.
func (VersionedHash) Format ¶
func (h VersionedHash) Format(state fmt.State, v rune)
Format formats the root.
func (*VersionedHash) MarshalJSON ¶
func (h *VersionedHash) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*VersionedHash) MarshalYAML ¶
func (h *VersionedHash) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (VersionedHash) String ¶
func (h VersionedHash) String() string
String returns a string version of the structure.
func (*VersionedHash) UnmarshalJSON ¶
func (h *VersionedHash) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*VersionedHash) UnmarshalYAML ¶
func (h *VersionedHash) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
Source Files
¶
- beaconblock.go
- beaconblock_json.go
- beaconblock_ssz.go
- beaconblock_yaml.go
- beaconblockbody.go
- beaconblockbody_json.go
- beaconblockbody_ssz.go
- beaconblockbody_yaml.go
- beaconstate.go
- beaconstate_json.go
- beaconstate_ssz.go
- beaconstate_yaml.go
- blob.go
- blobidentifier.go
- blobidentifier_json.go
- blobidentifier_ssz.go
- blobidentifier_yaml.go
- blobindex.go
- blobsidecar.go
- blobsidecar_json.go
- blobsidecar_ssz.go
- blobsidecar_yaml.go
- executionpayload.go
- executionpayload_json.go
- executionpayload_ssz.go
- executionpayload_yaml.go
- executionpayloadheader.go
- executionpayloadheader_json.go
- executionpayloadheader_ssz.go
- executionpayloadheader_yaml.go
- generate.go
- kzgcommitment.go
- kzgcommitmentinclusionproof.go
- kzgcommitmentinclusionproofelement.go
- kzgproof.go
- signedbeaconblock.go
- signedbeaconblock_json.go
- signedbeaconblock_ssz.go
- signedbeaconblock_yaml.go
- versionedhash.go