Documentation ¶
Index ¶
- Constants
- Variables
- func IsSlashableAttestationData(d1, d2 *solid.AttestationData) bool
- func VerifyCommitmentInclusionProof(commitment libcommon.Bytes48, commitmentInclusionProof solid.HashVectorSSZ, ...) bool
- type AggregateAndProof
- func (*AggregateAndProof) Clone() clonable.Clonable
- func (a *AggregateAndProof) DecodeSSZ(buf []byte, version int) error
- func (a *AggregateAndProof) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *AggregateAndProof) EncodingSizeSSZ() int
- func (a *AggregateAndProof) HashSSZ() ([32]byte, error)
- func (a *AggregateAndProof) Static() bool
- type AttesterSlashing
- type BLSToExecutionChange
- func (*BLSToExecutionChange) Clone() clonable.Clonable
- func (b *BLSToExecutionChange) DecodeSSZ(buf []byte, version int) error
- func (b *BLSToExecutionChange) EncodeSSZ(buf []byte) ([]byte, error)
- func (*BLSToExecutionChange) EncodingSizeSSZ() int
- func (b *BLSToExecutionChange) HashSSZ() ([32]byte, error)
- func (*BLSToExecutionChange) Static() bool
- type BeaconBlock
- func (b *BeaconBlock) Blinded() (*BlindedBeaconBlock, error)
- func (b *BeaconBlock) Clone() clonable.Clonable
- func (b *BeaconBlock) DecodeSSZ(buf []byte, version int) error
- func (b *BeaconBlock) EncodeSSZ(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) EncodingSizeSSZ() int
- func (b *BeaconBlock) GetBody() GenericBeaconBody
- func (b *BeaconBlock) GetParentRoot() libcommon.Hash
- func (b *BeaconBlock) GetProposerIndex() uint64
- func (b *BeaconBlock) GetSlot() uint64
- func (b *BeaconBlock) HashSSZ() ([32]byte, error)
- func (b *BeaconBlock) SetVersion(version clparams.StateVersion)
- func (*BeaconBlock) Static() bool
- func (b *BeaconBlock) Version() clparams.StateVersion
- type BeaconBlockHeader
- func (*BeaconBlockHeader) Clone() clonable.Clonable
- func (b *BeaconBlockHeader) Copy() *BeaconBlockHeader
- func (b *BeaconBlockHeader) DecodeSSZ(buf []byte, v int) error
- func (b *BeaconBlockHeader) EncodeSSZ(dst []byte) ([]byte, error)
- func (b *BeaconBlockHeader) EncodingSizeSSZ() int
- func (b *BeaconBlockHeader) HashSSZ() ([32]byte, error)
- func (*BeaconBlockHeader) Static() bool
- type BeaconBlocksByRangeRequest
- type BeaconBody
- func (b *BeaconBody) Blinded() (*BlindedBeaconBody, error)
- func (b *BeaconBody) Clone() clonable.Clonable
- func (b *BeaconBody) DecodeSSZ(buf []byte, version int) error
- func (b *BeaconBody) EncodeSSZ(dst []byte) ([]byte, error)
- func (b *BeaconBody) EncodingSizeSSZ() (size int)
- func (b *BeaconBody) ExecutionPayloadMerkleProof() ([][32]byte, error)
- func (b *BeaconBody) GetAttestations() *solid.ListSSZ[*solid.Attestation]
- func (b *BeaconBody) GetAttesterSlashings() *solid.ListSSZ[*AttesterSlashing]
- func (b *BeaconBody) GetBlobKzgCommitments() *solid.ListSSZ[*KZGCommitment]
- func (b *BeaconBody) GetDeposits() *solid.ListSSZ[*Deposit]
- func (b *BeaconBody) GetEth1Data() *Eth1Data
- func (b *BeaconBody) GetExecutionChanges() *solid.ListSSZ[*SignedBLSToExecutionChange]
- func (b *BeaconBody) GetPayloadHeader() (*Eth1Header, error)
- func (b *BeaconBody) GetProposerSlashings() *solid.ListSSZ[*ProposerSlashing]
- func (b *BeaconBody) GetRandaoReveal() libcommon.Bytes96
- func (b *BeaconBody) GetSyncAggregate() *SyncAggregate
- func (b *BeaconBody) GetVoluntaryExits() *solid.ListSSZ[*SignedVoluntaryExit]
- func (b *BeaconBody) HashSSZ() ([32]byte, error)
- func (b *BeaconBody) KzgCommitmentMerkleProof(index int) ([][32]byte, error)
- func (b *BeaconBody) SetVersion(version clparams.StateVersion)
- func (*BeaconBody) Static() bool
- func (b *BeaconBody) UnmarshalJSON(buf []byte) error
- type BeaconCommitteeSubscription
- type BlindOrExecutionBeaconBlock
- func (b *BlindOrExecutionBeaconBlock) GetExecutionValue() *big.Int
- func (b *BlindOrExecutionBeaconBlock) IsBlinded() bool
- func (b *BlindOrExecutionBeaconBlock) MarshalJSON() ([]byte, error)
- func (b *BlindOrExecutionBeaconBlock) ToBlinded() *BlindedBeaconBlock
- func (b *BlindOrExecutionBeaconBlock) ToExecution() *DenebBeaconBlock
- func (b *BlindOrExecutionBeaconBlock) ToGeneric() GenericBeaconBlock
- func (b *BlindOrExecutionBeaconBlock) UnmarshalJSON(data []byte) error
- func (b *BlindOrExecutionBeaconBlock) Version() clparams.StateVersion
- type BlindedBeaconBlock
- func (b *BlindedBeaconBlock) Clone() clonable.Clonable
- func (b *BlindedBeaconBlock) DecodeSSZ(buf []byte, version int) error
- func (b *BlindedBeaconBlock) EncodeSSZ(buf []byte) (dst []byte, err error)
- func (b *BlindedBeaconBlock) EncodingSizeSSZ() int
- func (b *BlindedBeaconBlock) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *BeaconBlock
- func (b *BlindedBeaconBlock) GetBody() GenericBeaconBody
- func (b *BlindedBeaconBlock) GetParentRoot() libcommon.Hash
- func (b *BlindedBeaconBlock) GetProposerIndex() uint64
- func (b *BlindedBeaconBlock) GetSlot() uint64
- func (b *BlindedBeaconBlock) HashSSZ() ([32]byte, error)
- func (b *BlindedBeaconBlock) SetVersion(version clparams.StateVersion) *BlindedBeaconBlock
- func (*BlindedBeaconBlock) Static() bool
- func (b *BlindedBeaconBlock) Version() clparams.StateVersion
- type BlindedBeaconBody
- func (b *BlindedBeaconBody) Clone() clonable.Clonable
- func (b *BlindedBeaconBody) DecodeSSZ(buf []byte, version int) error
- func (b *BlindedBeaconBody) EncodeSSZ(dst []byte) ([]byte, error)
- func (b *BlindedBeaconBody) EncodingSizeSSZ() (size int)
- func (b *BlindedBeaconBody) ExecutionPayloadMerkleProof() ([][32]byte, error)
- func (b *BlindedBeaconBody) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *BeaconBody
- func (b *BlindedBeaconBody) GetAttestations() *solid.ListSSZ[*solid.Attestation]
- func (b *BlindedBeaconBody) GetAttesterSlashings() *solid.ListSSZ[*AttesterSlashing]
- func (b *BlindedBeaconBody) GetBlobKzgCommitments() *solid.ListSSZ[*KZGCommitment]
- func (b *BlindedBeaconBody) GetDeposits() *solid.ListSSZ[*Deposit]
- func (b *BlindedBeaconBody) GetEth1Data() *Eth1Data
- func (b *BlindedBeaconBody) GetExecutionChanges() *solid.ListSSZ[*SignedBLSToExecutionChange]
- func (b *BlindedBeaconBody) GetPayloadHeader() (*Eth1Header, error)
- func (b *BlindedBeaconBody) GetProposerSlashings() *solid.ListSSZ[*ProposerSlashing]
- func (b *BlindedBeaconBody) GetRandaoReveal() libcommon.Bytes96
- func (b *BlindedBeaconBody) GetSyncAggregate() *SyncAggregate
- func (b *BlindedBeaconBody) GetVoluntaryExits() *solid.ListSSZ[*SignedVoluntaryExit]
- func (b *BlindedBeaconBody) HashSSZ() ([32]byte, error)
- func (b *BlindedBeaconBody) SetBlobKzgCommitments(commitments *solid.ListSSZ[*KZGCommitment]) *BlindedBeaconBody
- func (b *BlindedBeaconBody) SetHeader(header *Eth1Header) *BlindedBeaconBody
- func (b *BlindedBeaconBody) SetVersion(version clparams.StateVersion) *BlindedBeaconBody
- func (*BlindedBeaconBody) Static() bool
- type Blob
- func (b *Blob) Clone() clonable.Clonable
- func (b *Blob) DecodeSSZ(buf []byte, version int) error
- func (b *Blob) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *Blob) EncodingSizeSSZ() int
- func (b *Blob) HashSSZ() ([32]byte, error)
- func (b *Blob) MarshalJSON() ([]byte, error)
- func (b *Blob) Static() bool
- func (b *Blob) UnmarshalJSON(in []byte) error
- type BlobIdentifier
- type BlobSidecar
- func (b *BlobSidecar) Clone() clonable.Clonable
- func (b *BlobSidecar) DecodeSSZ(buf []byte, version int) error
- func (b *BlobSidecar) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *BlobSidecar) EncodingSizeSSZ() int
- func (b *BlobSidecar) HashSSZ() ([32]byte, error)
- func (b *BlobSidecar) UnmarshalJSON(buf []byte) error
- type BlobsByRangeRequest
- type Contribution
- func (s *Contribution) Clone() clonable.Clonable
- func (a *Contribution) Copy() *Contribution
- func (a *Contribution) DecodeSSZ(buf []byte, version int) error
- func (a *Contribution) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *Contribution) EncodingSizeSSZ() int
- func (a *Contribution) HashSSZ() ([32]byte, error)
- func (a *Contribution) Static() bool
- type ContributionAndProof
- func (s *ContributionAndProof) Clone() clonable.Clonable
- func (a *ContributionAndProof) DecodeSSZ(buf []byte, version int) error
- func (a *ContributionAndProof) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *ContributionAndProof) EncodingSizeSSZ() int
- func (a *ContributionAndProof) HashSSZ() ([32]byte, error)
- func (a *ContributionAndProof) Static() bool
- type ContributionKey
- type DenebBeaconBlock
- func (b *DenebBeaconBlock) Clone() clonable.Clonable
- func (b *DenebBeaconBlock) DecodeSSZ(buf []byte, version int) error
- func (b *DenebBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *DenebBeaconBlock) EncodingSizeSSZ() int
- func (b *DenebBeaconBlock) GetBody() GenericBeaconBody
- func (b *DenebBeaconBlock) GetParentRoot() libcommon.Hash
- func (b *DenebBeaconBlock) GetProposerIndex() uint64
- func (b *DenebBeaconBlock) GetSlot() uint64
- func (b *DenebBeaconBlock) Static() bool
- func (b *DenebBeaconBlock) Version() clparams.StateVersion
- type DenebSignedBeaconBlock
- func (b *DenebSignedBeaconBlock) Clone() clonable.Clonable
- func (b *DenebSignedBeaconBlock) DecodeSSZ(buf []byte, version int) error
- func (b *DenebSignedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *DenebSignedBeaconBlock) EncodingSizeSSZ() int
- func (b *DenebSignedBeaconBlock) Static() bool
- type Deposit
- type DepositData
- func (*DepositData) Clone() clonable.Clonable
- func (d *DepositData) DecodeSSZ(buf []byte, version int) error
- func (d *DepositData) EncodeSSZ(dst []byte) ([]byte, error)
- func (d *DepositData) EncodingSizeSSZ() int
- func (d *DepositData) HashSSZ() ([32]byte, error)
- func (d *DepositData) MessageHash() ([32]byte, error)
- func (*DepositData) Static() bool
- type Eth1Block
- func (b *Eth1Block) Body() *types.RawBody
- func (e *Eth1Block) Clone() clonable.Clonable
- func (b *Eth1Block) DecodeSSZ(buf []byte, version int) error
- func (b *Eth1Block) EncodeSSZ(dst []byte) ([]byte, error)
- func (b *Eth1Block) EncodingSizeSSZ() (size int)
- func (b *Eth1Block) HashSSZ() ([32]byte, error)
- func (b *Eth1Block) MarshalJSON() ([]byte, error)
- func (b *Eth1Block) PayloadHeader() (*Eth1Header, error)
- func (b *Eth1Block) RlpHeader(parentRoot *libcommon.Hash) (*types.Header, error)
- func (b *Eth1Block) SetVersion(version clparams.StateVersion)
- func (*Eth1Block) Static() bool
- func (b *Eth1Block) UnmarshalJSON(data []byte) error
- func (b *Eth1Block) Version() clparams.StateVersion
- type Eth1Data
- func (*Eth1Data) Clone() clonable.Clonable
- func (e *Eth1Data) Copy() *Eth1Data
- func (e *Eth1Data) DecodeSSZ(buf []byte, _ int) error
- func (e *Eth1Data) EncodeSSZ(buf []byte) ([]byte, error)
- func (e *Eth1Data) EncodingSizeSSZ() int
- func (e *Eth1Data) Equal(b *Eth1Data) bool
- func (e *Eth1Data) HashSSZ() ([32]byte, error)
- func (e *Eth1Data) Static() bool
- type Eth1Header
- func (e *Eth1Header) Capella()
- func (*Eth1Header) Clone() clonable.Clonable
- func (e *Eth1Header) Copy() *Eth1Header
- func (h *Eth1Header) DecodeSSZ(buf []byte, version int) error
- func (e *Eth1Header) Deneb()
- func (h *Eth1Header) EncodeSSZ(dst []byte) ([]byte, error)
- func (h *Eth1Header) EncodingSizeSSZ() int
- func (h *Eth1Header) HashSSZ() ([32]byte, error)
- func (e *Eth1Header) IsZero() bool
- func (h *Eth1Header) MarshalJSON() ([]byte, error)
- func (e *Eth1Header) SetVersion(v clparams.StateVersion)
- func (h *Eth1Header) Static() bool
- func (h *Eth1Header) UnmarshalJSON(data []byte) error
- type Fork
- type GenericBeaconBlock
- type GenericBeaconBody
- type HistoricalSummary
- type IndexedAttestation
- func (*IndexedAttestation) Clone() clonable.Clonable
- func (i *IndexedAttestation) DecodeSSZ(buf []byte, version int) error
- func (i *IndexedAttestation) EncodeSSZ(buf []byte) (dst []byte, err error)
- func (i *IndexedAttestation) EncodingSizeSSZ() int
- func (i *IndexedAttestation) HashSSZ() ([32]byte, error)
- func (i *IndexedAttestation) Static() bool
- func (i *IndexedAttestation) UnmarshalJSON(buf []byte) error
- type JustificationBits
- func (j JustificationBits) Byte() (out byte)
- func (j JustificationBits) CheckRange(start int, end int) bool
- func (j JustificationBits) Clone() clonable.Clonable
- func (j JustificationBits) Copy() JustificationBits
- func (j *JustificationBits) DecodeSSZ(b []byte, _ int) error
- func (j JustificationBits) EncodeSSZ(buf []byte) ([]byte, error)
- func (JustificationBits) EncodingSizeSSZ() int
- func (j *JustificationBits) HashSSZ() (out [32]byte, err error)
- func (j JustificationBits) MarshalJSON() ([]byte, error)
- func (JustificationBits) Static() bool
- func (j *JustificationBits) UnmarshalJSON(input []byte) error
- type KZGCommitment
- func (*KZGCommitment) Clone() clonable.Clonable
- func (b *KZGCommitment) Copy() *KZGCommitment
- func (b *KZGCommitment) DecodeSSZ(buf []byte, version int) error
- func (b *KZGCommitment) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *KZGCommitment) EncodingSizeSSZ() int
- func (b *KZGCommitment) HashSSZ() ([32]byte, error)
- func (b KZGCommitment) MarshalJSON() ([]byte, error)
- func (b *KZGCommitment) UnmarshalJSON(data []byte) error
- type KZGProof
- func (b *KZGProof) Clone() clonable.Clonable
- func (b *KZGProof) DecodeSSZ(buf []byte, version int) error
- func (b *KZGProof) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *KZGProof) EncodingSizeSSZ() int
- func (b *KZGProof) HashSSZ() ([32]byte, error)
- func (b *KZGProof) MarshalJSON() ([]byte, error)
- func (b *KZGProof) Static() bool
- func (b *KZGProof) UnmarshalJSON(data []byte) error
- type LightClientBootstrap
- func (l *LightClientBootstrap) Clone() clonable.Clonable
- func (l *LightClientBootstrap) DecodeSSZ(buf []byte, version int) error
- func (l *LightClientBootstrap) EncodeSSZ(buf []byte) ([]byte, error)
- func (l *LightClientBootstrap) EncodingSizeSSZ() int
- func (l *LightClientBootstrap) HashSSZ() ([32]byte, error)
- type LightClientFinalityUpdate
- func (l *LightClientFinalityUpdate) Clone() clonable.Clonable
- func (l *LightClientFinalityUpdate) DecodeSSZ(buf []byte, version int) error
- func (l *LightClientFinalityUpdate) EncodeSSZ(buf []byte) ([]byte, error)
- func (l *LightClientFinalityUpdate) EncodingSizeSSZ() int
- func (l *LightClientFinalityUpdate) HashSSZ() ([32]byte, error)
- type LightClientHeader
- func (l *LightClientHeader) Clone() clonable.Clonable
- func (l *LightClientHeader) DecodeSSZ(buf []byte, version int) error
- func (l *LightClientHeader) EncodeSSZ(buf []byte) ([]byte, error)
- func (l *LightClientHeader) EncodingSizeSSZ() int
- func (l *LightClientHeader) HashSSZ() ([32]byte, error)
- func (l *LightClientHeader) Static() bool
- func (l *LightClientHeader) Version() clparams.StateVersion
- type LightClientOptimisticUpdate
- func (l *LightClientOptimisticUpdate) Clone() clonable.Clonable
- func (l *LightClientOptimisticUpdate) DecodeSSZ(buf []byte, version int) error
- func (l *LightClientOptimisticUpdate) EncodeSSZ(buf []byte) ([]byte, error)
- func (l *LightClientOptimisticUpdate) EncodingSizeSSZ() int
- func (l *LightClientOptimisticUpdate) HashSSZ() ([32]byte, error)
- type LightClientUpdate
- type LightClientUpdatesByRangeRequest
- type Metadata
- type ParticipationFlags
- type ParticipationFlagsList
- type Ping
- type ProposerSlashing
- type Root
- type SignedAggregateAndProof
- func (*SignedAggregateAndProof) Clone() clonable.Clonable
- func (a *SignedAggregateAndProof) DecodeSSZ(buf []byte, version int) error
- func (a *SignedAggregateAndProof) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *SignedAggregateAndProof) EncodingSizeSSZ() int
- func (a *SignedAggregateAndProof) HashSSZ() ([32]byte, error)
- type SignedAggregateAndProofData
- type SignedBLSToExecutionChange
- func (*SignedBLSToExecutionChange) Clone() clonable.Clonable
- func (s *SignedBLSToExecutionChange) DecodeSSZ(buf []byte, version int) error
- func (s *SignedBLSToExecutionChange) EncodeSSZ(buf []byte) ([]byte, error)
- func (s *SignedBLSToExecutionChange) EncodingSizeSSZ() int
- func (s *SignedBLSToExecutionChange) HashSSZ() ([32]byte, error)
- type SignedBLSToExecutionChangeWithGossipData
- type SignedBeaconBlock
- func (b *SignedBeaconBlock) Blinded() (*SignedBlindedBeaconBlock, error)
- func (s *SignedBeaconBlock) Clone() clonable.Clonable
- func (b *SignedBeaconBlock) DecodeSSZ(buf []byte, s int) error
- func (b *SignedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *SignedBeaconBlock) EncodingSizeSSZ() int
- func (b *SignedBeaconBlock) HashSSZ() ([32]byte, error)
- func (s *SignedBeaconBlock) SignedBeaconBlockHeader() *SignedBeaconBlockHeader
- func (b *SignedBeaconBlock) Static() bool
- func (b *SignedBeaconBlock) Version() clparams.StateVersion
- type SignedBeaconBlockHeader
- func (*SignedBeaconBlockHeader) Clone() clonable.Clonable
- func (b *SignedBeaconBlockHeader) DecodeSSZ(buf []byte, version int) error
- func (b *SignedBeaconBlockHeader) EncodeSSZ(dst []byte) ([]byte, error)
- func (b *SignedBeaconBlockHeader) EncodingSizeSSZ() int
- func (b *SignedBeaconBlockHeader) HashSSZ() ([32]byte, error)
- func (b *SignedBeaconBlockHeader) Static() bool
- type SignedBlindedBeaconBlock
- func (b *SignedBlindedBeaconBlock) Clone() clonable.Clonable
- func (b *SignedBlindedBeaconBlock) DecodeSSZ(buf []byte, s int) error
- func (b *SignedBlindedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
- func (b *SignedBlindedBeaconBlock) EncodingSizeSSZ() int
- func (b *SignedBlindedBeaconBlock) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *SignedBeaconBlock
- func (b *SignedBlindedBeaconBlock) HashSSZ() ([32]byte, error)
- func (s *SignedBlindedBeaconBlock) SignedBeaconBlockHeader() *SignedBeaconBlockHeader
- func (b *SignedBlindedBeaconBlock) Unblind(blockPayload *Eth1Block) (*SignedBeaconBlock, error)
- func (b *SignedBlindedBeaconBlock) Version() clparams.StateVersion
- type SignedContributionAndProof
- func (s *SignedContributionAndProof) Clone() clonable.Clonable
- func (a *SignedContributionAndProof) DecodeSSZ(buf []byte, version int) error
- func (a *SignedContributionAndProof) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *SignedContributionAndProof) EncodingSizeSSZ() int
- func (a *SignedContributionAndProof) HashSSZ() ([32]byte, error)
- type SignedVoluntaryExit
- func (*SignedVoluntaryExit) Clone() clonable.Clonable
- func (e *SignedVoluntaryExit) DecodeSSZ(buf []byte, version int) error
- func (e *SignedVoluntaryExit) EncodeSSZ(dst []byte) ([]byte, error)
- func (e *SignedVoluntaryExit) EncodingSizeSSZ() int
- func (e *SignedVoluntaryExit) HashSSZ() ([32]byte, error)
- type Status
- type SyncAggregate
- func (*SyncAggregate) Clone() clonable.Clonable
- func (agg *SyncAggregate) DecodeSSZ(buf []byte, version int) error
- func (agg *SyncAggregate) EncodeSSZ(buf []byte) ([]byte, error)
- func (agg *SyncAggregate) EncodingSizeSSZ() int
- func (agg *SyncAggregate) HashSSZ() ([32]byte, error)
- func (agg *SyncAggregate) IsSet(idx uint64) bool
- func (*SyncAggregate) Static() bool
- func (agg *SyncAggregate) Sum() int
- type SyncAggregatorSelectionData
- func (f *SyncAggregatorSelectionData) Clone() clonable.Clonable
- func (f *SyncAggregatorSelectionData) Copy() *SyncAggregatorSelectionData
- func (f *SyncAggregatorSelectionData) DecodeSSZ(buf []byte, _ int) error
- func (f *SyncAggregatorSelectionData) EncodeSSZ(dst []byte) ([]byte, error)
- func (f *SyncAggregatorSelectionData) EncodingSizeSSZ() int
- func (f *SyncAggregatorSelectionData) HashSSZ() ([32]byte, error)
- func (*SyncAggregatorSelectionData) Static() bool
- type SyncCommitteeMessage
- func (*SyncCommitteeMessage) Clone() clonable.Clonable
- func (a *SyncCommitteeMessage) DecodeSSZ(buf []byte, version int) error
- func (a *SyncCommitteeMessage) EncodeSSZ(dst []byte) ([]byte, error)
- func (a *SyncCommitteeMessage) EncodingSizeSSZ() int
- func (a *SyncCommitteeMessage) HashSSZ() ([32]byte, error)
- func (a *SyncCommitteeMessage) Static() bool
- type SyncContribution
- func (agg *SyncContribution) DecodeSSZ(buf []byte, version int) error
- func (agg *SyncContribution) EncodeSSZ(buf []byte) ([]byte, error)
- func (agg *SyncContribution) EncodingSizeSSZ() int
- func (agg *SyncContribution) HashSSZ() ([32]byte, error)
- func (agg *SyncContribution) IsSet(idx uint64) bool
- func (*SyncContribution) Static() bool
- func (agg *SyncContribution) Sum() int
- type ValidatorRegistration
- type ValidatorRegistrationMessage
- type VoluntaryExit
- func (*VoluntaryExit) Clone() clonable.Clonable
- func (e *VoluntaryExit) DecodeSSZ(buf []byte, version int) error
- func (e *VoluntaryExit) EncodeSSZ(buf []byte) ([]byte, error)
- func (*VoluntaryExit) EncodingSizeSSZ() int
- func (e *VoluntaryExit) HashSSZ() ([32]byte, error)
- func (*VoluntaryExit) Static() bool
- type Withdrawal
Constants ¶
const ( MaxAttesterSlashings = 2 MaxProposerSlashings = 16 MaxAttestations = 128 MaxDeposits = 16 MaxVoluntaryExits = 16 MaxExecutionChanges = 16 MaxBlobsCommittmentsPerBlock = 4096 // For electra fork MaxAttesterSlashingsElectra = 1 MaxAttestationsElectra = 8 )
const ( // https://github.com/ethereum/consensus-specs/blob/3a2304981a3b820a22b518fe4859f4bba0ebc83b/specs/deneb/polynomial-commitments.md#custom-types BYTES_PER_FIELD_ELEMENT = 32 FIELD_ELEMENTS_PER_BLOB = 4096 BYTES_KZG_PROOF = 48 BYTES_PER_BLOB = BYTES_PER_FIELD_ELEMENT * FIELD_ELEMENTS_PER_BLOB )
const ( ExecutionBranchSize = 4 SyncCommitteeBranchSize = 5 CurrentSyncCommitteeBranchSize = 5 FinalizedBranchSize = 6 )
const ( DepositProofLength = 33 SyncCommitteeSize = 512 )
const CommitmentBranchSize = 17
const JustificationBitsLength = 4
Variables ¶
var SyncCommitteeAggregationBitsSize = 16
Functions ¶
func IsSlashableAttestationData ¶
func IsSlashableAttestationData(d1, d2 *solid.AttestationData) bool
func VerifyCommitmentInclusionProof ¶
func VerifyCommitmentInclusionProof(commitment libcommon.Bytes48, commitmentInclusionProof solid.HashVectorSSZ, commitmentIndex uint64, version clparams.StateVersion, bodyRoot [32]byte) bool
Types ¶
type AggregateAndProof ¶
type AggregateAndProof struct { AggregatorIndex uint64 `json:"aggregator_index,string"` Aggregate *solid.Attestation `json:"aggregate"` SelectionProof libcommon.Bytes96 `json:"selection_proof"` }
* AggregateAndProof contains the index of the aggregator, the attestation * to be aggregated and the BLS signature of the attestation.
func (*AggregateAndProof) Clone ¶
func (*AggregateAndProof) Clone() clonable.Clonable
func (*AggregateAndProof) DecodeSSZ ¶
func (a *AggregateAndProof) DecodeSSZ(buf []byte, version int) error
func (*AggregateAndProof) EncodeSSZ ¶
func (a *AggregateAndProof) EncodeSSZ(dst []byte) ([]byte, error)
func (*AggregateAndProof) EncodingSizeSSZ ¶
func (a *AggregateAndProof) EncodingSizeSSZ() int
func (*AggregateAndProof) HashSSZ ¶
func (a *AggregateAndProof) HashSSZ() ([32]byte, error)
func (*AggregateAndProof) Static ¶
func (a *AggregateAndProof) Static() bool
type AttesterSlashing ¶
type AttesterSlashing struct { Attestation_1 *IndexedAttestation `json:"attestation_1"` Attestation_2 *IndexedAttestation `json:"attestation_2"` }
func NewAttesterSlashing ¶
func NewAttesterSlashing(version clparams.StateVersion) *AttesterSlashing
func (*AttesterSlashing) Clone ¶
func (*AttesterSlashing) Clone() clonable.Clonable
func (*AttesterSlashing) DecodeSSZ ¶
func (a *AttesterSlashing) DecodeSSZ(buf []byte, version int) error
func (*AttesterSlashing) EncodeSSZ ¶
func (a *AttesterSlashing) EncodeSSZ(dst []byte) ([]byte, error)
func (*AttesterSlashing) EncodingSizeSSZ ¶
func (a *AttesterSlashing) EncodingSizeSSZ() int
func (*AttesterSlashing) HashSSZ ¶
func (a *AttesterSlashing) HashSSZ() ([32]byte, error)
type BLSToExecutionChange ¶
type BLSToExecutionChange struct { ValidatorIndex uint64 `json:"validator_index,string"` From libcommon.Bytes48 `json:"from_bls_pubkey"` To libcommon.Address `json:"to_execution_address"` }
Change to EL engine
func (*BLSToExecutionChange) Clone ¶
func (*BLSToExecutionChange) Clone() clonable.Clonable
func (*BLSToExecutionChange) DecodeSSZ ¶
func (b *BLSToExecutionChange) DecodeSSZ(buf []byte, version int) error
func (*BLSToExecutionChange) EncodeSSZ ¶
func (b *BLSToExecutionChange) EncodeSSZ(buf []byte) ([]byte, error)
func (*BLSToExecutionChange) EncodingSizeSSZ ¶
func (*BLSToExecutionChange) EncodingSizeSSZ() int
func (*BLSToExecutionChange) HashSSZ ¶
func (b *BLSToExecutionChange) HashSSZ() ([32]byte, error)
func (*BLSToExecutionChange) Static ¶
func (*BLSToExecutionChange) Static() bool
type BeaconBlock ¶
type BeaconBlock struct { Slot uint64 `json:"slot,string"` ProposerIndex uint64 `json:"proposer_index,string"` ParentRoot libcommon.Hash `json:"parent_root"` StateRoot libcommon.Hash `json:"state_root"` Body *BeaconBody `json:"body"` }
Definition of BeaconBlock
func NewBeaconBlock ¶
func NewBeaconBlock(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *BeaconBlock
func (*BeaconBlock) Blinded ¶
func (b *BeaconBlock) Blinded() (*BlindedBeaconBlock, error)
func (*BeaconBlock) Clone ¶
func (b *BeaconBlock) Clone() clonable.Clonable
func (*BeaconBlock) EncodingSizeSSZ ¶
func (b *BeaconBlock) EncodingSizeSSZ() int
func (*BeaconBlock) GetBody ¶
func (b *BeaconBlock) GetBody() GenericBeaconBody
func (*BeaconBlock) GetParentRoot ¶
func (b *BeaconBlock) GetParentRoot() libcommon.Hash
func (*BeaconBlock) GetProposerIndex ¶
func (b *BeaconBlock) GetProposerIndex() uint64
func (*BeaconBlock) GetSlot ¶
func (b *BeaconBlock) GetSlot() uint64
func (*BeaconBlock) HashSSZ ¶
func (b *BeaconBlock) HashSSZ() ([32]byte, error)
func (*BeaconBlock) SetVersion ¶
func (b *BeaconBlock) SetVersion(version clparams.StateVersion)
func (*BeaconBlock) Static ¶
func (*BeaconBlock) Static() bool
func (*BeaconBlock) Version ¶
func (b *BeaconBlock) Version() clparams.StateVersion
Version returns beacon block version.
type BeaconBlockHeader ¶
type BeaconBlockHeader struct { Slot uint64 `json:"slot,string"` ProposerIndex uint64 `json:"proposer_index,string"` ParentRoot libcommon.Hash `json:"parent_root"` Root libcommon.Hash `json:"state_root"` BodyRoot libcommon.Hash `json:"body_root"` }
* BeaconBlockHeader is the message we validate in the lightclient. * It contains the hash of the block body, and state root data.
func (*BeaconBlockHeader) Clone ¶
func (*BeaconBlockHeader) Clone() clonable.Clonable
func (*BeaconBlockHeader) Copy ¶
func (b *BeaconBlockHeader) Copy() *BeaconBlockHeader
func (*BeaconBlockHeader) DecodeSSZ ¶
func (b *BeaconBlockHeader) DecodeSSZ(buf []byte, v int) error
func (*BeaconBlockHeader) EncodeSSZ ¶
func (b *BeaconBlockHeader) EncodeSSZ(dst []byte) ([]byte, error)
func (*BeaconBlockHeader) EncodingSizeSSZ ¶
func (b *BeaconBlockHeader) EncodingSizeSSZ() int
func (*BeaconBlockHeader) HashSSZ ¶
func (b *BeaconBlockHeader) HashSSZ() ([32]byte, error)
func (*BeaconBlockHeader) Static ¶
func (*BeaconBlockHeader) Static() bool
type BeaconBlocksByRangeRequest ¶
type BeaconBlocksByRangeRequest struct { StartSlot uint64 Count uint64 Step uint64 // Deprecated, must be set to 1 }
* BeaconBlocksByRangeRequest is the request for getting a range of blocks.
func (*BeaconBlocksByRangeRequest) Clone ¶
func (*BeaconBlocksByRangeRequest) Clone() clonable.Clonable
func (*BeaconBlocksByRangeRequest) DecodeSSZ ¶
func (b *BeaconBlocksByRangeRequest) DecodeSSZ(buf []byte, v int) error
func (*BeaconBlocksByRangeRequest) EncodeSSZ ¶
func (b *BeaconBlocksByRangeRequest) EncodeSSZ(buf []byte) ([]byte, error)
func (*BeaconBlocksByRangeRequest) EncodingSizeSSZ ¶
func (b *BeaconBlocksByRangeRequest) EncodingSizeSSZ() int
type BeaconBody ¶
type BeaconBody struct { // A byte array used for randomness in the beacon chain RandaoReveal libcommon.Bytes96 `json:"randao_reveal"` // Data related to the Ethereum 1.0 chain Eth1Data *Eth1Data `json:"eth1_data"` // A byte array used to customize validators' behavior Graffiti libcommon.Hash `json:"graffiti"` // A list of slashing events for validators who included invalid blocks in the chain ProposerSlashings *solid.ListSSZ[*ProposerSlashing] `json:"proposer_slashings"` // A list of slashing events for validators who included invalid attestations in the chain AttesterSlashings *solid.ListSSZ[*AttesterSlashing] `json:"attester_slashings"` // A list of attestations included in the block Attestations *solid.ListSSZ[*solid.Attestation] `json:"attestations"` // A list of deposits made to the Ethereum 1.0 chain Deposits *solid.ListSSZ[*Deposit] `json:"deposits"` // A list of validators who have voluntarily exited the beacon chain VoluntaryExits *solid.ListSSZ[*SignedVoluntaryExit] `json:"voluntary_exits"` // A summary of the current state of the beacon chain SyncAggregate *SyncAggregate `json:"sync_aggregate,omitempty"` // Data related to crosslink records and executing operations on the Ethereum 2.0 chain ExecutionPayload *Eth1Block `json:"execution_payload,omitempty"` // Withdrawals Diffs for Execution Layer ExecutionChanges *solid.ListSSZ[*SignedBLSToExecutionChange] `json:"bls_to_execution_changes,omitempty"` // The commitments for beacon chain blobs // With a max of 4 per block BlobKzgCommitments *solid.ListSSZ[*KZGCommitment] `json:"blob_kzg_commitments,omitempty"` // The version of the beacon chain Version clparams.StateVersion `json:"-"` // contains filtered or unexported fields }
Definition of BeaconBody
func NewBeaconBody ¶
func NewBeaconBody(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *BeaconBody
func (*BeaconBody) Blinded ¶
func (b *BeaconBody) Blinded() (*BlindedBeaconBody, error)
func (*BeaconBody) Clone ¶
func (b *BeaconBody) Clone() clonable.Clonable
func (*BeaconBody) EncodingSizeSSZ ¶
func (b *BeaconBody) EncodingSizeSSZ() (size int)
func (*BeaconBody) ExecutionPayloadMerkleProof ¶
func (b *BeaconBody) ExecutionPayloadMerkleProof() ([][32]byte, error)
func (*BeaconBody) GetAttestations ¶
func (b *BeaconBody) GetAttestations() *solid.ListSSZ[*solid.Attestation]
func (*BeaconBody) GetAttesterSlashings ¶
func (b *BeaconBody) GetAttesterSlashings() *solid.ListSSZ[*AttesterSlashing]
func (*BeaconBody) GetBlobKzgCommitments ¶
func (b *BeaconBody) GetBlobKzgCommitments() *solid.ListSSZ[*KZGCommitment]
func (*BeaconBody) GetDeposits ¶
func (b *BeaconBody) GetDeposits() *solid.ListSSZ[*Deposit]
func (*BeaconBody) GetEth1Data ¶
func (b *BeaconBody) GetEth1Data() *Eth1Data
func (*BeaconBody) GetExecutionChanges ¶
func (b *BeaconBody) GetExecutionChanges() *solid.ListSSZ[*SignedBLSToExecutionChange]
func (*BeaconBody) GetPayloadHeader ¶
func (b *BeaconBody) GetPayloadHeader() (*Eth1Header, error)
func (*BeaconBody) GetProposerSlashings ¶
func (b *BeaconBody) GetProposerSlashings() *solid.ListSSZ[*ProposerSlashing]
func (*BeaconBody) GetRandaoReveal ¶
func (b *BeaconBody) GetRandaoReveal() libcommon.Bytes96
func (*BeaconBody) GetSyncAggregate ¶
func (b *BeaconBody) GetSyncAggregate() *SyncAggregate
func (*BeaconBody) GetVoluntaryExits ¶
func (b *BeaconBody) GetVoluntaryExits() *solid.ListSSZ[*SignedVoluntaryExit]
func (*BeaconBody) HashSSZ ¶
func (b *BeaconBody) HashSSZ() ([32]byte, error)
func (*BeaconBody) KzgCommitmentMerkleProof ¶
func (b *BeaconBody) KzgCommitmentMerkleProof(index int) ([][32]byte, error)
func (*BeaconBody) SetVersion ¶
func (b *BeaconBody) SetVersion(version clparams.StateVersion)
func (*BeaconBody) Static ¶
func (*BeaconBody) Static() bool
func (*BeaconBody) UnmarshalJSON ¶
func (b *BeaconBody) UnmarshalJSON(buf []byte) error
type BlindOrExecutionBeaconBlock ¶
type BlindOrExecutionBeaconBlock struct { Slot uint64 `json:"-"` ProposerIndex uint64 `json:"-"` ParentRoot libcommon.Hash `json:"-"` StateRoot libcommon.Hash `json:"-"` // Full body BeaconBody *BeaconBody `json:"-"` KzgProofs []libcommon.Bytes48 `json:"-"` Blobs []*Blob `json:"-"` // Blinded body BlindedBeaconBody *BlindedBeaconBody `json:"-"` ExecutionValue *big.Int `json:"-"` Cfg *clparams.BeaconChainConfig }
BlindOrExecutionBeaconBlock is a union type that can be either a BlindedBeaconBlock or a BeaconBlock, depending on the context. It's a intermediate type used in the block production process.
func (*BlindOrExecutionBeaconBlock) GetExecutionValue ¶
func (b *BlindOrExecutionBeaconBlock) GetExecutionValue() *big.Int
func (*BlindOrExecutionBeaconBlock) IsBlinded ¶
func (b *BlindOrExecutionBeaconBlock) IsBlinded() bool
func (*BlindOrExecutionBeaconBlock) MarshalJSON ¶
func (b *BlindOrExecutionBeaconBlock) MarshalJSON() ([]byte, error)
func (*BlindOrExecutionBeaconBlock) ToBlinded ¶
func (b *BlindOrExecutionBeaconBlock) ToBlinded() *BlindedBeaconBlock
func (*BlindOrExecutionBeaconBlock) ToExecution ¶
func (b *BlindOrExecutionBeaconBlock) ToExecution() *DenebBeaconBlock
func (*BlindOrExecutionBeaconBlock) ToGeneric ¶
func (b *BlindOrExecutionBeaconBlock) ToGeneric() GenericBeaconBlock
func (*BlindOrExecutionBeaconBlock) UnmarshalJSON ¶
func (b *BlindOrExecutionBeaconBlock) UnmarshalJSON(data []byte) error
func (*BlindOrExecutionBeaconBlock) Version ¶
func (b *BlindOrExecutionBeaconBlock) Version() clparams.StateVersion
type BlindedBeaconBlock ¶
type BlindedBeaconBlock struct { Slot uint64 `json:"slot,string"` ProposerIndex uint64 `json:"proposer_index,string"` ParentRoot libcommon.Hash `json:"parent_root"` StateRoot libcommon.Hash `json:"state_root"` Body *BlindedBeaconBody `json:"body"` }
Definitions of BlindedBeaconBlock
func NewBlindedBeaconBlock ¶
func NewBlindedBeaconBlock(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *BlindedBeaconBlock
func (*BlindedBeaconBlock) Clone ¶
func (b *BlindedBeaconBlock) Clone() clonable.Clonable
func (*BlindedBeaconBlock) DecodeSSZ ¶
func (b *BlindedBeaconBlock) DecodeSSZ(buf []byte, version int) error
func (*BlindedBeaconBlock) EncodeSSZ ¶
func (b *BlindedBeaconBlock) EncodeSSZ(buf []byte) (dst []byte, err error)
func (*BlindedBeaconBlock) EncodingSizeSSZ ¶
func (b *BlindedBeaconBlock) EncodingSizeSSZ() int
func (*BlindedBeaconBlock) Full ¶
func (b *BlindedBeaconBlock) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *BeaconBlock
func (*BlindedBeaconBlock) GetBody ¶
func (b *BlindedBeaconBlock) GetBody() GenericBeaconBody
func (*BlindedBeaconBlock) GetParentRoot ¶
func (b *BlindedBeaconBlock) GetParentRoot() libcommon.Hash
func (*BlindedBeaconBlock) GetProposerIndex ¶
func (b *BlindedBeaconBlock) GetProposerIndex() uint64
func (*BlindedBeaconBlock) GetSlot ¶
func (b *BlindedBeaconBlock) GetSlot() uint64
func (*BlindedBeaconBlock) HashSSZ ¶
func (b *BlindedBeaconBlock) HashSSZ() ([32]byte, error)
func (*BlindedBeaconBlock) SetVersion ¶
func (b *BlindedBeaconBlock) SetVersion(version clparams.StateVersion) *BlindedBeaconBlock
func (*BlindedBeaconBlock) Static ¶
func (*BlindedBeaconBlock) Static() bool
func (*BlindedBeaconBlock) Version ¶
func (b *BlindedBeaconBlock) Version() clparams.StateVersion
type BlindedBeaconBody ¶
type BlindedBeaconBody struct { // A byte array used for randomness in the beacon chain RandaoReveal libcommon.Bytes96 `json:"randao_reveal"` // Data related to the Ethereum 1.0 chain Eth1Data *Eth1Data `json:"eth1_data"` // A byte array used to customize validators' behavior Graffiti libcommon.Hash `json:"graffiti"` // A list of slashing events for validators who included invalid blocks in the chain ProposerSlashings *solid.ListSSZ[*ProposerSlashing] `json:"proposer_slashings"` // A list of slashing events for validators who included invalid attestations in the chain AttesterSlashings *solid.ListSSZ[*AttesterSlashing] `json:"attester_slashings"` // A list of attestations included in the block Attestations *solid.ListSSZ[*solid.Attestation] `json:"attestations"` // A list of deposits made to the Ethereum 1.0 chain Deposits *solid.ListSSZ[*Deposit] `json:"deposits"` // A list of validators who have voluntarily exited the beacon chain VoluntaryExits *solid.ListSSZ[*SignedVoluntaryExit] `json:"voluntary_exits"` // A summary of the current state of the beacon chain SyncAggregate *SyncAggregate `json:"sync_aggregate,omitempty"` // Data related to crosslink records and executing operations on the Ethereum 2.0 chain ExecutionPayload *Eth1Header `json:"execution_payload_header,omitempty"` // Withdrawals Diffs for Execution Layer ExecutionChanges *solid.ListSSZ[*SignedBLSToExecutionChange] `json:"bls_to_execution_changes"` // The commitments for beacon chain blobs // With a max of 4 per block BlobKzgCommitments *solid.ListSSZ[*KZGCommitment] `json:"blob_kzg_commitments"` // The version of the beacon chain Version clparams.StateVersion `json:"-"` // contains filtered or unexported fields }
Definitions of BlindedBeaconBody
func NewBlindedBeaconBody ¶
func NewBlindedBeaconBody(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *BlindedBeaconBody
func (*BlindedBeaconBody) Clone ¶
func (b *BlindedBeaconBody) Clone() clonable.Clonable
func (*BlindedBeaconBody) DecodeSSZ ¶
func (b *BlindedBeaconBody) DecodeSSZ(buf []byte, version int) error
func (*BlindedBeaconBody) EncodeSSZ ¶
func (b *BlindedBeaconBody) EncodeSSZ(dst []byte) ([]byte, error)
func (*BlindedBeaconBody) EncodingSizeSSZ ¶
func (b *BlindedBeaconBody) EncodingSizeSSZ() (size int)
func (*BlindedBeaconBody) ExecutionPayloadMerkleProof ¶
func (b *BlindedBeaconBody) ExecutionPayloadMerkleProof() ([][32]byte, error)
func (*BlindedBeaconBody) Full ¶
func (b *BlindedBeaconBody) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *BeaconBody
func (*BlindedBeaconBody) GetAttestations ¶
func (b *BlindedBeaconBody) GetAttestations() *solid.ListSSZ[*solid.Attestation]
func (*BlindedBeaconBody) GetAttesterSlashings ¶
func (b *BlindedBeaconBody) GetAttesterSlashings() *solid.ListSSZ[*AttesterSlashing]
func (*BlindedBeaconBody) GetBlobKzgCommitments ¶
func (b *BlindedBeaconBody) GetBlobKzgCommitments() *solid.ListSSZ[*KZGCommitment]
func (*BlindedBeaconBody) GetDeposits ¶
func (b *BlindedBeaconBody) GetDeposits() *solid.ListSSZ[*Deposit]
func (*BlindedBeaconBody) GetEth1Data ¶
func (b *BlindedBeaconBody) GetEth1Data() *Eth1Data
func (*BlindedBeaconBody) GetExecutionChanges ¶
func (b *BlindedBeaconBody) GetExecutionChanges() *solid.ListSSZ[*SignedBLSToExecutionChange]
func (*BlindedBeaconBody) GetPayloadHeader ¶
func (b *BlindedBeaconBody) GetPayloadHeader() (*Eth1Header, error)
func (*BlindedBeaconBody) GetProposerSlashings ¶
func (b *BlindedBeaconBody) GetProposerSlashings() *solid.ListSSZ[*ProposerSlashing]
func (*BlindedBeaconBody) GetRandaoReveal ¶
func (b *BlindedBeaconBody) GetRandaoReveal() libcommon.Bytes96
func (*BlindedBeaconBody) GetSyncAggregate ¶
func (b *BlindedBeaconBody) GetSyncAggregate() *SyncAggregate
func (*BlindedBeaconBody) GetVoluntaryExits ¶
func (b *BlindedBeaconBody) GetVoluntaryExits() *solid.ListSSZ[*SignedVoluntaryExit]
func (*BlindedBeaconBody) HashSSZ ¶
func (b *BlindedBeaconBody) HashSSZ() ([32]byte, error)
func (*BlindedBeaconBody) SetBlobKzgCommitments ¶
func (b *BlindedBeaconBody) SetBlobKzgCommitments(commitments *solid.ListSSZ[*KZGCommitment]) *BlindedBeaconBody
func (*BlindedBeaconBody) SetHeader ¶
func (b *BlindedBeaconBody) SetHeader(header *Eth1Header) *BlindedBeaconBody
func (*BlindedBeaconBody) SetVersion ¶
func (b *BlindedBeaconBody) SetVersion(version clparams.StateVersion) *BlindedBeaconBody
func (*BlindedBeaconBody) Static ¶
func (*BlindedBeaconBody) Static() bool
type BlobIdentifier ¶
type BlobIdentifier struct { BlockRoot libcommon.Hash `json:"block_root"` Index uint64 `json:"index,string"` }
func NewBlobIdentifier ¶
func NewBlobIdentifier(blockRoot libcommon.Hash, index uint64) *BlobIdentifier
func (*BlobIdentifier) Clone ¶
func (*BlobIdentifier) Clone() clonable.Clonable
func (*BlobIdentifier) DecodeSSZ ¶
func (b *BlobIdentifier) DecodeSSZ(buf []byte, version int) error
func (*BlobIdentifier) EncodingSizeSSZ ¶
func (b *BlobIdentifier) EncodingSizeSSZ() int
func (*BlobIdentifier) HashSSZ ¶
func (b *BlobIdentifier) HashSSZ() ([32]byte, error)
type BlobSidecar ¶
type BlobSidecar struct { Index uint64 `json:"index,string"` Blob Blob `json:"blob"` // define byte vector of 4096 * 32 bytes KzgCommitment libcommon.Bytes48 `json:"kzg_commitment"` KzgProof libcommon.Bytes48 `json:"kzg_proof"` SignedBlockHeader *SignedBeaconBlockHeader `json:"signed_block_header"` CommitmentInclusionProof solid.HashVectorSSZ `json:"kzg_commitment_inclusion_proof"` }
func NewBlobSidecar ¶
func NewBlobSidecar(index uint64, blob *Blob, kzgCommitment libcommon.Bytes48, kzgProof libcommon.Bytes48, signedBlockHeader *SignedBeaconBlockHeader, commitmentInclusionProof solid.HashVectorSSZ) *BlobSidecar
func (*BlobSidecar) Clone ¶
func (b *BlobSidecar) Clone() clonable.Clonable
func (*BlobSidecar) EncodingSizeSSZ ¶
func (b *BlobSidecar) EncodingSizeSSZ() int
func (*BlobSidecar) HashSSZ ¶
func (b *BlobSidecar) HashSSZ() ([32]byte, error)
func (*BlobSidecar) UnmarshalJSON ¶
func (b *BlobSidecar) UnmarshalJSON(buf []byte) error
type BlobsByRangeRequest ¶
func (*BlobsByRangeRequest) Clone ¶
func (*BlobsByRangeRequest) Clone() clonable.Clonable
func (*BlobsByRangeRequest) DecodeSSZ ¶
func (l *BlobsByRangeRequest) DecodeSSZ(buf []byte, _ int) error
func (*BlobsByRangeRequest) EncodeSSZ ¶
func (l *BlobsByRangeRequest) EncodeSSZ(buf []byte) ([]byte, error)
func (*BlobsByRangeRequest) EncodingSizeSSZ ¶
func (l *BlobsByRangeRequest) EncodingSizeSSZ() int
type Contribution ¶
type Contribution struct { Slot uint64 `json:"slot,string"` BeaconBlockRoot libcommon.Hash `json:"beacon_block_root"` SubcommitteeIndex uint64 `json:"subcommittee_index,string"` AggregationBits hexutility.Bytes `json:"aggregation_bits"` Signature libcommon.Bytes96 `json:"signature"` }
func (*Contribution) Clone ¶
func (s *Contribution) Clone() clonable.Clonable
func (*Contribution) Copy ¶
func (a *Contribution) Copy() *Contribution
func (*Contribution) EncodingSizeSSZ ¶
func (a *Contribution) EncodingSizeSSZ() int
func (*Contribution) HashSSZ ¶
func (a *Contribution) HashSSZ() ([32]byte, error)
func (*Contribution) Static ¶
func (a *Contribution) Static() bool
type ContributionAndProof ¶
type ContributionAndProof struct { AggregatorIndex uint64 `json:"aggregator_index,string"` Contribution *Contribution `json:"contribution"` SelectionProof libcommon.Bytes96 `json:"selection_proof"` }
* ContributionAndProof contains the index of the aggregator, the attestation * to be aggregated and the BLS signature of the attestation.
func (*ContributionAndProof) Clone ¶
func (s *ContributionAndProof) Clone() clonable.Clonable
func (*ContributionAndProof) DecodeSSZ ¶
func (a *ContributionAndProof) DecodeSSZ(buf []byte, version int) error
func (*ContributionAndProof) EncodeSSZ ¶
func (a *ContributionAndProof) EncodeSSZ(dst []byte) ([]byte, error)
func (*ContributionAndProof) EncodingSizeSSZ ¶
func (a *ContributionAndProof) EncodingSizeSSZ() int
func (*ContributionAndProof) HashSSZ ¶
func (a *ContributionAndProof) HashSSZ() ([32]byte, error)
func (*ContributionAndProof) Static ¶
func (a *ContributionAndProof) Static() bool
type ContributionKey ¶
type DenebBeaconBlock ¶
type DenebBeaconBlock struct { Block *BeaconBlock `json:"block"` KZGProofs *solid.ListSSZ[*KZGProof] `json:"kzg_proofs"` Blobs *solid.ListSSZ[*Blob] `json:"blobs"` }
func NewDenebBeaconBlock ¶
func NewDenebBeaconBlock(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *DenebBeaconBlock
func (*DenebBeaconBlock) Clone ¶
func (b *DenebBeaconBlock) Clone() clonable.Clonable
func (*DenebBeaconBlock) DecodeSSZ ¶
func (b *DenebBeaconBlock) DecodeSSZ(buf []byte, version int) error
func (*DenebBeaconBlock) EncodeSSZ ¶
func (b *DenebBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
func (*DenebBeaconBlock) EncodingSizeSSZ ¶
func (b *DenebBeaconBlock) EncodingSizeSSZ() int
func (*DenebBeaconBlock) GetBody ¶
func (b *DenebBeaconBlock) GetBody() GenericBeaconBody
func (*DenebBeaconBlock) GetParentRoot ¶
func (b *DenebBeaconBlock) GetParentRoot() libcommon.Hash
func (*DenebBeaconBlock) GetProposerIndex ¶
func (b *DenebBeaconBlock) GetProposerIndex() uint64
func (*DenebBeaconBlock) GetSlot ¶
func (b *DenebBeaconBlock) GetSlot() uint64
func (*DenebBeaconBlock) Static ¶
func (b *DenebBeaconBlock) Static() bool
func (*DenebBeaconBlock) Version ¶
func (b *DenebBeaconBlock) Version() clparams.StateVersion
type DenebSignedBeaconBlock ¶
type DenebSignedBeaconBlock struct { SignedBlock *SignedBeaconBlock `json:"signed_block"` KZGProofs *solid.ListSSZ[*KZGProof] `json:"kzg_proofs"` Blobs *solid.ListSSZ[*Blob] `json:"blobs"` }
func NewDenebSignedBeaconBlock ¶
func NewDenebSignedBeaconBlock(beaconCfg *clparams.BeaconChainConfig) *DenebSignedBeaconBlock
func NewElectraSignedBeaconBlock ¶
func NewElectraSignedBeaconBlock(beaconCfg *clparams.BeaconChainConfig) *DenebSignedBeaconBlock
func (*DenebSignedBeaconBlock) Clone ¶
func (b *DenebSignedBeaconBlock) Clone() clonable.Clonable
func (*DenebSignedBeaconBlock) DecodeSSZ ¶
func (b *DenebSignedBeaconBlock) DecodeSSZ(buf []byte, version int) error
func (*DenebSignedBeaconBlock) EncodeSSZ ¶
func (b *DenebSignedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
func (*DenebSignedBeaconBlock) EncodingSizeSSZ ¶
func (b *DenebSignedBeaconBlock) EncodingSizeSSZ() int
func (*DenebSignedBeaconBlock) Static ¶
func (b *DenebSignedBeaconBlock) Static() bool
type Deposit ¶
type Deposit struct { // Merkle proof is used for deposits Proof solid.HashVectorSSZ `json:"proof"` // 33 X 32 size. Data *DepositData `json:"data"` }
func (*Deposit) EncodingSizeSSZ ¶
func (*Deposit) UnmarshalJSON ¶
type DepositData ¶
type DepositData struct { PubKey libcommon.Bytes48 `json:"pubkey"` WithdrawalCredentials libcommon.Hash `json:"withdrawal_credentials"` Amount uint64 `json:"amount,string"` Signature libcommon.Bytes96 `json:"signature"` }
func (*DepositData) Clone ¶
func (*DepositData) Clone() clonable.Clonable
func (*DepositData) EncodingSizeSSZ ¶
func (d *DepositData) EncodingSizeSSZ() int
func (*DepositData) HashSSZ ¶
func (d *DepositData) HashSSZ() ([32]byte, error)
func (*DepositData) MessageHash ¶
func (d *DepositData) MessageHash() ([32]byte, error)
func (*DepositData) Static ¶
func (*DepositData) Static() bool
type Eth1Block ¶
type Eth1Block struct { ParentHash libcommon.Hash `json:"parent_hash"` FeeRecipient libcommon.Address `json:"fee_recipient"` StateRoot libcommon.Hash `json:"state_root"` ReceiptsRoot libcommon.Hash `json:"receipts_root"` LogsBloom types.Bloom `json:"logs_bloom"` PrevRandao libcommon.Hash `json:"prev_randao"` BlockNumber uint64 `json:"block_number,string"` GasLimit uint64 `json:"gas_limit,string"` GasUsed uint64 `json:"gas_used,string"` Time uint64 `json:"timestamp,string"` Extra *solid.ExtraData `json:"extra_data"` BaseFeePerGas libcommon.Hash `json:"base_fee_per_gas"` // Extra fields BlockHash libcommon.Hash `json:"block_hash"` Transactions *solid.TransactionsSSZ `json:"transactions"` Withdrawals *solid.ListSSZ[*Withdrawal] `json:"withdrawals,omitempty"` BlobGasUsed uint64 `json:"blob_gas_used,string"` ExcessBlobGas uint64 `json:"excess_blob_gas,string"` // contains filtered or unexported fields }
ETH1Block represents a block structure CL-side.
func NewEth1Block ¶
func NewEth1Block(version clparams.StateVersion, beaconCfg *clparams.BeaconChainConfig) *Eth1Block
NewEth1Block creates a new Eth1Block.
func NewEth1BlockFromHeaderAndBody ¶
func NewEth1BlockFromHeaderAndBody(header *types.Header, body *types.RawBody, beaconCfg *clparams.BeaconChainConfig) *Eth1Block
NewEth1BlockFromHeaderAndBody with given header/body.
func (*Eth1Block) EncodingSizeSSZ ¶
Return minimum required buffer length to be an acceptable SSZ encoding.
func (*Eth1Block) MarshalJSON ¶
func (*Eth1Block) PayloadHeader ¶
func (b *Eth1Block) PayloadHeader() (*Eth1Header, error)
PayloadHeader returns the equivalent ExecutionPayloadHeader object.
func (*Eth1Block) RlpHeader ¶
RlpHeader returns the equivalent types.Header struct with RLP-based fields.
func (*Eth1Block) SetVersion ¶
func (b *Eth1Block) SetVersion(version clparams.StateVersion)
func (*Eth1Block) UnmarshalJSON ¶
func (*Eth1Block) Version ¶
func (b *Eth1Block) Version() clparams.StateVersion
type Eth1Data ¶
type Eth1Data struct { Root libcommon.Hash `json:"deposit_root"` DepositCount uint64 `json:"deposit_count,string"` BlockHash libcommon.Hash `json:"block_hash"` }
func NewEth1Data ¶
func NewEth1Data() *Eth1Data
func (*Eth1Data) EncodingSizeSSZ ¶
EncodingSizeSSZ returns the ssz encoded size in bytes for the Eth1Data object
type Eth1Header ¶
type Eth1Header struct { ParentHash libcommon.Hash `json:"parent_hash"` FeeRecipient libcommon.Address `json:"fee_recipient"` StateRoot libcommon.Hash `json:"state_root"` ReceiptsRoot libcommon.Hash `json:"receipts_root"` LogsBloom types.Bloom `json:"logs_bloom"` PrevRandao libcommon.Hash `json:"prev_randao"` BlockNumber uint64 `json:"block_number,string"` GasLimit uint64 `json:"gas_limit,string"` GasUsed uint64 `json:"gas_used,string"` Time uint64 `json:"time,string"` Extra *solid.ExtraData `json:"extra_data"` BaseFeePerGas libcommon.Hash `json:"base_fee_per_gas"` // Extra fields BlockHash libcommon.Hash `json:"block_hash"` TransactionsRoot libcommon.Hash `json:"transactions_root"` WithdrawalsRoot libcommon.Hash `json:"withdrawals_root"` BlobGasUsed uint64 `json:"blob_gas_used,string"` ExcessBlobGas uint64 `json:"excess_blob_gas,string"` // contains filtered or unexported fields }
ETH1Header represents the ethereum 1 header structure CL-side.
func NewEth1Header ¶
func NewEth1Header(version clparams.StateVersion) *Eth1Header
NewEth1Header creates new header with given version.
func (*Eth1Header) Capella ¶
func (e *Eth1Header) Capella()
Capella converts the header to capella version.
func (*Eth1Header) Clone ¶
func (*Eth1Header) Clone() clonable.Clonable
func (*Eth1Header) Copy ¶
func (e *Eth1Header) Copy() *Eth1Header
func (*Eth1Header) DecodeSSZ ¶
func (h *Eth1Header) DecodeSSZ(buf []byte, version int) error
DecodeSSZ decodes given SSZ slice.
func (*Eth1Header) EncodeSSZ ¶
func (h *Eth1Header) EncodeSSZ(dst []byte) ([]byte, error)
EncodeSSZ encodes the header in SSZ format.
func (*Eth1Header) EncodingSizeSSZ ¶
func (h *Eth1Header) EncodingSizeSSZ() int
EncodingSizeSSZ returns the ssz encoded size in bytes for the Header object
func (*Eth1Header) HashSSZ ¶
func (h *Eth1Header) HashSSZ() ([32]byte, error)
HashSSZ encodes the header in SSZ tree format.
func (*Eth1Header) IsZero ¶
func (e *Eth1Header) IsZero() bool
func (*Eth1Header) MarshalJSON ¶
func (h *Eth1Header) MarshalJSON() ([]byte, error)
func (*Eth1Header) SetVersion ¶
func (e *Eth1Header) SetVersion(v clparams.StateVersion)
func (*Eth1Header) Static ¶
func (h *Eth1Header) Static() bool
func (*Eth1Header) UnmarshalJSON ¶
func (h *Eth1Header) UnmarshalJSON(data []byte) error
type Fork ¶
type Fork struct { PreviousVersion libcommon.Bytes4 `json:"previous_version"` CurrentVersion libcommon.Bytes4 `json:"current_version"` Epoch uint64 `json:"epoch,string"` }
Fork data, contains if we were on bellatrix/alteir/phase0 and transition epoch.
func (*Fork) EncodingSizeSSZ ¶
type GenericBeaconBlock ¶
type GenericBeaconBlock interface { Version() clparams.StateVersion GetSlot() uint64 GetProposerIndex() uint64 GetParentRoot() libcommon.Hash GetBody() GenericBeaconBody }
type GenericBeaconBody ¶
type GenericBeaconBody interface { HashSSZ() ([32]byte, error) GetPayloadHeader() (*Eth1Header, error) GetRandaoReveal() libcommon.Bytes96 GetEth1Data() *Eth1Data GetSyncAggregate() *SyncAggregate GetProposerSlashings() *solid.ListSSZ[*ProposerSlashing] GetAttesterSlashings() *solid.ListSSZ[*AttesterSlashing] GetAttestations() *solid.ListSSZ[*solid.Attestation] GetDeposits() *solid.ListSSZ[*Deposit] GetVoluntaryExits() *solid.ListSSZ[*SignedVoluntaryExit] GetBlobKzgCommitments() *solid.ListSSZ[*KZGCommitment] GetExecutionChanges() *solid.ListSSZ[*SignedBLSToExecutionChange] }
type HistoricalSummary ¶
type HistoricalSummary struct { BlockSummaryRoot libcommon.Hash `json:"block_summary_root"` StateSummaryRoot libcommon.Hash `json:"state_summary_root"` }
func (*HistoricalSummary) Clone ¶
func (*HistoricalSummary) Clone() clonable.Clonable
func (*HistoricalSummary) DecodeSSZ ¶
func (h *HistoricalSummary) DecodeSSZ(buf []byte, _ int) error
func (*HistoricalSummary) EncodeSSZ ¶
func (h *HistoricalSummary) EncodeSSZ(buf []byte) ([]byte, error)
func (*HistoricalSummary) EncodingSizeSSZ ¶
func (*HistoricalSummary) EncodingSizeSSZ() int
func (*HistoricalSummary) HashSSZ ¶
func (h *HistoricalSummary) HashSSZ() ([32]byte, error)
type IndexedAttestation ¶
type IndexedAttestation struct { AttestingIndices *solid.RawUint64List `json:"attesting_indices"` Data *solid.AttestationData `json:"data"` Signature libcommon.Bytes96 `json:"signature"` }
* IndexedAttestation are attestantions sets to prove that someone misbehaved.
func NewIndexedAttestation ¶
func NewIndexedAttestation(version clparams.StateVersion) *IndexedAttestation
func (*IndexedAttestation) Clone ¶
func (*IndexedAttestation) Clone() clonable.Clonable
func (*IndexedAttestation) DecodeSSZ ¶
func (i *IndexedAttestation) DecodeSSZ(buf []byte, version int) error
DecodeSSZ ssz unmarshals the IndexedAttestation object
func (*IndexedAttestation) EncodeSSZ ¶
func (i *IndexedAttestation) EncodeSSZ(buf []byte) (dst []byte, err error)
func (*IndexedAttestation) EncodingSizeSSZ ¶
func (i *IndexedAttestation) EncodingSizeSSZ() int
EncodingSizeSSZ returns the ssz encoded size in bytes for the IndexedAttestation object
func (*IndexedAttestation) HashSSZ ¶
func (i *IndexedAttestation) HashSSZ() ([32]byte, error)
HashSSZ ssz hashes the IndexedAttestation object
func (*IndexedAttestation) Static ¶
func (i *IndexedAttestation) Static() bool
func (*IndexedAttestation) UnmarshalJSON ¶
func (i *IndexedAttestation) UnmarshalJSON(buf []byte) error
type JustificationBits ¶
type JustificationBits [JustificationBitsLength]bool // Bit vector of size 4
func (JustificationBits) Byte ¶
func (j JustificationBits) Byte() (out byte)
func (JustificationBits) CheckRange ¶
func (j JustificationBits) CheckRange(start int, end int) bool
CheckRange checks if bits in certain range are all enabled.
func (JustificationBits) Clone ¶
func (j JustificationBits) Clone() clonable.Clonable
func (JustificationBits) Copy ¶
func (j JustificationBits) Copy() JustificationBits
func (JustificationBits) EncodeSSZ ¶
func (j JustificationBits) EncodeSSZ(buf []byte) ([]byte, error)
func (JustificationBits) EncodingSizeSSZ ¶
func (JustificationBits) EncodingSizeSSZ() int
func (*JustificationBits) HashSSZ ¶
func (j *JustificationBits) HashSSZ() (out [32]byte, err error)
func (JustificationBits) MarshalJSON ¶
func (j JustificationBits) MarshalJSON() ([]byte, error)
func (JustificationBits) Static ¶
func (JustificationBits) Static() bool
func (*JustificationBits) UnmarshalJSON ¶
func (j *JustificationBits) UnmarshalJSON(input []byte) error
type KZGCommitment ¶
type KZGCommitment gokzg4844.KZGCommitment
func (*KZGCommitment) Clone ¶
func (*KZGCommitment) Clone() clonable.Clonable
func (*KZGCommitment) Copy ¶
func (b *KZGCommitment) Copy() *KZGCommitment
func (*KZGCommitment) EncodingSizeSSZ ¶
func (b *KZGCommitment) EncodingSizeSSZ() int
func (*KZGCommitment) HashSSZ ¶
func (b *KZGCommitment) HashSSZ() ([32]byte, error)
func (KZGCommitment) MarshalJSON ¶
func (b KZGCommitment) MarshalJSON() ([]byte, error)
func (*KZGCommitment) UnmarshalJSON ¶
func (b *KZGCommitment) UnmarshalJSON(data []byte) error
type KZGProof ¶
func (*KZGProof) EncodingSizeSSZ ¶
func (*KZGProof) MarshalJSON ¶
func (*KZGProof) UnmarshalJSON ¶
type LightClientBootstrap ¶
type LightClientBootstrap struct { Header *LightClientHeader `json:"header"` CurrentSyncCommittee *solid.SyncCommittee `json:"current_sync_committee"` CurrentSyncCommitteeBranch solid.HashVectorSSZ `json:"current_sync_committee_branch"` }
func NewLightClientBootstrap ¶
func NewLightClientBootstrap(version clparams.StateVersion) *LightClientBootstrap
func (*LightClientBootstrap) Clone ¶
func (l *LightClientBootstrap) Clone() clonable.Clonable
func (*LightClientBootstrap) DecodeSSZ ¶
func (l *LightClientBootstrap) DecodeSSZ(buf []byte, version int) error
func (*LightClientBootstrap) EncodeSSZ ¶
func (l *LightClientBootstrap) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientBootstrap) EncodingSizeSSZ ¶
func (l *LightClientBootstrap) EncodingSizeSSZ() int
func (*LightClientBootstrap) HashSSZ ¶
func (l *LightClientBootstrap) HashSSZ() ([32]byte, error)
type LightClientFinalityUpdate ¶
type LightClientFinalityUpdate struct { AttestedHeader *LightClientHeader `json:"attested_header"` FinalizedHeader *LightClientHeader `json:"finalized_header"` FinalityBranch solid.HashVectorSSZ `json:"finality_branch"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` SignatureSlot uint64 `json:"signature_slot,string"` }
func NewLightClientFinalityUpdate ¶
func NewLightClientFinalityUpdate(version clparams.StateVersion) *LightClientFinalityUpdate
func (*LightClientFinalityUpdate) Clone ¶
func (l *LightClientFinalityUpdate) Clone() clonable.Clonable
func (*LightClientFinalityUpdate) DecodeSSZ ¶
func (l *LightClientFinalityUpdate) DecodeSSZ(buf []byte, version int) error
func (*LightClientFinalityUpdate) EncodeSSZ ¶
func (l *LightClientFinalityUpdate) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientFinalityUpdate) EncodingSizeSSZ ¶
func (l *LightClientFinalityUpdate) EncodingSizeSSZ() int
func (*LightClientFinalityUpdate) HashSSZ ¶
func (l *LightClientFinalityUpdate) HashSSZ() ([32]byte, error)
type LightClientHeader ¶
type LightClientHeader struct { Beacon *BeaconBlockHeader `json:"beacon"` ExecutionPayloadHeader *Eth1Header `json:"execution_payload_header,omitempty"` ExecutionBranch solid.HashVectorSSZ `json:"execution_branch,omitempty"` // contains filtered or unexported fields }
func NewLightClientHeader ¶
func NewLightClientHeader(version clparams.StateVersion) *LightClientHeader
func (*LightClientHeader) Clone ¶
func (l *LightClientHeader) Clone() clonable.Clonable
func (*LightClientHeader) DecodeSSZ ¶
func (l *LightClientHeader) DecodeSSZ(buf []byte, version int) error
func (*LightClientHeader) EncodeSSZ ¶
func (l *LightClientHeader) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientHeader) EncodingSizeSSZ ¶
func (l *LightClientHeader) EncodingSizeSSZ() int
func (*LightClientHeader) HashSSZ ¶
func (l *LightClientHeader) HashSSZ() ([32]byte, error)
func (*LightClientHeader) Static ¶
func (l *LightClientHeader) Static() bool
func (*LightClientHeader) Version ¶
func (l *LightClientHeader) Version() clparams.StateVersion
type LightClientOptimisticUpdate ¶
type LightClientOptimisticUpdate struct { AttestedHeader *LightClientHeader `json:"attested_header"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` SignatureSlot uint64 `json:"signature_slot,string"` }
func NewLightClientOptimisticUpdate ¶
func NewLightClientOptimisticUpdate(version clparams.StateVersion) *LightClientOptimisticUpdate
func (*LightClientOptimisticUpdate) Clone ¶
func (l *LightClientOptimisticUpdate) Clone() clonable.Clonable
func (*LightClientOptimisticUpdate) DecodeSSZ ¶
func (l *LightClientOptimisticUpdate) DecodeSSZ(buf []byte, version int) error
func (*LightClientOptimisticUpdate) EncodeSSZ ¶
func (l *LightClientOptimisticUpdate) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientOptimisticUpdate) EncodingSizeSSZ ¶
func (l *LightClientOptimisticUpdate) EncodingSizeSSZ() int
func (*LightClientOptimisticUpdate) HashSSZ ¶
func (l *LightClientOptimisticUpdate) HashSSZ() ([32]byte, error)
type LightClientUpdate ¶
type LightClientUpdate struct { AttestedHeader *LightClientHeader `json:"attested_header"` NextSyncCommittee *solid.SyncCommittee `json:"next_sync_committee"` NextSyncCommitteeBranch solid.HashVectorSSZ `json:"next_sync_committee_branch"` FinalizedHeader *LightClientHeader `json:"finalized_header"` FinalityBranch solid.HashVectorSSZ `json:"finality_branch"` SyncAggregate *SyncAggregate `json:"sync_aggregate"` SignatureSlot uint64 `json:"signature_slot,string"` }
func NewLightClientUpdate ¶
func NewLightClientUpdate(version clparams.StateVersion) *LightClientUpdate
func (*LightClientUpdate) Clone ¶
func (l *LightClientUpdate) Clone() clonable.Clonable
func (*LightClientUpdate) DecodeSSZ ¶
func (l *LightClientUpdate) DecodeSSZ(buf []byte, version int) error
func (*LightClientUpdate) EncodeSSZ ¶
func (l *LightClientUpdate) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientUpdate) EncodingSizeSSZ ¶
func (l *LightClientUpdate) EncodingSizeSSZ() int
func (*LightClientUpdate) HashSSZ ¶
func (l *LightClientUpdate) HashSSZ() ([32]byte, error)
type LightClientUpdatesByRangeRequest ¶
func (*LightClientUpdatesByRangeRequest) Clone ¶
func (*LightClientUpdatesByRangeRequest) Clone() clonable.Clonable
func (*LightClientUpdatesByRangeRequest) DecodeSSZ ¶
func (l *LightClientUpdatesByRangeRequest) DecodeSSZ(buf []byte, _ int) error
func (*LightClientUpdatesByRangeRequest) EncodeSSZ ¶
func (l *LightClientUpdatesByRangeRequest) EncodeSSZ(buf []byte) ([]byte, error)
func (*LightClientUpdatesByRangeRequest) EncodingSizeSSZ ¶
func (l *LightClientUpdatesByRangeRequest) EncodingSizeSSZ() int
type ParticipationFlags ¶
type ParticipationFlags byte
func (ParticipationFlags) Add ¶
func (f ParticipationFlags) Add(index int) ParticipationFlags
func (ParticipationFlags) HasFlag ¶
func (f ParticipationFlags) HasFlag(index int) bool
type ParticipationFlagsList ¶
type ParticipationFlagsList []ParticipationFlags
func ParticipationFlagsListFromBytes ¶
func ParticipationFlagsListFromBytes(buf []byte) ParticipationFlagsList
func (ParticipationFlagsList) Bytes ¶
func (p ParticipationFlagsList) Bytes() []byte
func (ParticipationFlagsList) Copy ¶
func (p ParticipationFlagsList) Copy() ParticipationFlagsList
type Ping ¶
type Ping struct {
Id uint64
}
Ping is a test P2P message, used to test out liveness of our peer/signaling disconnection.
func (*Ping) EncodingSizeSSZ ¶
type ProposerSlashing ¶
type ProposerSlashing struct { Header1 *SignedBeaconBlockHeader `json:"signed_header_1"` Header2 *SignedBeaconBlockHeader `json:"signed_header_2"` }
func (*ProposerSlashing) Clone ¶
func (*ProposerSlashing) Clone() clonable.Clonable
func (*ProposerSlashing) DecodeSSZ ¶
func (p *ProposerSlashing) DecodeSSZ(buf []byte, version int) error
func (*ProposerSlashing) EncodeSSZ ¶
func (p *ProposerSlashing) EncodeSSZ(dst []byte) ([]byte, error)
func (*ProposerSlashing) EncodingSizeSSZ ¶
func (p *ProposerSlashing) EncodingSizeSSZ() int
func (*ProposerSlashing) HashSSZ ¶
func (p *ProposerSlashing) HashSSZ() ([32]byte, error)
type SignedAggregateAndProof ¶
type SignedAggregateAndProof struct { Message *AggregateAndProof `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
func (*SignedAggregateAndProof) Clone ¶
func (*SignedAggregateAndProof) Clone() clonable.Clonable
func (*SignedAggregateAndProof) DecodeSSZ ¶
func (a *SignedAggregateAndProof) DecodeSSZ(buf []byte, version int) error
func (*SignedAggregateAndProof) EncodeSSZ ¶
func (a *SignedAggregateAndProof) EncodeSSZ(dst []byte) ([]byte, error)
func (*SignedAggregateAndProof) EncodingSizeSSZ ¶
func (a *SignedAggregateAndProof) EncodingSizeSSZ() int
func (*SignedAggregateAndProof) HashSSZ ¶
func (a *SignedAggregateAndProof) HashSSZ() ([32]byte, error)
type SignedAggregateAndProofData ¶
type SignedAggregateAndProofData struct { SignedAggregateAndProof *SignedAggregateAndProof GossipData *sentinel.GossipData ImmediateProcess bool }
SignedAggregateAndProofData is passed to SignedAggregateAndProof service. The service does the signature verification asynchronously. That's why we cannot wait for its ProcessMessage call to finish to check error. The service will do re-publishing of the gossip or banning the peer in case of invalid signature by itself. that's why we are passing sentinel.SentinelClient and *sentinel.GossipData to enable the service to do all of that by itself.
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct { Message *BLSToExecutionChange `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
func (*SignedBLSToExecutionChange) Clone ¶
func (*SignedBLSToExecutionChange) Clone() clonable.Clonable
func (*SignedBLSToExecutionChange) DecodeSSZ ¶
func (s *SignedBLSToExecutionChange) DecodeSSZ(buf []byte, version int) error
func (*SignedBLSToExecutionChange) EncodeSSZ ¶
func (s *SignedBLSToExecutionChange) EncodeSSZ(buf []byte) ([]byte, error)
func (*SignedBLSToExecutionChange) EncodingSizeSSZ ¶
func (s *SignedBLSToExecutionChange) EncodingSizeSSZ() int
func (*SignedBLSToExecutionChange) HashSSZ ¶
func (s *SignedBLSToExecutionChange) HashSSZ() ([32]byte, error)
type SignedBLSToExecutionChangeWithGossipData ¶
type SignedBLSToExecutionChangeWithGossipData struct { SignedBLSToExecutionChange *SignedBLSToExecutionChange GossipData *sentinel.GossipData ImmediateVerification bool }
SignedBLSToExecutionChangeWithGossipData type represents SignedBLSToExecutionChange with the gossip data where it's coming from.
type SignedBeaconBlock ¶
type SignedBeaconBlock struct { Signature libcommon.Bytes96 `json:"signature"` Block *BeaconBlock `json:"message"` }
Definition of SignedBeaconBlock
func NewSignedBeaconBlock ¶
func NewSignedBeaconBlock(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *SignedBeaconBlock
func (*SignedBeaconBlock) Blinded ¶
func (b *SignedBeaconBlock) Blinded() (*SignedBlindedBeaconBlock, error)
func (*SignedBeaconBlock) Clone ¶
func (s *SignedBeaconBlock) Clone() clonable.Clonable
func (*SignedBeaconBlock) DecodeSSZ ¶
func (b *SignedBeaconBlock) DecodeSSZ(buf []byte, s int) error
func (*SignedBeaconBlock) EncodeSSZ ¶
func (b *SignedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
func (*SignedBeaconBlock) EncodingSizeSSZ ¶
func (b *SignedBeaconBlock) EncodingSizeSSZ() int
func (*SignedBeaconBlock) HashSSZ ¶
func (b *SignedBeaconBlock) HashSSZ() ([32]byte, error)
func (*SignedBeaconBlock) SignedBeaconBlockHeader ¶
func (s *SignedBeaconBlock) SignedBeaconBlockHeader() *SignedBeaconBlockHeader
func (*SignedBeaconBlock) Static ¶
func (b *SignedBeaconBlock) Static() bool
func (*SignedBeaconBlock) Version ¶
func (b *SignedBeaconBlock) Version() clparams.StateVersion
Version returns beacon block version.
type SignedBeaconBlockHeader ¶
type SignedBeaconBlockHeader struct { Header *BeaconBlockHeader `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
* SignedBeaconBlockHeader is a beacon block header + validator signature.
func (*SignedBeaconBlockHeader) Clone ¶
func (*SignedBeaconBlockHeader) Clone() clonable.Clonable
func (*SignedBeaconBlockHeader) DecodeSSZ ¶
func (b *SignedBeaconBlockHeader) DecodeSSZ(buf []byte, version int) error
func (*SignedBeaconBlockHeader) EncodeSSZ ¶
func (b *SignedBeaconBlockHeader) EncodeSSZ(dst []byte) ([]byte, error)
func (*SignedBeaconBlockHeader) EncodingSizeSSZ ¶
func (b *SignedBeaconBlockHeader) EncodingSizeSSZ() int
func (*SignedBeaconBlockHeader) HashSSZ ¶
func (b *SignedBeaconBlockHeader) HashSSZ() ([32]byte, error)
func (*SignedBeaconBlockHeader) Static ¶
func (b *SignedBeaconBlockHeader) Static() bool
type SignedBlindedBeaconBlock ¶
type SignedBlindedBeaconBlock struct { Signature libcommon.Bytes96 `json:"signature"` Block *BlindedBeaconBlock `json:"message"` }
Definitions of SignedBlindedBeaconBlock SignedBlindedBeaconBlock contains a signature and a BlindedBeaconBlock.
func NewSignedBlindedBeaconBlock ¶
func NewSignedBlindedBeaconBlock(beaconCfg *clparams.BeaconChainConfig, version clparams.StateVersion) *SignedBlindedBeaconBlock
func (*SignedBlindedBeaconBlock) Clone ¶
func (b *SignedBlindedBeaconBlock) Clone() clonable.Clonable
func (*SignedBlindedBeaconBlock) DecodeSSZ ¶
func (b *SignedBlindedBeaconBlock) DecodeSSZ(buf []byte, s int) error
func (*SignedBlindedBeaconBlock) EncodeSSZ ¶
func (b *SignedBlindedBeaconBlock) EncodeSSZ(buf []byte) ([]byte, error)
func (*SignedBlindedBeaconBlock) EncodingSizeSSZ ¶
func (b *SignedBlindedBeaconBlock) EncodingSizeSSZ() int
func (*SignedBlindedBeaconBlock) Full ¶
func (b *SignedBlindedBeaconBlock) Full(txs *solid.TransactionsSSZ, withdrawals *solid.ListSSZ[*Withdrawal]) *SignedBeaconBlock
func (*SignedBlindedBeaconBlock) HashSSZ ¶
func (b *SignedBlindedBeaconBlock) HashSSZ() ([32]byte, error)
func (*SignedBlindedBeaconBlock) SignedBeaconBlockHeader ¶
func (s *SignedBlindedBeaconBlock) SignedBeaconBlockHeader() *SignedBeaconBlockHeader
func (*SignedBlindedBeaconBlock) Unblind ¶
func (b *SignedBlindedBeaconBlock) Unblind(blockPayload *Eth1Block) (*SignedBeaconBlock, error)
func (*SignedBlindedBeaconBlock) Version ¶
func (b *SignedBlindedBeaconBlock) Version() clparams.StateVersion
type SignedContributionAndProof ¶
type SignedContributionAndProof struct { Message *ContributionAndProof `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
func (*SignedContributionAndProof) Clone ¶
func (s *SignedContributionAndProof) Clone() clonable.Clonable
func (*SignedContributionAndProof) DecodeSSZ ¶
func (a *SignedContributionAndProof) DecodeSSZ(buf []byte, version int) error
func (*SignedContributionAndProof) EncodeSSZ ¶
func (a *SignedContributionAndProof) EncodeSSZ(dst []byte) ([]byte, error)
func (*SignedContributionAndProof) EncodingSizeSSZ ¶
func (a *SignedContributionAndProof) EncodingSizeSSZ() int
func (*SignedContributionAndProof) HashSSZ ¶
func (a *SignedContributionAndProof) HashSSZ() ([32]byte, error)
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct { VoluntaryExit *VoluntaryExit `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
func (*SignedVoluntaryExit) Clone ¶
func (*SignedVoluntaryExit) Clone() clonable.Clonable
func (*SignedVoluntaryExit) DecodeSSZ ¶
func (e *SignedVoluntaryExit) DecodeSSZ(buf []byte, version int) error
func (*SignedVoluntaryExit) EncodeSSZ ¶
func (e *SignedVoluntaryExit) EncodeSSZ(dst []byte) ([]byte, error)
func (*SignedVoluntaryExit) EncodingSizeSSZ ¶
func (e *SignedVoluntaryExit) EncodingSizeSSZ() int
func (*SignedVoluntaryExit) HashSSZ ¶
func (e *SignedVoluntaryExit) HashSSZ() ([32]byte, error)
type Status ¶
type Status struct { ForkDigest [4]byte FinalizedRoot [32]byte FinalizedEpoch uint64 HeadRoot [32]byte HeadSlot uint64 }
* Status is a P2P Message we exchange when connecting to a new Peer. * It contains network information about the other peer and if mismatching we drop it.
func (*Status) EncodingSizeSSZ ¶
type SyncAggregate ¶
type SyncAggregate struct { SyncCommiteeBits libcommon.Bytes64 `json:"sync_committee_bits"` SyncCommiteeSignature libcommon.Bytes96 `json:"sync_committee_signature"` }
* SyncAggregate, Determines successful committee, bits shows active participants, * and signature is the aggregate BLS signature of the committee.
func NewSyncAggregate ¶
func NewSyncAggregate() *SyncAggregate
func (*SyncAggregate) Clone ¶
func (*SyncAggregate) Clone() clonable.Clonable
func (*SyncAggregate) DecodeSSZ ¶
func (agg *SyncAggregate) DecodeSSZ(buf []byte, version int) error
func (*SyncAggregate) EncodingSizeSSZ ¶
func (agg *SyncAggregate) EncodingSizeSSZ() int
func (*SyncAggregate) HashSSZ ¶
func (agg *SyncAggregate) HashSSZ() ([32]byte, error)
func (*SyncAggregate) IsSet ¶
func (agg *SyncAggregate) IsSet(idx uint64) bool
func (*SyncAggregate) Static ¶
func (*SyncAggregate) Static() bool
type SyncAggregatorSelectionData ¶
type SyncAggregatorSelectionData struct { Slot uint64 `json:"slot,string"` SubcommitteeIndex uint64 `json:"subcommittee_index,string"` }
SyncAggregatorSelectionData data, contains if we were on bellatrix/alteir/phase0 and transition epoch.
func (*SyncAggregatorSelectionData) Clone ¶
func (f *SyncAggregatorSelectionData) Clone() clonable.Clonable
func (*SyncAggregatorSelectionData) Copy ¶
func (f *SyncAggregatorSelectionData) Copy() *SyncAggregatorSelectionData
func (*SyncAggregatorSelectionData) DecodeSSZ ¶
func (f *SyncAggregatorSelectionData) DecodeSSZ(buf []byte, _ int) error
func (*SyncAggregatorSelectionData) EncodeSSZ ¶
func (f *SyncAggregatorSelectionData) EncodeSSZ(dst []byte) ([]byte, error)
func (*SyncAggregatorSelectionData) EncodingSizeSSZ ¶
func (f *SyncAggregatorSelectionData) EncodingSizeSSZ() int
func (*SyncAggregatorSelectionData) HashSSZ ¶
func (f *SyncAggregatorSelectionData) HashSSZ() ([32]byte, error)
func (*SyncAggregatorSelectionData) Static ¶
func (*SyncAggregatorSelectionData) Static() bool
type SyncCommitteeMessage ¶
type SyncCommitteeMessage struct { Slot uint64 `json:"slot,string"` BeaconBlockRoot libcommon.Hash `json:"beacon_block_root"` ValidatorIndex uint64 `json:"validator_index,string"` Signature libcommon.Bytes96 `json:"signature"` }
func (*SyncCommitteeMessage) Clone ¶
func (*SyncCommitteeMessage) Clone() clonable.Clonable
func (*SyncCommitteeMessage) DecodeSSZ ¶
func (a *SyncCommitteeMessage) DecodeSSZ(buf []byte, version int) error
func (*SyncCommitteeMessage) EncodeSSZ ¶
func (a *SyncCommitteeMessage) EncodeSSZ(dst []byte) ([]byte, error)
func (*SyncCommitteeMessage) EncodingSizeSSZ ¶
func (a *SyncCommitteeMessage) EncodingSizeSSZ() int
func (*SyncCommitteeMessage) HashSSZ ¶
func (a *SyncCommitteeMessage) HashSSZ() ([32]byte, error)
func (*SyncCommitteeMessage) Static ¶
func (a *SyncCommitteeMessage) Static() bool
type SyncContribution ¶
type SyncContribution struct { SyncCommiteeBits libcommon.Bytes64 `json:"sync_committee_bits"` SyncCommiteeSignature libcommon.Bytes96 `json:"signature"` }
* SyncContribution, Determines successful committee, bits shows active participants, * and signature is the aggregate BLS signature of the committee.
func (*SyncContribution) DecodeSSZ ¶
func (agg *SyncContribution) DecodeSSZ(buf []byte, version int) error
func (*SyncContribution) EncodeSSZ ¶
func (agg *SyncContribution) EncodeSSZ(buf []byte) ([]byte, error)
func (*SyncContribution) EncodingSizeSSZ ¶
func (agg *SyncContribution) EncodingSizeSSZ() int
func (*SyncContribution) HashSSZ ¶
func (agg *SyncContribution) HashSSZ() ([32]byte, error)
func (*SyncContribution) IsSet ¶
func (agg *SyncContribution) IsSet(idx uint64) bool
func (*SyncContribution) Static ¶
func (*SyncContribution) Static() bool
func (*SyncContribution) Sum ¶
func (agg *SyncContribution) Sum() int
return sum of the committee bits
type ValidatorRegistration ¶
type ValidatorRegistration struct { Message ValidatorRegistrationMessage `json:"message"` Signature libcommon.Bytes96 `json:"signature"` }
ValidatorRegistration is used as request payload for validator registration in builder client.
type VoluntaryExit ¶
type VoluntaryExit struct { Epoch uint64 `json:"epoch,string"` ValidatorIndex uint64 `json:"validator_index,string"` }
func (*VoluntaryExit) Clone ¶
func (*VoluntaryExit) Clone() clonable.Clonable
func (*VoluntaryExit) EncodingSizeSSZ ¶
func (*VoluntaryExit) EncodingSizeSSZ() int
func (*VoluntaryExit) HashSSZ ¶
func (e *VoluntaryExit) HashSSZ() ([32]byte, error)
func (*VoluntaryExit) Static ¶
func (*VoluntaryExit) Static() bool
type Withdrawal ¶
type Withdrawal struct { Index uint64 `json:"index,string"` // monotonically increasing identifier issued by consensus layer Validator uint64 `json:"validator_index,string"` // index of validator associated with withdrawal Address libcommon.Address `json:"address"` // target address for withdrawn ether Amount uint64 `json:"amount,string"` // value of withdrawal in GWei }
func (*Withdrawal) Clone ¶
func (*Withdrawal) Clone() clonable.Clonable
func (*Withdrawal) EncodingSizeSSZ ¶
func (obj *Withdrawal) EncodingSizeSSZ() int
func (*Withdrawal) HashSSZ ¶
func (obj *Withdrawal) HashSSZ() ([32]byte, error)
Source Files ¶
- aggregate.go
- beacon_block.go
- beacon_block_blinded.go
- beacon_block_interface.go
- beacon_committee_subscriptions.go
- beacon_header.go
- beacon_kzgcommitment.go
- blob_sidecar.go
- block_production.go
- bls_to_execution_change.go
- builder.go
- clone.go
- contribution.go
- eth1_block.go
- eth1_data.go
- eth1_header.go
- fork.go
- historical_summary.go
- indexed_attestation.go
- justification_bits.go
- light_client.go
- network.go
- participation_flags.go
- slashings.go
- sync_aggregator_selection_data.go
- validator.go
- withdrawal.go