altair

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 90

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 258999c2cbc8a798c1cf8c683702c392ee49a85978eb9865fca6102c1c8ded8d

Code generated by fastssz. DO NOT EDIT. Hash: 74ad3e3239341961653f6347ba017ef6efcbbee7c241e1e76cd8fa8f9186d376

Code generated by fastssz. DO NOT EDIT. Hash: 0e91fe602715e75e4eccfc4d0ae93cb7bd7c853cd1b803ab338e9851351f2d3a

Code generated by fastssz. DO NOT EDIT. Hash: 00c3ecc9ba2fba242b66ec559fda8c6fe9d5f5c475d8af447a071f2344ee4110

Code generated by fastssz. DO NOT EDIT. Hash: 2619cd012f5e0633f4e0b5a34bb4c6947bcd22bcec7d55ebf8c40ea3ac7497ca

Code generated by fastssz. DO NOT EDIT. Hash: 00c3ecc9ba2fba242b66ec559fda8c6fe9d5f5c475d8af447a071f2344ee4110

Code generated by fastssz. DO NOT EDIT. Hash: 19e033504fb2dbe5852c441ef24317ee063f395d14807fc11f092b814d21813b

Code generated by fastssz. DO NOT EDIT. Hash: 649a003dbf727429461fbc6316a0a0cca130b264ccb563ee1f3607a4dae4fc6c

Code generated by fastssz. DO NOT EDIT. Hash: 4144383ace4b79650d4be9e28ee32517912c0e1a32aae5fd5c1c9b351c559c6d

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

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

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

HashTreeRoot ssz hashes the BeaconBlock object

func (*BeaconBlock) HashTreeRootWith

func (b *BeaconBlock) HashTreeRootWith(hh *ssz.Hasher) (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          []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) HashTreeRoot

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

HashTreeRoot ssz hashes the BeaconBlockBody object

func (*BeaconBlockBody) HashTreeRootWith

func (b *BeaconBlockBody) HashTreeRootWith(hh *ssz.Hasher) (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) MarshalJSON

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

MarshalJSON implements json.Marshaler.

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

type ContributionAndProof

type ContributionAndProof struct {
	AggregatorIndex phase0.ValidatorIndex
	Contribution    *SyncCommitteeContribution
	SelectionProof  phase0.BLSSignature
}

ContributionAndProof is the Ethereum 2 contribution and proof structure.

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.Hasher) (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) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedBeaconBlock object

func (*SignedBeaconBlock) HashTreeRootWith

func (s *SignedBeaconBlock) HashTreeRootWith(hh *ssz.Hasher) (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) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedContributionAndProof object

func (*SignedContributionAndProof) HashTreeRootWith

func (s *SignedContributionAndProof) HashTreeRootWith(hh *ssz.Hasher) (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
}

SyncAggregate is the Ethereum 2 sync aggregate structure.

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.Hasher) (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) HashTreeRoot

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

HashTreeRoot ssz hashes the SyncAggregatorSelectionData object

func (*SyncAggregatorSelectionData) HashTreeRootWith

func (s *SyncAggregatorSelectionData) HashTreeRootWith(hh *ssz.Hasher) (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"`
	AggregatePubkey phase0.BLSPubKey
}

SyncCommittee is the Ethereum 2 sync committee structure.

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.Hasher) (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
	SubcommitteeIndex uint64
	// AggregationBits size is SYNC_COMMITTEE_SIZE // SYNC_COMMITTEE_SUBNET_COUNT
	AggregationBits bitfield.Bitvector128 `ssz-size:"16"`
	Signature       phase0.BLSSignature
}

SyncCommitteeContribution is the Ethereum 2 sync committee contribution structure.

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.Hasher) (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
	ValidatorIndex  phase0.ValidatorIndex
	Signature       phase0.BLSSignature
}

SyncCommitteeMessage is the Ethereum 2 sync committee message structure.

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.Hasher) (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