Documentation
¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 45dcf20c8163706ce0f2d8b0bde4b725e3eb6fcebbfc0b9cf9de80317ca8d032 Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: 45dcf20c8163706ce0f2d8b0bde4b725e3eb6fcebbfc0b9cf9de80317ca8d032 Version: 0.1.3
Code generated by fastssz. DO NOT EDIT. Hash: 45dcf20c8163706ce0f2d8b0bde4b725e3eb6fcebbfc0b9cf9de80317ca8d032 Version: 0.1.3
Index ¶
- Constants
- func GetGeneralizedIndexForValidator(index uint64, validatorsArrayIndex uint64) uint64
- type Attestation
- func (a *Attestation) GetTree() (*ssz.Node, error)
- func (a *Attestation) HashTreeRoot() ([32]byte, error)
- func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *Attestation) MarshalSSZ() ([]byte, error)
- func (a *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *Attestation) SizeSSZ() (size int)
- func (a *Attestation) UnmarshalSSZ(buf []byte) error
- type AttestationData
- func (a *AttestationData) GetTree() (*ssz.Node, error)
- func (a *AttestationData) HashTreeRoot() ([32]byte, error)
- func (a *AttestationData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *AttestationData) MarshalSSZ() ([]byte, error)
- func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttestationData) SizeSSZ() (size int)
- func (a *AttestationData) UnmarshalSSZ(buf []byte) error
- type AttesterSlashing
- func (a *AttesterSlashing) GetTree() (*ssz.Node, error)
- func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)
- func (a *AttesterSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)
- func (a *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *AttesterSlashing) SizeSSZ() (size int)
- func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error
- type BLSToExecutionChange
- func (b *BLSToExecutionChange) GetTree() (*ssz.Node, error)
- func (b *BLSToExecutionChange) HashTreeRoot() ([32]byte, error)
- func (b *BLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (b *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BLSToExecutionChange) SizeSSZ() (size int)
- func (b *BLSToExecutionChange) UnmarshalSSZ(buf []byte) error
- type BeaconBlockHeader
- func (b *BeaconBlockHeader) GetTree() (*ssz.Node, error)
- func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error)
- func (b *BeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (b *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockHeader) SizeSSZ() (size int)
- func (b *BeaconBlockHeader) UnmarshalSSZ(buf []byte) error
- type Checkpoint
- func (c *Checkpoint) GetTree() (*ssz.Node, error)
- func (c *Checkpoint) HashTreeRoot() ([32]byte, error)
- func (c *Checkpoint) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (c *Checkpoint) MarshalSSZ() ([]byte, error)
- func (c *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (c *Checkpoint) SizeSSZ() (size int)
- func (c *Checkpoint) UnmarshalSSZ(buf []byte) error
- type Deposit
- func (d *Deposit) GetTree() (*ssz.Node, error)
- func (d *Deposit) HashTreeRoot() ([32]byte, error)
- func (d *Deposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *Deposit) MarshalSSZ() ([]byte, error)
- func (d *Deposit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *Deposit) SizeSSZ() (size int)
- func (d *Deposit) UnmarshalSSZ(buf []byte) error
- type DepositData
- func (d *DepositData) GetTree() (*ssz.Node, error)
- func (d *DepositData) HashTreeRoot() ([32]byte, error)
- func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *DepositData) MarshalSSZ() ([]byte, error)
- func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositData) SizeSSZ() (size int)
- func (d *DepositData) UnmarshalSSZ(buf []byte) error
- type DepositDataNoSignature
- func (d *DepositDataNoSignature) GetTree() (*ssz.Node, error)
- func (d *DepositDataNoSignature) HashTreeRoot() ([32]byte, error)
- func (d *DepositDataNoSignature) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (d *DepositDataNoSignature) MarshalSSZ() ([]byte, error)
- func (d *DepositDataNoSignature) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (d *DepositDataNoSignature) SizeSSZ() (size int)
- func (d *DepositDataNoSignature) UnmarshalSSZ(buf []byte) error
- type Eth1Data
- func (e *Eth1Data) GetTree() (*ssz.Node, error)
- func (e *Eth1Data) HashTreeRoot() ([32]byte, error)
- func (e *Eth1Data) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *Eth1Data) MarshalSSZ() ([]byte, error)
- func (e *Eth1Data) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *Eth1Data) SizeSSZ() (size int)
- func (e *Eth1Data) UnmarshalSSZ(buf []byte) error
- type ExecutionPayload
- func (e *ExecutionPayload) GetTree() (*ssz.Node, error)
- func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)
- func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)
- func (e *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayload) SizeSSZ() (size int)
- func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error
- type ExecutionPayloadHeader
- func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)
- func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
- func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
- func (e *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayloadHeader) SizeSSZ() (size int)
- func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
- type Fork
- func (f *Fork) GetTree() (*ssz.Node, error)
- func (f *Fork) HashTreeRoot() ([32]byte, error)
- func (f *Fork) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (f *Fork) MarshalSSZ() ([]byte, error)
- func (f *Fork) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (f *Fork) SizeSSZ() (size int)
- func (f *Fork) UnmarshalSSZ(buf []byte) error
- type HistoricalSummary
- func (h *HistoricalSummary) GetTree() (*ssz.Node, error)
- func (h *HistoricalSummary) HashTreeRoot() ([32]byte, error)
- func (h *HistoricalSummary) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (h *HistoricalSummary) MarshalSSZ() ([]byte, error)
- func (h *HistoricalSummary) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (h *HistoricalSummary) SizeSSZ() (size int)
- func (h *HistoricalSummary) UnmarshalSSZ(buf []byte) error
- type HistoricalSummaryLists
- func (h *HistoricalSummaryLists) GetTree() (*ssz.Node, error)
- func (h *HistoricalSummaryLists) HashTreeRoot() ([32]byte, error)
- func (h *HistoricalSummaryLists) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (h *HistoricalSummaryLists) MarshalSSZ() ([]byte, error)
- func (h *HistoricalSummaryLists) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (h *HistoricalSummaryLists) SizeSSZ() (size int)
- func (h *HistoricalSummaryLists) UnmarshalSSZ(buf []byte) error
- type IndexedAttestation
- func (i *IndexedAttestation) GetTree() (*ssz.Node, error)
- func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)
- func (i *IndexedAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)
- func (i *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (i *IndexedAttestation) SizeSSZ() (size int)
- func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error
- type PendingConsolidation
- func (p *PendingConsolidation) GetTree() (*ssz.Node, error)
- func (p *PendingConsolidation) HashTreeRoot() ([32]byte, error)
- func (p *PendingConsolidation) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *PendingConsolidation) MarshalSSZ() ([]byte, error)
- func (p *PendingConsolidation) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PendingConsolidation) SizeSSZ() (size int)
- func (p *PendingConsolidation) UnmarshalSSZ(buf []byte) error
- type PendingDeposit
- func (p *PendingDeposit) GetTree() (*ssz.Node, error)
- func (p *PendingDeposit) HashTreeRoot() ([32]byte, error)
- func (p *PendingDeposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *PendingDeposit) MarshalSSZ() ([]byte, error)
- func (p *PendingDeposit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PendingDeposit) SizeSSZ() (size int)
- func (p *PendingDeposit) UnmarshalSSZ(buf []byte) error
- type PendingPartialWithdrawal
- func (p *PendingPartialWithdrawal) GetTree() (*ssz.Node, error)
- func (p *PendingPartialWithdrawal) HashTreeRoot() ([32]byte, error)
- func (p *PendingPartialWithdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *PendingPartialWithdrawal) MarshalSSZ() ([]byte, error)
- func (p *PendingPartialWithdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PendingPartialWithdrawal) SizeSSZ() (size int)
- func (p *PendingPartialWithdrawal) UnmarshalSSZ(buf []byte) error
- type ProposerSlashing
- func (p *ProposerSlashing) GetTree() (*ssz.Node, error)
- func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)
- func (p *ProposerSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)
- func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *ProposerSlashing) SizeSSZ() (size int)
- func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error
- type SignedBLSToExecutionChange
- func (s *SignedBLSToExecutionChange) GetTree() (*ssz.Node, error)
- func (s *SignedBLSToExecutionChange) HashTreeRoot() ([32]byte, error)
- func (s *SignedBLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
- func (s *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBLSToExecutionChange) SizeSSZ() (size int)
- func (s *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) error
- type SignedBeaconBlockHeader
- func (s *SignedBeaconBlockHeader) GetTree() (*ssz.Node, error)
- func (s *SignedBeaconBlockHeader) HashTreeRoot() ([32]byte, error)
- func (s *SignedBeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
- func (s *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlockHeader) SizeSSZ() (size int)
- func (s *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) error
- type SignedVoluntaryExit
- func (s *SignedVoluntaryExit) GetTree() (*ssz.Node, error)
- func (s *SignedVoluntaryExit) HashTreeRoot() ([32]byte, error)
- func (s *SignedVoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
- func (s *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedVoluntaryExit) SizeSSZ() (size int)
- func (s *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) error
- type SigningRoot
- func (s *SigningRoot) GetTree() (*ssz.Node, error)
- func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
- func (s *SigningRoot) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SigningRoot) MarshalSSZ() ([]byte, error)
- func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SigningRoot) SizeSSZ() (size int)
- func (s *SigningRoot) UnmarshalSSZ(buf []byte) error
- type SyncAggregate
- func (s *SyncAggregate) GetTree() (*ssz.Node, error)
- func (s *SyncAggregate) HashTreeRoot() ([32]byte, error)
- func (s *SyncAggregate) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SyncAggregate) MarshalSSZ() ([]byte, error)
- func (s *SyncAggregate) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncAggregate) SizeSSZ() (size int)
- func (s *SyncAggregate) UnmarshalSSZ(buf []byte) error
- type SyncCommittee
- func (s *SyncCommittee) GetTree() (*ssz.Node, error)
- func (s *SyncCommittee) HashTreeRoot() ([32]byte, error)
- func (s *SyncCommittee) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SyncCommittee) MarshalSSZ() ([]byte, error)
- func (s *SyncCommittee) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncCommittee) SizeSSZ() (size int)
- func (s *SyncCommittee) UnmarshalSSZ(buf []byte) error
- type Uint256
- type Validator
- func (v *Validator) GetTree() (*ssz.Node, error)
- func (v *Validator) HashTreeRoot() ([32]byte, error)
- func (v *Validator) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *Validator) MarshalSSZ() ([]byte, error)
- func (v *Validator) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *Validator) SizeSSZ() (size int)
- func (v *Validator) UnmarshalSSZ(buf []byte) error
- type VoluntaryExit
- func (v *VoluntaryExit) GetTree() (*ssz.Node, error)
- func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)
- func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)
- func (v *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VoluntaryExit) SizeSSZ() (size int)
- func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error
- type Withdrawal
- func (w *Withdrawal) GetTree() (*ssz.Node, error)
- func (w *Withdrawal) HashTreeRoot() ([32]byte, error)
- func (w *Withdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (w *Withdrawal) MarshalSSZ() ([]byte, error)
- func (w *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (w *Withdrawal) SizeSSZ() (size int)
- func (w *Withdrawal) UnmarshalSSZ(buf []byte) error
- type WithdrawalCredentialsChange
- func (w *WithdrawalCredentialsChange) GetTree() (*ssz.Node, error)
- func (w *WithdrawalCredentialsChange) HashTreeRoot() ([32]byte, error)
- func (w *WithdrawalCredentialsChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (w *WithdrawalCredentialsChange) MarshalSSZ() ([]byte, error)
- func (w *WithdrawalCredentialsChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (w *WithdrawalCredentialsChange) SizeSSZ() (size int)
- func (w *WithdrawalCredentialsChange) UnmarshalSSZ(buf []byte) error
Constants ¶
const BeaconBlockBodyExecutionPayloadChunksCeil uint64 = 32
const BeaconBlockBodyExecutionPayloadIndex uint64 = 9
const BeaconBlockBodyExecutionPayloadWithdrawalsIndex uint64 = 14
const BeaconBlockBodyIndex uint64 = 4
const BeaconBlockChunksCeil uint64 = 8
const BeaconBlockHeaderStateRootGeneralizedIndex uint64 = 11 // Container with 5 fields, so gid 8 is the first field. We want the 4th field, so gid 8 + 3 = 11
const BeaconBlockWithdrawalsArrayMax uint64 = 16
const BeaconStateBlockRootsFieldIndex uint64 = 5
const BeaconStateBlockRootsMaxLength uint64 = 1 << 13
const BeaconStateHistoricalSummariesFieldIndex uint64 = 27
const BeaconStateHistoricalSummariesMaxLength uint64 = 1 << 24
const BeaconStateSlotIndex uint64 = 2
SlotIndex is the field offset of the Slot field in the BeaconState struct
const BeaconStateValidatorsIndex uint64 = 11
BeaconStateValidatorsIndex is the field offset of the Validators field in the BeaconState struct
const SlotsPerHistoricalRoot uint64 = 8192
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attestation ¶
type Attestation struct {
AggregationBits []byte `json:"aggregation_bits" ssz:"bitlist" ssz-max:"2048"`
Data *AttestationData `json:"data"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
func (*Attestation) GetTree ¶
func (a *Attestation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Attestation object
func (*Attestation) HashTreeRoot ¶
func (a *Attestation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Attestation object
func (*Attestation) HashTreeRootWith ¶
func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Attestation object with a hasher
func (*Attestation) MarshalSSZ ¶
func (a *Attestation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Attestation object
func (*Attestation) MarshalSSZTo ¶
func (a *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Attestation object to a target array
func (*Attestation) SizeSSZ ¶
func (a *Attestation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Attestation object
func (*Attestation) UnmarshalSSZ ¶
func (a *Attestation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Attestation object
type AttestationData ¶
type AttestationData struct {
Slot uint64 `json:"slot"`
Index uint64 `json:"index"`
BeaconBlockHash [32]byte `json:"beacon_block_root" ssz-size:"32"`
Source *Checkpoint `json:"source"`
Target *Checkpoint `json:"target"`
}
func (*AttestationData) GetTree ¶
func (a *AttestationData) GetTree() (*ssz.Node, error)
GetTree ssz hashes the AttestationData object
func (*AttestationData) HashTreeRoot ¶
func (a *AttestationData) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the AttestationData object
func (*AttestationData) HashTreeRootWith ¶
func (a *AttestationData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the AttestationData object with a hasher
func (*AttestationData) MarshalSSZ ¶
func (a *AttestationData) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the AttestationData object
func (*AttestationData) MarshalSSZTo ¶
func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the AttestationData object to a target array
func (*AttestationData) SizeSSZ ¶
func (a *AttestationData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the AttestationData object
func (*AttestationData) UnmarshalSSZ ¶
func (a *AttestationData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the AttestationData object
type AttesterSlashing ¶
type AttesterSlashing struct {
Attestation1 *IndexedAttestation `json:"attestation_1"`
Attestation2 *IndexedAttestation `json:"attestation_2"`
}
func (*AttesterSlashing) GetTree ¶
func (a *AttesterSlashing) GetTree() (*ssz.Node, error)
GetTree ssz hashes the AttesterSlashing object
func (*AttesterSlashing) HashTreeRoot ¶
func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the AttesterSlashing object
func (*AttesterSlashing) HashTreeRootWith ¶
func (a *AttesterSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the AttesterSlashing object with a hasher
func (*AttesterSlashing) MarshalSSZ ¶
func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the AttesterSlashing object
func (*AttesterSlashing) MarshalSSZTo ¶
func (a *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the AttesterSlashing object to a target array
func (*AttesterSlashing) SizeSSZ ¶
func (a *AttesterSlashing) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the AttesterSlashing object
func (*AttesterSlashing) UnmarshalSSZ ¶
func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the AttesterSlashing object
type BLSToExecutionChange ¶
type BLSToExecutionChange struct {
ValidatorIndex uint64 `json:"validator_index"`
FromBLSPubKey [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}
func (*BLSToExecutionChange) GetTree ¶
func (b *BLSToExecutionChange) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BLSToExecutionChange object
func (*BLSToExecutionChange) HashTreeRoot ¶
func (b *BLSToExecutionChange) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BLSToExecutionChange object
func (*BLSToExecutionChange) HashTreeRootWith ¶
func (b *BLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BLSToExecutionChange object with a hasher
func (*BLSToExecutionChange) MarshalSSZ ¶
func (b *BLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BLSToExecutionChange object
func (*BLSToExecutionChange) MarshalSSZTo ¶
func (b *BLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BLSToExecutionChange object to a target array
func (*BLSToExecutionChange) SizeSSZ ¶
func (b *BLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BLSToExecutionChange object
func (*BLSToExecutionChange) UnmarshalSSZ ¶
func (b *BLSToExecutionChange) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BLSToExecutionChange object
type BeaconBlockHeader ¶
type BeaconBlockHeader struct {
Slot uint64 `json:"slot"`
ProposerIndex uint64 `json:"proposer_index"`
ParentRoot []byte `json:"parent_root" ssz-size:"32"`
StateRoot []byte `json:"state_root" ssz-size:"32"`
BodyRoot []byte `json:"body_root" ssz-size:"32"`
}
func (*BeaconBlockHeader) GetTree ¶
func (b *BeaconBlockHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the BeaconBlockHeader object
func (*BeaconBlockHeader) HashTreeRoot ¶
func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the BeaconBlockHeader object
func (*BeaconBlockHeader) HashTreeRootWith ¶
func (b *BeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BeaconBlockHeader object with a hasher
func (*BeaconBlockHeader) MarshalSSZ ¶
func (b *BeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the BeaconBlockHeader object
func (*BeaconBlockHeader) MarshalSSZTo ¶
func (b *BeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the BeaconBlockHeader object to a target array
func (*BeaconBlockHeader) SizeSSZ ¶
func (b *BeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockHeader object
func (*BeaconBlockHeader) UnmarshalSSZ ¶
func (b *BeaconBlockHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the BeaconBlockHeader object
type Checkpoint ¶
func (*Checkpoint) GetTree ¶
func (c *Checkpoint) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Checkpoint object
func (*Checkpoint) HashTreeRoot ¶
func (c *Checkpoint) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Checkpoint object
func (*Checkpoint) HashTreeRootWith ¶
func (c *Checkpoint) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Checkpoint object with a hasher
func (*Checkpoint) MarshalSSZ ¶
func (c *Checkpoint) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Checkpoint object
func (*Checkpoint) MarshalSSZTo ¶
func (c *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Checkpoint object to a target array
func (*Checkpoint) SizeSSZ ¶
func (c *Checkpoint) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Checkpoint object
func (*Checkpoint) UnmarshalSSZ ¶
func (c *Checkpoint) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Checkpoint object
type Deposit ¶
type Deposit struct {
Proof [][]byte `ssz-size:"33,32"`
Data *DepositData
}
func (*Deposit) HashTreeRoot ¶
HashTreeRoot ssz hashes the Deposit object
func (*Deposit) HashTreeRootWith ¶
func (d *Deposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Deposit object with a hasher
func (*Deposit) MarshalSSZ ¶
MarshalSSZ ssz marshals the Deposit object
func (*Deposit) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Deposit object to a target array
func (*Deposit) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Deposit object
type DepositData ¶
type DepositData struct {
PublicKey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
Amount uint64 `json:"amount"`
Signature []byte `json:"signature" ssz-size:"96"`
}
Deposit data (including signature)
func (*DepositData) GetTree ¶
func (d *DepositData) GetTree() (*ssz.Node, error)
GetTree ssz hashes the DepositData object
func (*DepositData) HashTreeRoot ¶
func (d *DepositData) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the DepositData object
func (*DepositData) HashTreeRootWith ¶
func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the DepositData object with a hasher
func (*DepositData) MarshalSSZ ¶
func (d *DepositData) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the DepositData object
func (*DepositData) MarshalSSZTo ¶
func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the DepositData object to a target array
func (*DepositData) SizeSSZ ¶
func (d *DepositData) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the DepositData object
func (*DepositData) UnmarshalSSZ ¶
func (d *DepositData) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the DepositData object
type DepositDataNoSignature ¶
type DepositDataNoSignature struct {
PublicKey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
Amount uint64 `json:"amount"`
}
Deposit data (with no signature field)
func (*DepositDataNoSignature) GetTree ¶
func (d *DepositDataNoSignature) GetTree() (*ssz.Node, error)
GetTree ssz hashes the DepositDataNoSignature object
func (*DepositDataNoSignature) HashTreeRoot ¶
func (d *DepositDataNoSignature) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the DepositDataNoSignature object
func (*DepositDataNoSignature) HashTreeRootWith ¶
func (d *DepositDataNoSignature) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the DepositDataNoSignature object with a hasher
func (*DepositDataNoSignature) MarshalSSZ ¶
func (d *DepositDataNoSignature) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the DepositDataNoSignature object
func (*DepositDataNoSignature) MarshalSSZTo ¶
func (d *DepositDataNoSignature) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the DepositDataNoSignature object to a target array
func (*DepositDataNoSignature) SizeSSZ ¶
func (d *DepositDataNoSignature) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the DepositDataNoSignature object
func (*DepositDataNoSignature) UnmarshalSSZ ¶
func (d *DepositDataNoSignature) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the DepositDataNoSignature object
type Eth1Data ¶
type Eth1Data struct {
DepositRoot []byte `json:"deposit_root" ssz-size:"32"`
DepositCount uint64 `json:"deposit_count"`
BlockHash []byte `json:"block_hash" ssz-size:"32"`
}
func (*Eth1Data) HashTreeRoot ¶
HashTreeRoot ssz hashes the Eth1Data object
func (*Eth1Data) HashTreeRootWith ¶
func (e *Eth1Data) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Eth1Data object with a hasher
func (*Eth1Data) MarshalSSZ ¶
MarshalSSZ ssz marshals the Eth1Data object
func (*Eth1Data) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Eth1Data object to a target array
func (*Eth1Data) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Eth1Data object
type ExecutionPayload ¶
type ExecutionPayload struct {
ParentHash [32]byte `ssz-size:"32" json:"parent_hash"`
FeeRecipient [20]byte `ssz-size:"20" json:"fee_recipient"`
StateRoot [32]byte `ssz-size:"32" json:"state_root"`
ReceiptsRoot [32]byte `ssz-size:"32" json:"receipts_root"`
LogsBloom [256]byte `ssz-size:"256" json:"logs_bloom"`
PrevRandao [32]byte `ssz-size:"32" json:"prev_randao"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `ssz-max:"32" json:"extra_data"`
BaseFeePerGas Uint256 `ssz-size:"32" json:"base_fee_per_gas"`
BlockHash [32]byte `ssz-size:"32" json:"block_hash"`
Transactions [][]byte `ssz-max:"1048576,1073741824" ssz-size:"?,?" json:"transactions"`
Withdrawals []*Withdrawal `json:"withdrawals" ssz-max:"16"`
BlobGasUsed uint64 `json:"blob_gas_used"`
ExcessBlobGas uint64 `json:"excess_blob_gas"`
}
func (*ExecutionPayload) GetTree ¶
func (e *ExecutionPayload) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ExecutionPayload object
func (*ExecutionPayload) HashTreeRoot ¶
func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ExecutionPayload object
func (*ExecutionPayload) HashTreeRootWith ¶
func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ExecutionPayload object with a hasher
func (*ExecutionPayload) MarshalSSZ ¶
func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ExecutionPayload object
func (*ExecutionPayload) MarshalSSZTo ¶
func (e *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ExecutionPayload object to a target array
func (*ExecutionPayload) SizeSSZ ¶
func (e *ExecutionPayload) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayload object
func (*ExecutionPayload) UnmarshalSSZ ¶
func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ExecutionPayload object
type ExecutionPayloadHeader ¶
type ExecutionPayloadHeader struct {
ParentHash [32]byte `json:"parent_hash" ssz-size:"32"`
FeeRecipient [20]byte `json:"fee_recipient" ssz-size:"20"`
StateRoot [32]byte `json:"state_root" ssz-size:"32"`
ReceiptsRoot [32]byte `json:"receipts_root" ssz-size:"32"`
LogsBloom [256]byte `json:"logs_bloom" ssz-size:"256"`
PrevRandao [32]byte `json:"prev_randao" ssz-size:"32"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `json:"extra_data" ssz-max:"32"`
BaseFeePerGas Uint256 `json:"base_fee_per_gas" ssz-size:"32"`
BlockHash [32]byte `json:"block_hash" ssz-size:"32"`
TransactionsRoot [32]byte `json:"transactions_root" ssz-size:"32"`
WithdrawalRoot [32]byte `json:"withdrawals_root" ssz-size:"32"`
BlobGasUsed uint64 `json:"blob_gas_used"`
ExcessBlobGas uint64 `json:"excess_blob_gas"`
}
func (*ExecutionPayloadHeader) GetTree ¶
func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) HashTreeRoot ¶
func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) HashTreeRootWith ¶
func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ExecutionPayloadHeader object with a hasher
func (*ExecutionPayloadHeader) MarshalSSZ ¶
func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) MarshalSSZTo ¶
func (e *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ExecutionPayloadHeader object to a target array
func (*ExecutionPayloadHeader) SizeSSZ ¶
func (e *ExecutionPayloadHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ExecutionPayloadHeader object
func (*ExecutionPayloadHeader) UnmarshalSSZ ¶
func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ExecutionPayloadHeader object
type Fork ¶
type Fork struct {
PreviousVersion []byte `json:"previous_version" ssz-size:"4"`
CurrentVersion []byte `json:"current_version" ssz-size:"4"`
Epoch uint64 `json:"epoch"`
}
func (*Fork) HashTreeRoot ¶
HashTreeRoot ssz hashes the Fork object
func (*Fork) HashTreeRootWith ¶
func (f *Fork) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Fork object with a hasher
func (*Fork) MarshalSSZ ¶
MarshalSSZ ssz marshals the Fork object
func (*Fork) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Fork object to a target array
func (*Fork) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Fork object
type HistoricalSummary ¶
type HistoricalSummary struct {
BlockSummaryRoot [32]byte `json:"block_summary_root" ssz-size:"32"`
StateSummaryRoot [32]byte `json:"state_summary_root" ssz-size:"32"`
}
func (*HistoricalSummary) GetTree ¶
func (h *HistoricalSummary) GetTree() (*ssz.Node, error)
GetTree ssz hashes the HistoricalSummary object
func (*HistoricalSummary) HashTreeRoot ¶
func (h *HistoricalSummary) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the HistoricalSummary object
func (*HistoricalSummary) HashTreeRootWith ¶
func (h *HistoricalSummary) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the HistoricalSummary object with a hasher
func (*HistoricalSummary) MarshalSSZ ¶
func (h *HistoricalSummary) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the HistoricalSummary object
func (*HistoricalSummary) MarshalSSZTo ¶
func (h *HistoricalSummary) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the HistoricalSummary object to a target array
func (*HistoricalSummary) SizeSSZ ¶
func (h *HistoricalSummary) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the HistoricalSummary object
func (*HistoricalSummary) UnmarshalSSZ ¶
func (h *HistoricalSummary) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the HistoricalSummary object
type HistoricalSummaryLists ¶
type HistoricalSummaryLists struct {
BlockRoots [8192][32]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [8192][32]byte `json:"state_roots" ssz-size:"8192,32"`
}
func (*HistoricalSummaryLists) GetTree ¶
func (h *HistoricalSummaryLists) GetTree() (*ssz.Node, error)
GetTree ssz hashes the HistoricalSummaryLists object
func (*HistoricalSummaryLists) HashTreeRoot ¶
func (h *HistoricalSummaryLists) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the HistoricalSummaryLists object
func (*HistoricalSummaryLists) HashTreeRootWith ¶
func (h *HistoricalSummaryLists) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the HistoricalSummaryLists object with a hasher
func (*HistoricalSummaryLists) MarshalSSZ ¶
func (h *HistoricalSummaryLists) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the HistoricalSummaryLists object
func (*HistoricalSummaryLists) MarshalSSZTo ¶
func (h *HistoricalSummaryLists) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the HistoricalSummaryLists object to a target array
func (*HistoricalSummaryLists) SizeSSZ ¶
func (h *HistoricalSummaryLists) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the HistoricalSummaryLists object
func (*HistoricalSummaryLists) UnmarshalSSZ ¶
func (h *HistoricalSummaryLists) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the HistoricalSummaryLists object
type IndexedAttestation ¶
type IndexedAttestation struct {
AttestationIndices []uint64 `json:"attesting_indices" ssz-max:"2048"`
Data *AttestationData `json:"data"`
Signature []byte `json:"signature" ssz-size:"96"`
}
func (*IndexedAttestation) GetTree ¶
func (i *IndexedAttestation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the IndexedAttestation object
func (*IndexedAttestation) HashTreeRoot ¶
func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the IndexedAttestation object
func (*IndexedAttestation) HashTreeRootWith ¶
func (i *IndexedAttestation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the IndexedAttestation object with a hasher
func (*IndexedAttestation) MarshalSSZ ¶
func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the IndexedAttestation object
func (*IndexedAttestation) MarshalSSZTo ¶
func (i *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the IndexedAttestation object to a target array
func (*IndexedAttestation) SizeSSZ ¶
func (i *IndexedAttestation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the IndexedAttestation object
func (*IndexedAttestation) UnmarshalSSZ ¶
func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the IndexedAttestation object
type PendingConsolidation ¶
type PendingConsolidation struct {
SourceIndex uint64 `json:"source_index"`
TargetIndex uint64 `json:"target_index"`
}
func (*PendingConsolidation) GetTree ¶
func (p *PendingConsolidation) GetTree() (*ssz.Node, error)
GetTree ssz hashes the PendingConsolidation object
func (*PendingConsolidation) HashTreeRoot ¶
func (p *PendingConsolidation) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the PendingConsolidation object
func (*PendingConsolidation) HashTreeRootWith ¶
func (p *PendingConsolidation) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the PendingConsolidation object with a hasher
func (*PendingConsolidation) MarshalSSZ ¶
func (p *PendingConsolidation) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the PendingConsolidation object
func (*PendingConsolidation) MarshalSSZTo ¶
func (p *PendingConsolidation) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the PendingConsolidation object to a target array
func (*PendingConsolidation) SizeSSZ ¶
func (p *PendingConsolidation) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the PendingConsolidation object
func (*PendingConsolidation) UnmarshalSSZ ¶
func (p *PendingConsolidation) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the PendingConsolidation object
type PendingDeposit ¶
type PendingDeposit struct {
Pubkey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
Amount uint64 `json:"amount"`
Signature []byte `json:"signature" ssz-size:"96"`
Slot uint64 `json:"slot"`
}
func (*PendingDeposit) GetTree ¶
func (p *PendingDeposit) GetTree() (*ssz.Node, error)
GetTree ssz hashes the PendingDeposit object
func (*PendingDeposit) HashTreeRoot ¶
func (p *PendingDeposit) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the PendingDeposit object
func (*PendingDeposit) HashTreeRootWith ¶
func (p *PendingDeposit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the PendingDeposit object with a hasher
func (*PendingDeposit) MarshalSSZ ¶
func (p *PendingDeposit) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the PendingDeposit object
func (*PendingDeposit) MarshalSSZTo ¶
func (p *PendingDeposit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the PendingDeposit object to a target array
func (*PendingDeposit) SizeSSZ ¶
func (p *PendingDeposit) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the PendingDeposit object
func (*PendingDeposit) UnmarshalSSZ ¶
func (p *PendingDeposit) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the PendingDeposit object
type PendingPartialWithdrawal ¶
type PendingPartialWithdrawal struct {
ValidatorIndex uint64 `json:"validator_index"`
Amount uint64 `json:"amount"`
WithdrawableEpoch uint64 `json:"withdrawable_epoch"`
}
func (*PendingPartialWithdrawal) GetTree ¶
func (p *PendingPartialWithdrawal) GetTree() (*ssz.Node, error)
GetTree ssz hashes the PendingPartialWithdrawal object
func (*PendingPartialWithdrawal) HashTreeRoot ¶
func (p *PendingPartialWithdrawal) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the PendingPartialWithdrawal object
func (*PendingPartialWithdrawal) HashTreeRootWith ¶
func (p *PendingPartialWithdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the PendingPartialWithdrawal object with a hasher
func (*PendingPartialWithdrawal) MarshalSSZ ¶
func (p *PendingPartialWithdrawal) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the PendingPartialWithdrawal object
func (*PendingPartialWithdrawal) MarshalSSZTo ¶
func (p *PendingPartialWithdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the PendingPartialWithdrawal object to a target array
func (*PendingPartialWithdrawal) SizeSSZ ¶
func (p *PendingPartialWithdrawal) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the PendingPartialWithdrawal object
func (*PendingPartialWithdrawal) UnmarshalSSZ ¶
func (p *PendingPartialWithdrawal) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the PendingPartialWithdrawal object
type ProposerSlashing ¶
type ProposerSlashing struct {
Header1 *SignedBeaconBlockHeader `json:"signed_header_1"`
Header2 *SignedBeaconBlockHeader `json:"signed_header_2"`
}
func (*ProposerSlashing) GetTree ¶
func (p *ProposerSlashing) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ProposerSlashing object
func (*ProposerSlashing) HashTreeRoot ¶
func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ProposerSlashing object
func (*ProposerSlashing) HashTreeRootWith ¶
func (p *ProposerSlashing) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ProposerSlashing object with a hasher
func (*ProposerSlashing) MarshalSSZ ¶
func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ProposerSlashing object
func (*ProposerSlashing) MarshalSSZTo ¶
func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ProposerSlashing object to a target array
func (*ProposerSlashing) SizeSSZ ¶
func (p *ProposerSlashing) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ProposerSlashing object
func (*ProposerSlashing) UnmarshalSSZ ¶
func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ProposerSlashing object
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct {
Message *BLSToExecutionChange `json:"message"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
func (*SignedBLSToExecutionChange) GetTree ¶
func (s *SignedBLSToExecutionChange) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) HashTreeRoot ¶
func (s *SignedBLSToExecutionChange) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) HashTreeRootWith ¶
func (s *SignedBLSToExecutionChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBLSToExecutionChange object with a hasher
func (*SignedBLSToExecutionChange) MarshalSSZ ¶
func (s *SignedBLSToExecutionChange) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) MarshalSSZTo ¶
func (s *SignedBLSToExecutionChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBLSToExecutionChange object to a target array
func (*SignedBLSToExecutionChange) SizeSSZ ¶
func (s *SignedBLSToExecutionChange) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBLSToExecutionChange object
func (*SignedBLSToExecutionChange) UnmarshalSSZ ¶
func (s *SignedBLSToExecutionChange) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBLSToExecutionChange object
type SignedBeaconBlockHeader ¶
type SignedBeaconBlockHeader struct {
Header *BeaconBlockHeader `json:"message"`
Signature []byte `json:"signature" ssz-size:"96"`
}
func (*SignedBeaconBlockHeader) GetTree ¶
func (s *SignedBeaconBlockHeader) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) HashTreeRoot ¶
func (s *SignedBeaconBlockHeader) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) HashTreeRootWith ¶
func (s *SignedBeaconBlockHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedBeaconBlockHeader object with a hasher
func (*SignedBeaconBlockHeader) MarshalSSZ ¶
func (s *SignedBeaconBlockHeader) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) MarshalSSZTo ¶
func (s *SignedBeaconBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedBeaconBlockHeader object to a target array
func (*SignedBeaconBlockHeader) SizeSSZ ¶
func (s *SignedBeaconBlockHeader) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlockHeader object
func (*SignedBeaconBlockHeader) UnmarshalSSZ ¶
func (s *SignedBeaconBlockHeader) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedBeaconBlockHeader object
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct {
Exit *VoluntaryExit `json:"message"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
func (*SignedVoluntaryExit) GetTree ¶
func (s *SignedVoluntaryExit) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedVoluntaryExit object
func (*SignedVoluntaryExit) HashTreeRoot ¶
func (s *SignedVoluntaryExit) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedVoluntaryExit object
func (*SignedVoluntaryExit) HashTreeRootWith ¶
func (s *SignedVoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedVoluntaryExit object with a hasher
func (*SignedVoluntaryExit) MarshalSSZ ¶
func (s *SignedVoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedVoluntaryExit object
func (*SignedVoluntaryExit) MarshalSSZTo ¶
func (s *SignedVoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedVoluntaryExit object to a target array
func (*SignedVoluntaryExit) SizeSSZ ¶
func (s *SignedVoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedVoluntaryExit object
func (*SignedVoluntaryExit) UnmarshalSSZ ¶
func (s *SignedVoluntaryExit) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedVoluntaryExit object
type SigningRoot ¶
type SigningRoot struct {
ObjectRoot []byte `json:"object_root" ssz-size:"32"`
Domain []byte `json:"domain" ssz-size:"32"`
}
BLS signing root with domain
func (*SigningRoot) GetTree ¶
func (s *SigningRoot) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SigningRoot object
func (*SigningRoot) HashTreeRoot ¶
func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SigningRoot object
func (*SigningRoot) HashTreeRootWith ¶
func (s *SigningRoot) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SigningRoot object with a hasher
func (*SigningRoot) MarshalSSZ ¶
func (s *SigningRoot) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SigningRoot object
func (*SigningRoot) MarshalSSZTo ¶
func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SigningRoot object to a target array
func (*SigningRoot) SizeSSZ ¶
func (s *SigningRoot) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SigningRoot object
func (*SigningRoot) UnmarshalSSZ ¶
func (s *SigningRoot) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SigningRoot object
type SyncAggregate ¶
type SyncAggregate struct {
SyncCommiteeBits []byte `json:"sync_committee_bits" ssz-size:"64"`
SyncCommiteeSignature [96]byte `json:"sync_committee_signature" ssz-size:"96"`
}
func (*SyncAggregate) GetTree ¶
func (s *SyncAggregate) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SyncAggregate object
func (*SyncAggregate) HashTreeRoot ¶
func (s *SyncAggregate) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SyncAggregate object
func (*SyncAggregate) HashTreeRootWith ¶
func (s *SyncAggregate) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SyncAggregate object with a hasher
func (*SyncAggregate) MarshalSSZ ¶
func (s *SyncAggregate) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SyncAggregate object
func (*SyncAggregate) MarshalSSZTo ¶
func (s *SyncAggregate) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SyncAggregate object to a target array
func (*SyncAggregate) SizeSSZ ¶
func (s *SyncAggregate) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SyncAggregate object
func (*SyncAggregate) UnmarshalSSZ ¶
func (s *SyncAggregate) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SyncAggregate object
type SyncCommittee ¶
type SyncCommittee struct {
PubKeys [][]byte `json:"pubkeys" ssz-size:"512,48"`
AggregatePubKey [48]byte `json:"aggregate_pubkey" ssz-size:"48"`
}
func (*SyncCommittee) GetTree ¶
func (s *SyncCommittee) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SyncCommittee object
func (*SyncCommittee) HashTreeRoot ¶
func (s *SyncCommittee) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SyncCommittee object
func (*SyncCommittee) HashTreeRootWith ¶
func (s *SyncCommittee) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SyncCommittee object with a hasher
func (*SyncCommittee) MarshalSSZ ¶
func (s *SyncCommittee) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SyncCommittee object
func (*SyncCommittee) MarshalSSZTo ¶
func (s *SyncCommittee) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SyncCommittee object to a target array
func (*SyncCommittee) SizeSSZ ¶
func (s *SyncCommittee) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SyncCommittee object
func (*SyncCommittee) UnmarshalSSZ ¶
func (s *SyncCommittee) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SyncCommittee object
type Validator ¶
type Validator struct {
Pubkey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
EffectiveBalance uint64 `json:"effective_balance"`
Slashed bool `json:"slashed"`
ActivationEligibilityEpoch uint64 `json:"activation_eligibility_epoch"`
ActivationEpoch uint64 `json:"activation_epoch"`
ExitEpoch uint64 `json:"exit_epoch"`
WithdrawableEpoch uint64 `json:"withdrawable_epoch"`
}
func (*Validator) HashTreeRoot ¶
HashTreeRoot ssz hashes the Validator object
func (*Validator) HashTreeRootWith ¶
func (v *Validator) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Validator object with a hasher
func (*Validator) MarshalSSZ ¶
MarshalSSZ ssz marshals the Validator object
func (*Validator) MarshalSSZTo ¶
MarshalSSZTo ssz marshals the Validator object to a target array
func (*Validator) UnmarshalSSZ ¶
UnmarshalSSZ ssz unmarshals the Validator object
type VoluntaryExit ¶
type VoluntaryExit struct {
Epoch uint64 `json:"epoch"`
ValidatorIndex uint64 `json:"validator_index"`
}
Voluntary exit transaction
func (*VoluntaryExit) GetTree ¶
func (v *VoluntaryExit) GetTree() (*ssz.Node, error)
GetTree ssz hashes the VoluntaryExit object
func (*VoluntaryExit) HashTreeRoot ¶
func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the VoluntaryExit object
func (*VoluntaryExit) HashTreeRootWith ¶
func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the VoluntaryExit object with a hasher
func (*VoluntaryExit) MarshalSSZ ¶
func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the VoluntaryExit object
func (*VoluntaryExit) MarshalSSZTo ¶
func (v *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the VoluntaryExit object to a target array
func (*VoluntaryExit) SizeSSZ ¶
func (v *VoluntaryExit) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the VoluntaryExit object
func (*VoluntaryExit) UnmarshalSSZ ¶
func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the VoluntaryExit object
type Withdrawal ¶
type Withdrawal struct {
Index uint64 `json:"index"`
ValidatorIndex uint64 `json:"validator_index"`
Address [20]byte `json:"address" ssz-size:"20"`
Amount uint64 `json:"amount"`
}
func (*Withdrawal) GetTree ¶
func (w *Withdrawal) GetTree() (*ssz.Node, error)
GetTree ssz hashes the Withdrawal object
func (*Withdrawal) HashTreeRoot ¶
func (w *Withdrawal) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the Withdrawal object
func (*Withdrawal) HashTreeRootWith ¶
func (w *Withdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the Withdrawal object with a hasher
func (*Withdrawal) MarshalSSZ ¶
func (w *Withdrawal) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the Withdrawal object
func (*Withdrawal) MarshalSSZTo ¶
func (w *Withdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the Withdrawal object to a target array
func (*Withdrawal) SizeSSZ ¶
func (w *Withdrawal) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the Withdrawal object
func (*Withdrawal) UnmarshalSSZ ¶
func (w *Withdrawal) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the Withdrawal object
type WithdrawalCredentialsChange ¶
type WithdrawalCredentialsChange struct {
ValidatorIndex uint64 `json:"validator_index"`
FromBLSPubkey [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}
Withdrawal creds change message
func (*WithdrawalCredentialsChange) GetTree ¶
func (w *WithdrawalCredentialsChange) GetTree() (*ssz.Node, error)
GetTree ssz hashes the WithdrawalCredentialsChange object
func (*WithdrawalCredentialsChange) HashTreeRoot ¶
func (w *WithdrawalCredentialsChange) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the WithdrawalCredentialsChange object
func (*WithdrawalCredentialsChange) HashTreeRootWith ¶
func (w *WithdrawalCredentialsChange) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the WithdrawalCredentialsChange object with a hasher
func (*WithdrawalCredentialsChange) MarshalSSZ ¶
func (w *WithdrawalCredentialsChange) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the WithdrawalCredentialsChange object
func (*WithdrawalCredentialsChange) MarshalSSZTo ¶
func (w *WithdrawalCredentialsChange) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the WithdrawalCredentialsChange object to a target array
func (*WithdrawalCredentialsChange) SizeSSZ ¶
func (w *WithdrawalCredentialsChange) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the WithdrawalCredentialsChange object
func (*WithdrawalCredentialsChange) UnmarshalSSZ ¶
func (w *WithdrawalCredentialsChange) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the WithdrawalCredentialsChange object