Versions in this module Expand all Collapse all v0 v0.1.1 May 12, 2022 Changes in this version + type AggregateAndProof struct + Aggregate *Attestation + Index uint64 + SelectionProof []byte + func (a *AggregateAndProof) HashTreeRoot() ([32]byte, error) + func (a *AggregateAndProof) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (a *AggregateAndProof) MarshalSSZ() ([]byte, error) + func (a *AggregateAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (a *AggregateAndProof) SizeSSZ() (size int) + func (a *AggregateAndProof) UnmarshalSSZ(buf []byte) error + type Attestation struct + AggregationBits []byte + Data *AttestationData + Signature []byte + func (a *Attestation) HashTreeRoot() ([32]byte, error) + func (a *Attestation) HashTreeRootWith(hh *ssz.Hasher) (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 struct + BeaconBlockHash Hash + Index uint64 + Slot Slot + Source *Checkpoint + Target *Checkpoint + func (a *AttestationData) HashTreeRoot() ([32]byte, error) + func (a *AttestationData) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Attestation1 *IndexedAttestation + Attestation2 *IndexedAttestation + func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error) + func (a *AttesterSlashing) HashTreeRootWith(hh *ssz.Hasher) (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 BeaconBlock struct + Body *BeaconBlockBody + ParentRoot []byte + ProposerIndex uint64 + Slot uint64 + StateRoot []byte + func (b *BeaconBlock) HashTreeRoot() ([32]byte, error) + func (b *BeaconBlock) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (b *BeaconBlock) MarshalSSZ() ([]byte, error) + func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (b *BeaconBlock) SizeSSZ() (size int) + func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error + type BeaconBlockBody struct + Attestations []*Attestation + AttesterSlashings []*AttesterSlashing + Deposits []*Deposit + Eth1Data *Eth1Data + Graffiti [32]byte + ProposerSlashings []*ProposerSlashing + RandaoReveal []byte + VoluntaryExits []*SignedVoluntaryExit + func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error) + func (b *BeaconBlockBody) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error) + func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (b *BeaconBlockBody) SizeSSZ() (size int) + func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error + type BeaconBlockHeader struct + BodyRoot []byte + ParentRoot []byte + ProposerIndex uint64 + Slot uint64 + StateRoot []byte + func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error) + func (b *BeaconBlockHeader) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Epoch uint64 + Root [32]byte + func (c *Checkpoint) HashTreeRoot() ([32]byte, error) + func (c *Checkpoint) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Data *DepositData + Proof [][]byte + func (d *Deposit) HashTreeRoot() ([32]byte, error) + func (d *Deposit) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Amount uint64 + Pubkey []byte + Root [32]byte + Signature []byte + WithdrawalCredentials []byte + func (d *DepositData) HashTreeRoot() ([32]byte, error) + func (d *DepositData) HashTreeRootWith(hh *ssz.Hasher) (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 DepositMessage struct + Amount uint64 + Pubkey []byte + WithdrawalCredentials []byte + func (d *DepositMessage) HashTreeRoot() ([32]byte, error) + func (d *DepositMessage) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (d *DepositMessage) MarshalSSZ() ([]byte, error) + func (d *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (d *DepositMessage) SizeSSZ() (size int) + func (d *DepositMessage) UnmarshalSSZ(buf []byte) error + type Domain [4]byte + func (d *Domain) UnmarshalYAML(unmarshal func(interface{}) error) error + type Eth1Data struct + BlockHash []byte + DepositCount uint64 + DepositRoot []byte + func (e *Eth1Data) HashTreeRoot() ([32]byte, error) + func (e *Eth1Data) HashTreeRootWith(hh *ssz.Hasher) (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 Fork struct + CurrentVersion []byte + Epoch uint64 + PreviousVersion []byte + func (f *Fork) HashTreeRoot() ([32]byte, error) + func (f *Fork) HashTreeRootWith(hh *ssz.Hasher) (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 ForkData struct + CurrentVersion []byte + GenesisValidatorsRoot []byte + func (f *ForkData) HashTreeRoot() ([32]byte, error) + func (f *ForkData) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (f *ForkData) MarshalSSZ() ([]byte, error) + func (f *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (f *ForkData) SizeSSZ() (size int) + func (f *ForkData) UnmarshalSSZ(buf []byte) error + type Hash [32]byte + type HistoricalBatch struct + BlockRoots [64][32]byte + StateRoots [][]byte + func (h *HistoricalBatch) HashTreeRoot() ([32]byte, error) + func (h *HistoricalBatch) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (h *HistoricalBatch) MarshalSSZ() ([]byte, error) + func (h *HistoricalBatch) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (h *HistoricalBatch) SizeSSZ() (size int) + func (h *HistoricalBatch) UnmarshalSSZ(buf []byte) error + type IndexedAttestation struct + AttestationIndices []uint64 + Data *AttestationData + Signature []byte + func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error) + func (i *IndexedAttestation) HashTreeRootWith(hh *ssz.Hasher) (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 PendingAttestation struct + AggregationBits []byte + Data *AttestationData + InclusionDelay uint64 + ProposerIndex uint64 + func (p *PendingAttestation) HashTreeRoot() ([32]byte, error) + func (p *PendingAttestation) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (p *PendingAttestation) MarshalSSZ() ([]byte, error) + func (p *PendingAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (p *PendingAttestation) SizeSSZ() (size int) + func (p *PendingAttestation) UnmarshalSSZ(buf []byte) error + type ProposerSlashing struct + Header1 *SignedBeaconBlockHeader + Header2 *SignedBeaconBlockHeader + func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error) + func (p *ProposerSlashing) HashTreeRootWith(hh *ssz.Hasher) (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 SignedBeaconBlock struct + Block *BeaconBlock + Signature []byte + func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error) + func (s *SignedBeaconBlock) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error) + func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (s *SignedBeaconBlock) SizeSSZ() (size int) + func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error + type SignedBeaconBlockHeader struct + Header *BeaconBlockHeader + Signature []byte + func (s *SignedBeaconBlockHeader) HashTreeRoot() ([32]byte, error) + func (s *SignedBeaconBlockHeader) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Exit *VoluntaryExit + Signature []byte + func (s *SignedVoluntaryExit) HashTreeRoot() ([32]byte, error) + func (s *SignedVoluntaryExit) HashTreeRootWith(hh *ssz.Hasher) (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 SigningData struct + Domain []byte + ObjectRoot []byte + func (s *SigningData) HashTreeRoot() ([32]byte, error) + func (s *SigningData) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (s *SigningData) MarshalSSZ() ([]byte, error) + func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (s *SigningData) SizeSSZ() (size int) + func (s *SigningData) UnmarshalSSZ(buf []byte) error + type SigningRoot struct + Domain []byte + ObjectRoot []byte + func (s *SigningRoot) HashTreeRoot() ([32]byte, error) + func (s *SigningRoot) HashTreeRootWith(hh *ssz.Hasher) (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 Slot uint64 + type Transfer struct + Amount uint64 + Fee uint64 + Pubkey []byte + Recipient uint64 + Sender uint64 + Signature []byte + Slot uint64 + func (t *Transfer) HashTreeRoot() ([32]byte, error) + func (t *Transfer) HashTreeRootWith(hh *ssz.Hasher) (err error) + func (t *Transfer) MarshalSSZ() ([]byte, error) + func (t *Transfer) MarshalSSZTo(buf []byte) (dst []byte, err error) + func (t *Transfer) SizeSSZ() (size int) + func (t *Transfer) UnmarshalSSZ(buf []byte) error + type Validator struct + ActivationEligibilityEpoch uint64 + ActivationEpoch uint64 + EffectiveBalance uint64 + ExitEpoch uint64 + Pubkey []byte + Slashed bool + WithdrawableEpoch uint64 + WithdrawalCredentials []byte + func (v *Validator) HashTreeRoot() ([32]byte, error) + func (v *Validator) HashTreeRootWith(hh *ssz.Hasher) (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 struct + Epoch uint64 + ValidatorIndex uint64 + func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error) + func (v *VoluntaryExit) HashTreeRootWith(hh *ssz.Hasher) (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