altair

package
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 88

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 57040b46b62848e02069c034c214adc004278f76d6ba7c873cfb03861727c625

Code generated by fastssz. DO NOT EDIT. Hash: ba9b356aff4a24dda390869ac57d7a5f468e6503c345bf05c56070c157ecc869

Code generated by fastssz. DO NOT EDIT. Hash: e149de274d02a184188fb51b9063f67736b3714c5286df884247048bede4bdc1

Code generated by fastssz. DO NOT EDIT. Hash: 9c968bb86bf1d41bd4f61d50c7b53c9cd70c7c12b4edd341fba927fa5288d410

Code generated by fastssz. DO NOT EDIT. Hash: e149de274d02a184188fb51b9063f67736b3714c5286df884247048bede4bdc1

Code generated by fastssz. DO NOT EDIT. Hash: d0baec90cef323eb3a15918e27a03e2658dcf0a761d5ff0a671eb5233999c29d

Code generated by fastssz. DO NOT EDIT. Hash: f17b226221728909ff45d6a1c791be2b940474119aa3f6d1c04316235e2eef18

Code generated by fastssz. DO NOT EDIT. Hash: 31e5bb021f4ea01fe6d4c761360a1360dbfa267396ce521a0acfb8044bd27926

Code generated by fastssz. DO NOT EDIT. Hash: 223c284bddd68dfd58b388be4adf0ef3f1f81c4df169977c1aa2e6d548af2f01

Code generated by fastssz. DO NOT EDIT. Hash: 29e1a28a877a613dfb7b84c72471b1e26d6f7f159bb6d1de6a7a3a2ef499aa7a

Code generated by fastssz. DO NOT EDIT. Hash: 90a04fb4e20205d0d4ffeebe2c09e9a6dde05636fc756e344d62021746b4b9d3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconBlock

type BeaconBlock struct {
	Slot          phase0.Slot
	ProposerIndex phase0.ValidatorIndex
	ParentRoot    phase0.Root `ssz-size:"32"`
	StateRoot     phase0.Root `ssz-size:"32"`
	Body          *BeaconBlockBody
}

BeaconBlock represents a beacon block.

func (*BeaconBlock) GetTree added in v0.13.0

func (b *BeaconBlock) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconBlock object

func (*BeaconBlock) HashTreeRoot

func (b *BeaconBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BeaconBlock object

func (*BeaconBlock) HashTreeRootWith

func (b *BeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconBlock object with a hasher

func (*BeaconBlock) MarshalJSON

func (b *BeaconBlock) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BeaconBlock) MarshalSSZ

func (b *BeaconBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BeaconBlock object

func (*BeaconBlock) MarshalSSZTo

func (b *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BeaconBlock object to a target array

func (*BeaconBlock) MarshalYAML

func (b *BeaconBlock) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlock) SizeSSZ

func (b *BeaconBlock) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BeaconBlock object

func (*BeaconBlock) String

func (b *BeaconBlock) String() string

String returns a string version of the structure.

func (*BeaconBlock) UnmarshalJSON

func (b *BeaconBlock) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconBlock) UnmarshalSSZ

func (b *BeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconBlock object

func (*BeaconBlock) UnmarshalYAML

func (b *BeaconBlock) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type BeaconBlockBody

type BeaconBlockBody struct {
	RANDAOReveal      phase0.BLSSignature `ssz-size:"96"`
	ETH1Data          *phase0.ETH1Data
	Graffiti          [32]byte                      `ssz-size:"32"`
	ProposerSlashings []*phase0.ProposerSlashing    `ssz-max:"16"`
	AttesterSlashings []*phase0.AttesterSlashing    `ssz-max:"2"`
	Attestations      []*phase0.Attestation         `ssz-max:"128"`
	Deposits          []*phase0.Deposit             `ssz-max:"16"`
	VoluntaryExits    []*phase0.SignedVoluntaryExit `ssz-max:"16"`
	SyncAggregate     *SyncAggregate
}

BeaconBlockBody represents the body of a beacon block.

func (*BeaconBlockBody) GetTree added in v0.13.0

func (b *BeaconBlockBody) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconBlockBody object

func (*BeaconBlockBody) HashTreeRoot

func (b *BeaconBlockBody) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BeaconBlockBody object

func (*BeaconBlockBody) HashTreeRootWith

func (b *BeaconBlockBody) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconBlockBody object with a hasher

func (*BeaconBlockBody) MarshalJSON

func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BeaconBlockBody) MarshalSSZ

func (b *BeaconBlockBody) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BeaconBlockBody object

func (*BeaconBlockBody) MarshalSSZTo

func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BeaconBlockBody object to a target array

func (*BeaconBlockBody) MarshalYAML

func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*BeaconBlockBody) SizeSSZ

func (b *BeaconBlockBody) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BeaconBlockBody object

func (*BeaconBlockBody) String

func (b *BeaconBlockBody) String() string

String returns a string version of the structure.

func (*BeaconBlockBody) UnmarshalJSON

func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconBlockBody) UnmarshalSSZ

func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconBlockBody object

func (*BeaconBlockBody) UnmarshalYAML

func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type BeaconState

type BeaconState struct {
	GenesisTime                 uint64
	GenesisValidatorsRoot       []byte `ssz-size:"32"`
	Slot                        uint64
	Fork                        *phase0.Fork
	LatestBlockHeader           *phase0.BeaconBlockHeader
	BlockRoots                  [][]byte `ssz-size:"8192,32"`
	StateRoots                  [][]byte `ssz-size:"8192,32"`
	HistoricalRoots             [][]byte `ssz-size:"?,32" ssz-max:"16777216"`
	ETH1Data                    *phase0.ETH1Data
	ETH1DataVotes               []*phase0.ETH1Data `ssz-max:"2048"`
	ETH1DepositIndex            uint64
	Validators                  []*phase0.Validator  `ssz-max:"1099511627776"`
	Balances                    []uint64             `ssz-max:"1099511627776"`
	RANDAOMixes                 [][]byte             `ssz-size:"65536,32"`
	Slashings                   []uint64             `ssz-size:"8192"`
	PreviousEpochParticipation  []ParticipationFlags `ssz-size:"1099511627776"`
	CurrentEpochParticipation   []ParticipationFlags `ssz-size:"1099511627776"`
	JustificationBits           bitfield.Bitvector4  `ssz-size:"1"`
	PreviousJustifiedCheckpoint *phase0.Checkpoint
	CurrentJustifiedCheckpoint  *phase0.Checkpoint
	FinalizedCheckpoint         *phase0.Checkpoint
	InactivityScores            []uint64 `ssz-size:"1099511627776"`
	CurrentSyncCommittee        *SyncCommittee
	NextSyncCommittee           *SyncCommittee
}

BeaconState represents a beacon state.

func (*BeaconState) GetTree added in v0.13.0

func (b *BeaconState) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconState object

func (*BeaconState) HashTreeRoot added in v0.13.0

func (b *BeaconState) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BeaconState object

func (*BeaconState) HashTreeRootWith added in v0.13.0

func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconState object with a hasher

func (*BeaconState) MarshalJSON

func (s *BeaconState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BeaconState) MarshalSSZ added in v0.13.0

func (b *BeaconState) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BeaconState object

func (*BeaconState) MarshalSSZTo added in v0.13.0

func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BeaconState object to a target array

func (*BeaconState) SizeSSZ added in v0.13.0

func (b *BeaconState) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BeaconState object

func (*BeaconState) String

func (s *BeaconState) String() string

String returns a string version of the structure.

func (*BeaconState) UnmarshalJSON

func (s *BeaconState) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler. nolint:gocyclo

func (*BeaconState) UnmarshalSSZ added in v0.13.0

func (b *BeaconState) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconState object

type ContributionAndProof

type ContributionAndProof struct {
	AggregatorIndex phase0.ValidatorIndex
	Contribution    *SyncCommitteeContribution
	SelectionProof  phase0.BLSSignature `ssz-size:"96"`
}

ContributionAndProof is the Ethereum 2 contribution and proof structure.

func (*ContributionAndProof) GetTree added in v0.13.0

func (c *ContributionAndProof) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ContributionAndProof object

func (*ContributionAndProof) HashTreeRoot

func (c *ContributionAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ContributionAndProof object

func (*ContributionAndProof) HashTreeRootWith

func (c *ContributionAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ContributionAndProof object with a hasher

func (*ContributionAndProof) MarshalJSON

func (a *ContributionAndProof) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*ContributionAndProof) MarshalSSZ

func (c *ContributionAndProof) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ContributionAndProof object

func (*ContributionAndProof) MarshalSSZTo

func (c *ContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ContributionAndProof object to a target array

func (*ContributionAndProof) MarshalYAML

func (a *ContributionAndProof) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*ContributionAndProof) SizeSSZ

func (c *ContributionAndProof) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the ContributionAndProof object

func (*ContributionAndProof) String

func (a *ContributionAndProof) String() string

String returns a string version of the structure.

func (*ContributionAndProof) UnmarshalJSON

func (a *ContributionAndProof) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*ContributionAndProof) UnmarshalSSZ

func (c *ContributionAndProof) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ContributionAndProof object

func (*ContributionAndProof) UnmarshalYAML

func (a *ContributionAndProof) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type ParticipationFlag

type ParticipationFlag int

ParticipationFlag is an individual particiation flag for a validator.

const (
	// TimelySourceFlagIndex is set when an attestation has a timely source value.
	TimelySourceFlagIndex ParticipationFlag = iota
	// TimelyTargetFlagIndex is set when an attestation has a timely target value.
	TimelyTargetFlagIndex
	// TimelyHeadFlagIndex is set when an attestation has a timely head value.
	TimelyHeadFlagIndex
)

type ParticipationFlags

type ParticipationFlags uint8

ParticipationFlags are validator participation flags in an epoch.

type SignedBeaconBlock

type SignedBeaconBlock struct {
	Message   *BeaconBlock
	Signature phase0.BLSSignature `ssz-size:"96"`
}

SignedBeaconBlock is a signed beacon block.

func (*SignedBeaconBlock) GetTree added in v0.13.0

func (s *SignedBeaconBlock) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SignedBeaconBlock object

func (*SignedBeaconBlock) HashTreeRoot

func (s *SignedBeaconBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedBeaconBlock object

func (*SignedBeaconBlock) HashTreeRootWith

func (s *SignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SignedBeaconBlock object with a hasher

func (*SignedBeaconBlock) MarshalJSON

func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*SignedBeaconBlock) MarshalSSZ

func (s *SignedBeaconBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedBeaconBlock object

func (*SignedBeaconBlock) MarshalSSZTo

func (s *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedBeaconBlock object to a target array

func (*SignedBeaconBlock) MarshalYAML

func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SignedBeaconBlock) SizeSSZ

func (s *SignedBeaconBlock) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedBeaconBlock object

func (*SignedBeaconBlock) String

func (s *SignedBeaconBlock) String() string

String returns a string version of the structure.

func (*SignedBeaconBlock) UnmarshalJSON

func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SignedBeaconBlock) UnmarshalSSZ

func (s *SignedBeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedBeaconBlock object

func (*SignedBeaconBlock) UnmarshalYAML

func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SignedContributionAndProof

type SignedContributionAndProof struct {
	Message   *ContributionAndProof
	Signature phase0.BLSSignature `ssz-size:"96"`
}

SignedContributionAndProof provides information about a signed contribution and proof.

func (*SignedContributionAndProof) GetTree added in v0.13.0

func (s *SignedContributionAndProof) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SignedContributionAndProof object

func (*SignedContributionAndProof) HashTreeRoot

func (s *SignedContributionAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedContributionAndProof object

func (*SignedContributionAndProof) HashTreeRootWith

func (s *SignedContributionAndProof) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SignedContributionAndProof object with a hasher

func (*SignedContributionAndProof) MarshalJSON

func (s *SignedContributionAndProof) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*SignedContributionAndProof) MarshalSSZ

func (s *SignedContributionAndProof) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedContributionAndProof object

func (*SignedContributionAndProof) MarshalSSZTo

func (s *SignedContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedContributionAndProof object to a target array

func (*SignedContributionAndProof) MarshalYAML

func (s *SignedContributionAndProof) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SignedContributionAndProof) SizeSSZ

func (s *SignedContributionAndProof) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedContributionAndProof object

func (*SignedContributionAndProof) String

func (s *SignedContributionAndProof) String() string

String returns a string version of the structure.

func (*SignedContributionAndProof) UnmarshalJSON

func (s *SignedContributionAndProof) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SignedContributionAndProof) UnmarshalSSZ

func (s *SignedContributionAndProof) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedContributionAndProof object

func (*SignedContributionAndProof) UnmarshalYAML

func (s *SignedContributionAndProof) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SyncAggregate

type SyncAggregate struct {
	SyncCommitteeBits      bitfield.Bitvector512 `ssz-size:"64"`
	SyncCommitteeSignature phase0.BLSSignature   `ssz-size:"96"`
}

SyncAggregate is the Ethereum 2 sync aggregate structure.

func (*SyncAggregate) GetTree added in v0.13.0

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) MarshalJSON

func (s *SyncAggregate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

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) MarshalYAML

func (s *SyncAggregate) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SyncAggregate) SizeSSZ

func (s *SyncAggregate) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SyncAggregate object

func (*SyncAggregate) String

func (s *SyncAggregate) String() string

String returns a string version of the structure.

func (*SyncAggregate) UnmarshalJSON

func (s *SyncAggregate) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SyncAggregate) UnmarshalSSZ

func (s *SyncAggregate) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SyncAggregate object

func (*SyncAggregate) UnmarshalYAML

func (s *SyncAggregate) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SyncAggregatorSelectionData

type SyncAggregatorSelectionData struct {
	Slot              phase0.Slot
	SubcommitteeIndex uint64
}

SyncAggregatorSelectionData is an internal struct for sync committee selection proofs.

func (*SyncAggregatorSelectionData) GetTree added in v0.13.0

func (s *SyncAggregatorSelectionData) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SyncAggregatorSelectionData object

func (*SyncAggregatorSelectionData) HashTreeRoot

func (s *SyncAggregatorSelectionData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SyncAggregatorSelectionData object

func (*SyncAggregatorSelectionData) HashTreeRootWith

func (s *SyncAggregatorSelectionData) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SyncAggregatorSelectionData object with a hasher

func (*SyncAggregatorSelectionData) MarshalSSZ

func (s *SyncAggregatorSelectionData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SyncAggregatorSelectionData object

func (*SyncAggregatorSelectionData) MarshalSSZTo

func (s *SyncAggregatorSelectionData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SyncAggregatorSelectionData object to a target array

func (*SyncAggregatorSelectionData) SizeSSZ

func (s *SyncAggregatorSelectionData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SyncAggregatorSelectionData object

func (*SyncAggregatorSelectionData) UnmarshalSSZ

func (s *SyncAggregatorSelectionData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SyncAggregatorSelectionData object

type SyncCommittee

type SyncCommittee struct {
	Pubkeys         []phase0.BLSPubKey `ssz-size:"512,48"`
	AggregatePubkey phase0.BLSPubKey   `ssz-size:"48"`
}

SyncCommittee is the Ethereum 2 sync committee structure.

func (*SyncCommittee) GetTree added in v0.13.0

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) MarshalJSON

func (s *SyncCommittee) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

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) MarshalYAML

func (s *SyncCommittee) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SyncCommittee) SizeSSZ

func (s *SyncCommittee) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SyncCommittee object

func (*SyncCommittee) String

func (s *SyncCommittee) String() string

String returns a string version of the structure.

func (*SyncCommittee) UnmarshalJSON

func (s *SyncCommittee) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SyncCommittee) UnmarshalSSZ

func (s *SyncCommittee) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SyncCommittee object

func (*SyncCommittee) UnmarshalYAML

func (s *SyncCommittee) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SyncCommitteeContribution

type SyncCommitteeContribution struct {
	Slot              phase0.Slot
	BeaconBlockRoot   phase0.Root `ssz-size:"32"`
	SubcommitteeIndex uint64
	// AggregationBits size is SYNC_COMMITTEE_SIZE // SYNC_COMMITTEE_SUBNET_COUNT
	AggregationBits bitfield.Bitvector128 `ssz-size:"16"`
	Signature       phase0.BLSSignature   `ssz-size:"96"`
}

SyncCommitteeContribution is the Ethereum 2 sync committee contribution structure.

func (*SyncCommitteeContribution) GetTree added in v0.13.0

func (s *SyncCommitteeContribution) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SyncCommitteeContribution object

func (*SyncCommitteeContribution) HashTreeRoot

func (s *SyncCommitteeContribution) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SyncCommitteeContribution object

func (*SyncCommitteeContribution) HashTreeRootWith

func (s *SyncCommitteeContribution) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SyncCommitteeContribution object with a hasher

func (*SyncCommitteeContribution) MarshalJSON

func (s *SyncCommitteeContribution) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*SyncCommitteeContribution) MarshalSSZ

func (s *SyncCommitteeContribution) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SyncCommitteeContribution object

func (*SyncCommitteeContribution) MarshalSSZTo

func (s *SyncCommitteeContribution) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SyncCommitteeContribution object to a target array

func (*SyncCommitteeContribution) MarshalYAML

func (s *SyncCommitteeContribution) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SyncCommitteeContribution) SizeSSZ

func (s *SyncCommitteeContribution) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SyncCommitteeContribution object

func (*SyncCommitteeContribution) String

func (s *SyncCommitteeContribution) String() string

String returns a string version of the structure.

func (*SyncCommitteeContribution) UnmarshalJSON

func (s *SyncCommitteeContribution) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SyncCommitteeContribution) UnmarshalSSZ

func (s *SyncCommitteeContribution) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SyncCommitteeContribution object

func (*SyncCommitteeContribution) UnmarshalYAML

func (s *SyncCommitteeContribution) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type SyncCommitteeMessage

type SyncCommitteeMessage struct {
	Slot            phase0.Slot
	BeaconBlockRoot phase0.Root `ssz-size:"32"`
	ValidatorIndex  phase0.ValidatorIndex
	Signature       phase0.BLSSignature `ssz-size:"96"`
}

SyncCommitteeMessage is the Ethereum 2 sync committee message structure.

func (*SyncCommitteeMessage) GetTree added in v0.13.0

func (s *SyncCommitteeMessage) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SyncCommitteeMessage object

func (*SyncCommitteeMessage) HashTreeRoot

func (s *SyncCommitteeMessage) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SyncCommitteeMessage object

func (*SyncCommitteeMessage) HashTreeRootWith

func (s *SyncCommitteeMessage) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SyncCommitteeMessage object with a hasher

func (*SyncCommitteeMessage) MarshalJSON

func (s *SyncCommitteeMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*SyncCommitteeMessage) MarshalSSZ

func (s *SyncCommitteeMessage) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SyncCommitteeMessage object

func (*SyncCommitteeMessage) MarshalSSZTo

func (s *SyncCommitteeMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SyncCommitteeMessage object to a target array

func (*SyncCommitteeMessage) MarshalYAML

func (s *SyncCommitteeMessage) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*SyncCommitteeMessage) SizeSSZ

func (s *SyncCommitteeMessage) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SyncCommitteeMessage object

func (*SyncCommitteeMessage) String

func (s *SyncCommitteeMessage) String() string

String returns a string version of the structure.

func (*SyncCommitteeMessage) UnmarshalJSON

func (s *SyncCommitteeMessage) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*SyncCommitteeMessage) UnmarshalSSZ

func (s *SyncCommitteeMessage) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SyncCommitteeMessage object

func (*SyncCommitteeMessage) UnmarshalYAML

func (s *SyncCommitteeMessage) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL