Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: e92243d8afea8782f0d6de07679ac98983f2bb9ec26350d38141263160b581d3 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 9bd73b3d484917fdd73d4c7cd81228704909d47579e6b142f98a73be7993f350 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: a28c3fb685f753e6e7253bfeeadac8e81281443f52be4f8a66fe952e0c3bd3d6 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 9e20fd3405985d94b43bfada89f02e74162f1d896bbb3142b315aec4585c8810 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b187be9d352deb7b93ef8a5f84874c543abc8e6eccaa01f5a275d1bc5864be7a Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: e81d6e149565d15b3fb73e08ba37a6b55693f3766f570ab46ea8ae5243fc7d1b Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 8d3a32a80cc3a4a203b7dba43d7faa314dcbfcbbf2cc6cabfcd52bb3eaece8bb Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5d2d4190735080d474c14b421a0a479a72704852a84190e0312ebec1429dd65f Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: fcbf754f30a741c2b092f93b9a5917aaabbcc4602a5dbb7340a4c461e57d9d80 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 785437b253ba8d6a038e95fbcabdd6e9bd68cbe08e8276f7be0fe91cab40b17d Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 06b0f060d7d1555e470df3f6d738509ec737ecfdc1d3bac308173e8fc0b2dad8 Version: v1.3.1 (https://github.com/pk910/dynamic-ssz)
Index ¶
- type BeaconBlock
- func (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlock) MarshalJSON() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlock) MarshalYAML() ([]byte, error)
- func (t *BeaconBlock) SizeSSZ() (size int)
- func (b *BeaconBlock) String() string
- func (b *BeaconBlock) UnmarshalJSON(input []byte) error
- func (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlock) UnmarshalYAML(input []byte) error
- type BeaconBlockBody
- func (t *BeaconBlockBody) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZ() ([]byte, error)
- func (t *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
- func (t *BeaconBlockBody) SizeSSZ() (size int)
- func (b *BeaconBlockBody) String() string
- func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error
- func (t *BeaconBlockBody) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
- type BeaconState
- func (t *BeaconState) HashTreeRoot() (root [32]byte, err error)
- func (t *BeaconState) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *BeaconState) MarshalJSON() ([]byte, error)
- func (t *BeaconState) MarshalSSZ() ([]byte, error)
- func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *BeaconState) MarshalYAML() ([]byte, error)
- func (t *BeaconState) SizeSSZ() (size int)
- func (s *BeaconState) String() string
- func (s *BeaconState) UnmarshalJSON(input []byte) error
- func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
- func (s *BeaconState) UnmarshalYAML(input []byte) error
- type ContributionAndProof
- func (t *ContributionAndProof) HashTreeRoot() (root [32]byte, err error)
- func (t *ContributionAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
- func (a *ContributionAndProof) MarshalJSON() ([]byte, error)
- func (t *ContributionAndProof) MarshalSSZ() ([]byte, error)
- func (t *ContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (a *ContributionAndProof) MarshalYAML() ([]byte, error)
- func (t *ContributionAndProof) SizeSSZ() (size int)
- func (a *ContributionAndProof) String() string
- func (a *ContributionAndProof) UnmarshalJSON(input []byte) error
- func (t *ContributionAndProof) UnmarshalSSZ(buf []byte) (err error)
- func (a *ContributionAndProof) UnmarshalYAML(input []byte) error
- type ParticipationFlag
- type ParticipationFlags
- type SignedBeaconBlock
- func (t *SignedBeaconBlock) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (t *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (t *SignedBeaconBlock) SizeSSZ() (size int)
- func (s *SignedBeaconBlock) String() string
- func (s *SignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (t *SignedBeaconBlock) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBeaconBlock) UnmarshalYAML(input []byte) error
- type SignedContributionAndProof
- func (t *SignedContributionAndProof) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedContributionAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedContributionAndProof) MarshalJSON() ([]byte, error)
- func (t *SignedContributionAndProof) MarshalSSZ() ([]byte, error)
- func (t *SignedContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedContributionAndProof) MarshalYAML() ([]byte, error)
- func (t *SignedContributionAndProof) SizeSSZ() (size int)
- func (s *SignedContributionAndProof) String() string
- func (s *SignedContributionAndProof) UnmarshalJSON(input []byte) error
- func (t *SignedContributionAndProof) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedContributionAndProof) UnmarshalYAML(input []byte) error
- type SyncAggregate
- func (t *SyncAggregate) HashTreeRoot() (root [32]byte, err error)
- func (t *SyncAggregate) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SyncAggregate) MarshalJSON() ([]byte, error)
- func (t *SyncAggregate) MarshalSSZ() ([]byte, error)
- func (t *SyncAggregate) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncAggregate) MarshalYAML() ([]byte, error)
- func (t *SyncAggregate) SizeSSZ() (size int)
- func (s *SyncAggregate) String() string
- func (s *SyncAggregate) UnmarshalJSON(input []byte) error
- func (t *SyncAggregate) UnmarshalSSZ(buf []byte) (err error)
- func (s *SyncAggregate) UnmarshalYAML(input []byte) error
- type SyncAggregatorSelectionData
- func (t *SyncAggregatorSelectionData) HashTreeRoot() (root [32]byte, err error)
- func (t *SyncAggregatorSelectionData) HashTreeRootWith(hh sszutils.HashWalker) error
- func (t *SyncAggregatorSelectionData) MarshalSSZ() ([]byte, error)
- func (t *SyncAggregatorSelectionData) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (t *SyncAggregatorSelectionData) SizeSSZ() (size int)
- func (t *SyncAggregatorSelectionData) UnmarshalSSZ(buf []byte) (err error)
- type SyncCommittee
- func (t *SyncCommittee) HashTreeRoot() (root [32]byte, err error)
- func (t *SyncCommittee) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SyncCommittee) MarshalJSON() ([]byte, error)
- func (t *SyncCommittee) MarshalSSZ() ([]byte, error)
- func (t *SyncCommittee) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncCommittee) MarshalYAML() ([]byte, error)
- func (t *SyncCommittee) SizeSSZ() (size int)
- func (s *SyncCommittee) String() string
- func (s *SyncCommittee) UnmarshalJSON(input []byte) error
- func (t *SyncCommittee) UnmarshalSSZ(buf []byte) (err error)
- func (s *SyncCommittee) UnmarshalYAML(input []byte) error
- type SyncCommitteeContribution
- func (t *SyncCommitteeContribution) HashTreeRoot() (root [32]byte, err error)
- func (t *SyncCommitteeContribution) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SyncCommitteeContribution) MarshalJSON() ([]byte, error)
- func (t *SyncCommitteeContribution) MarshalSSZ() ([]byte, error)
- func (t *SyncCommitteeContribution) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncCommitteeContribution) MarshalYAML() ([]byte, error)
- func (t *SyncCommitteeContribution) SizeSSZ() (size int)
- func (s *SyncCommitteeContribution) String() string
- func (s *SyncCommitteeContribution) UnmarshalJSON(input []byte) error
- func (t *SyncCommitteeContribution) UnmarshalSSZ(buf []byte) (err error)
- func (s *SyncCommitteeContribution) UnmarshalYAML(input []byte) error
- type SyncCommitteeMessage
- func (t *SyncCommitteeMessage) HashTreeRoot() (root [32]byte, err error)
- func (t *SyncCommitteeMessage) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SyncCommitteeMessage) MarshalJSON() ([]byte, error)
- func (t *SyncCommitteeMessage) MarshalSSZ() ([]byte, error)
- func (t *SyncCommitteeMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SyncCommitteeMessage) MarshalYAML() ([]byte, error)
- func (t *SyncCommitteeMessage) SizeSSZ() (size int)
- func (s *SyncCommitteeMessage) String() string
- func (s *SyncCommitteeMessage) UnmarshalJSON(input []byte) error
- func (t *SyncCommitteeMessage) UnmarshalSSZ(buf []byte) (err error)
- func (s *SyncCommitteeMessage) UnmarshalYAML(input []byte) error
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 (t *BeaconBlock) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlock.
func (*BeaconBlock) HashTreeRootWith ¶
func (t *BeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlock using the given hash walker.
func (*BeaconBlock) MarshalJSON ¶
func (b *BeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlock) MarshalSSZ ¶
func (t *BeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlock to SSZ-encoded bytes.
func (*BeaconBlock) MarshalSSZTo ¶
func (t *BeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlock to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlock) MarshalYAML ¶
func (b *BeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlock) SizeSSZ ¶
func (t *BeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlock.
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 (t *BeaconBlock) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlock from SSZ-encoded bytes.
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 `dynssz-max:"MAX_PROPOSER_SLASHINGS" ssz-max:"16"`
AttesterSlashings []*phase0.AttesterSlashing `dynssz-max:"MAX_ATTESTER_SLASHINGS" ssz-max:"2"`
Attestations []*phase0.Attestation `dynssz-max:"MAX_ATTESTATIONS" ssz-max:"128"`
Deposits []*phase0.Deposit `dynssz-max:"MAX_DEPOSITS" ssz-max:"16"`
VoluntaryExits []*phase0.SignedVoluntaryExit `dynssz-max:"MAX_VOLUNTARY_EXITS" ssz-max:"16"`
SyncAggregate *SyncAggregate
}
BeaconBlockBody represents the body of a beacon block.
func (*BeaconBlockBody) HashTreeRoot ¶
func (t *BeaconBlockBody) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconBlockBody.
func (*BeaconBlockBody) HashTreeRootWith ¶
func (t *BeaconBlockBody) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconBlockBody using the given hash walker.
func (*BeaconBlockBody) MarshalJSON ¶
func (b *BeaconBlockBody) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconBlockBody) MarshalSSZ ¶
func (t *BeaconBlockBody) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconBlockBody to SSZ-encoded bytes.
func (*BeaconBlockBody) MarshalSSZTo ¶
func (t *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconBlockBody to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconBlockBody) MarshalYAML ¶
func (b *BeaconBlockBody) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconBlockBody) SizeSSZ ¶
func (t *BeaconBlockBody) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconBlockBody.
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 (t *BeaconBlockBody) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconBlockBody from SSZ-encoded bytes.
func (*BeaconBlockBody) UnmarshalYAML ¶
func (b *BeaconBlockBody) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BeaconState ¶
type BeaconState struct {
GenesisTime uint64
GenesisValidatorsRoot phase0.Root `ssz-size:"32"`
Slot phase0.Slot
Fork *phase0.Fork
LatestBlockHeader *phase0.BeaconBlockHeader
BlockRoots []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
StateRoots []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
HistoricalRoots []phase0.Root `dynssz-max:"HISTORICAL_ROOTS_LIMIT" ssz-max:"16777216" ssz-size:"?,32"`
ETH1Data *phase0.ETH1Data
ETH1DataVotes []*phase0.ETH1Data `dynssz-max:"EPOCHS_PER_ETH1_VOTING_PERIOD*SLOTS_PER_EPOCH" ssz-max:"2048"`
ETH1DepositIndex uint64
Validators []*phase0.Validator `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
Balances []phase0.Gwei `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
RANDAOMixes []phase0.Root `dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
Slashings []phase0.Gwei `dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR" ssz-size:"8192"`
PreviousEpochParticipation []ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
CurrentEpochParticipation []ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
JustificationBits bitfield.Bitvector4 `ssz-size:"1"`
PreviousJustifiedCheckpoint *phase0.Checkpoint
CurrentJustifiedCheckpoint *phase0.Checkpoint
FinalizedCheckpoint *phase0.Checkpoint
InactivityScores []uint64 `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
CurrentSyncCommittee *SyncCommittee
NextSyncCommittee *SyncCommittee
}
BeaconState represents a beacon state.
func (*BeaconState) HashTreeRoot ¶
func (t *BeaconState) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BeaconState.
func (*BeaconState) HashTreeRootWith ¶
func (t *BeaconState) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BeaconState using the given hash walker.
func (*BeaconState) MarshalJSON ¶
func (s *BeaconState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BeaconState) MarshalSSZ ¶
func (t *BeaconState) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BeaconState to SSZ-encoded bytes.
func (*BeaconState) MarshalSSZTo ¶
func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BeaconState to SSZ-encoded bytes, appending to the provided buffer.
func (*BeaconState) MarshalYAML ¶
func (s *BeaconState) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconState) SizeSSZ ¶
func (t *BeaconState) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BeaconState.
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.
func (*BeaconState) UnmarshalSSZ ¶
func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BeaconState from SSZ-encoded bytes.
func (*BeaconState) UnmarshalYAML ¶
func (s *BeaconState) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
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) HashTreeRoot ¶
func (t *ContributionAndProof) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *ContributionAndProof.
func (*ContributionAndProof) HashTreeRootWith ¶
func (t *ContributionAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *ContributionAndProof using the given hash walker.
func (*ContributionAndProof) MarshalJSON ¶
func (a *ContributionAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ContributionAndProof) MarshalSSZ ¶
func (t *ContributionAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *ContributionAndProof to SSZ-encoded bytes.
func (*ContributionAndProof) MarshalSSZTo ¶
func (t *ContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *ContributionAndProof to SSZ-encoded bytes, appending to the provided buffer.
func (*ContributionAndProof) MarshalYAML ¶
func (a *ContributionAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ContributionAndProof) SizeSSZ ¶
func (t *ContributionAndProof) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *ContributionAndProof.
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 (t *ContributionAndProof) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *ContributionAndProof from SSZ-encoded bytes.
func (*ContributionAndProof) UnmarshalYAML ¶
func (a *ContributionAndProof) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ParticipationFlag ¶
type ParticipationFlag int
ParticipationFlag is an individual participation 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.
func (ParticipationFlags) MarshalJSON ¶
func (p ParticipationFlags) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ParticipationFlags) UnmarshalJSON ¶
func (p *ParticipationFlags) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SignedBeaconBlock ¶
type SignedBeaconBlock struct {
Message *BeaconBlock
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBeaconBlock is a signed beacon block.
func (*SignedBeaconBlock) HashTreeRoot ¶
func (t *SignedBeaconBlock) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedBeaconBlock.
func (*SignedBeaconBlock) HashTreeRootWith ¶
func (t *SignedBeaconBlock) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedBeaconBlock using the given hash walker.
func (*SignedBeaconBlock) MarshalJSON ¶
func (s *SignedBeaconBlock) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBeaconBlock) MarshalSSZ ¶
func (t *SignedBeaconBlock) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedBeaconBlock to SSZ-encoded bytes.
func (*SignedBeaconBlock) MarshalSSZTo ¶
func (t *SignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedBeaconBlock to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedBeaconBlock) MarshalYAML ¶
func (s *SignedBeaconBlock) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBeaconBlock) SizeSSZ ¶
func (t *SignedBeaconBlock) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedBeaconBlock.
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 (t *SignedBeaconBlock) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedBeaconBlock from SSZ-encoded bytes.
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 (t *SignedContributionAndProof) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedContributionAndProof.
func (*SignedContributionAndProof) HashTreeRootWith ¶
func (t *SignedContributionAndProof) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedContributionAndProof using the given hash walker.
func (*SignedContributionAndProof) MarshalJSON ¶
func (s *SignedContributionAndProof) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedContributionAndProof) MarshalSSZ ¶
func (t *SignedContributionAndProof) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedContributionAndProof to SSZ-encoded bytes.
func (*SignedContributionAndProof) MarshalSSZTo ¶
func (t *SignedContributionAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedContributionAndProof to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedContributionAndProof) MarshalYAML ¶
func (s *SignedContributionAndProof) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedContributionAndProof) SizeSSZ ¶
func (t *SignedContributionAndProof) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedContributionAndProof.
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 (t *SignedContributionAndProof) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedContributionAndProof from SSZ-encoded bytes.
func (*SignedContributionAndProof) UnmarshalYAML ¶
func (s *SignedContributionAndProof) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SyncAggregate ¶
type SyncAggregate struct {
SyncCommitteeBits bitfield.Bitvector512 `dynssz-size:"SYNC_COMMITTEE_SIZE/8" ssz-size:"64"`
SyncCommitteeSignature phase0.BLSSignature `ssz-size:"96"`
}
SyncAggregate is the Ethereum 2 sync aggregate structure.
func (*SyncAggregate) HashTreeRoot ¶
func (t *SyncAggregate) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SyncAggregate.
func (*SyncAggregate) HashTreeRootWith ¶
func (t *SyncAggregate) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SyncAggregate using the given hash walker.
func (*SyncAggregate) MarshalJSON ¶
func (s *SyncAggregate) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SyncAggregate) MarshalSSZ ¶
func (t *SyncAggregate) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SyncAggregate to SSZ-encoded bytes.
func (*SyncAggregate) MarshalSSZTo ¶
func (t *SyncAggregate) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SyncAggregate to SSZ-encoded bytes, appending to the provided buffer.
func (*SyncAggregate) MarshalYAML ¶
func (s *SyncAggregate) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SyncAggregate) SizeSSZ ¶
func (t *SyncAggregate) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SyncAggregate.
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 (t *SyncAggregate) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SyncAggregate from SSZ-encoded bytes.
func (*SyncAggregate) UnmarshalYAML ¶
func (s *SyncAggregate) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SyncAggregatorSelectionData ¶
SyncAggregatorSelectionData is an internal struct for sync committee selection proofs.
func (*SyncAggregatorSelectionData) HashTreeRoot ¶
func (t *SyncAggregatorSelectionData) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SyncAggregatorSelectionData.
func (*SyncAggregatorSelectionData) HashTreeRootWith ¶
func (t *SyncAggregatorSelectionData) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SyncAggregatorSelectionData using the given hash walker.
func (*SyncAggregatorSelectionData) MarshalSSZ ¶
func (t *SyncAggregatorSelectionData) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SyncAggregatorSelectionData to SSZ-encoded bytes.
func (*SyncAggregatorSelectionData) MarshalSSZTo ¶
func (t *SyncAggregatorSelectionData) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SyncAggregatorSelectionData to SSZ-encoded bytes, appending to the provided buffer.
func (*SyncAggregatorSelectionData) SizeSSZ ¶
func (t *SyncAggregatorSelectionData) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SyncAggregatorSelectionData.
func (*SyncAggregatorSelectionData) UnmarshalSSZ ¶
func (t *SyncAggregatorSelectionData) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SyncAggregatorSelectionData from SSZ-encoded bytes.
type SyncCommittee ¶
type SyncCommittee struct {
Pubkeys []phase0.BLSPubKey `dynssz-size:"SYNC_COMMITTEE_SIZE,48" ssz-size:"512,48"`
AggregatePubkey phase0.BLSPubKey `ssz-size:"48"`
}
SyncCommittee is the Ethereum 2 sync committee structure.
func (*SyncCommittee) HashTreeRoot ¶
func (t *SyncCommittee) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SyncCommittee.
func (*SyncCommittee) HashTreeRootWith ¶
func (t *SyncCommittee) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SyncCommittee using the given hash walker.
func (*SyncCommittee) MarshalJSON ¶
func (s *SyncCommittee) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SyncCommittee) MarshalSSZ ¶
func (t *SyncCommittee) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SyncCommittee to SSZ-encoded bytes.
func (*SyncCommittee) MarshalSSZTo ¶
func (t *SyncCommittee) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SyncCommittee to SSZ-encoded bytes, appending to the provided buffer.
func (*SyncCommittee) MarshalYAML ¶
func (s *SyncCommittee) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SyncCommittee) SizeSSZ ¶
func (t *SyncCommittee) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SyncCommittee.
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 (t *SyncCommittee) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SyncCommittee from SSZ-encoded bytes.
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 `dynssz-size:"SYNC_COMMITTEE_SIZE/4/8" ssz-size:"16"`
Signature phase0.BLSSignature `ssz-size:"96"`
}
SyncCommitteeContribution is the Ethereum 2 sync committee contribution structure.
func (*SyncCommitteeContribution) HashTreeRoot ¶
func (t *SyncCommitteeContribution) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SyncCommitteeContribution.
func (*SyncCommitteeContribution) HashTreeRootWith ¶
func (t *SyncCommitteeContribution) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SyncCommitteeContribution using the given hash walker.
func (*SyncCommitteeContribution) MarshalJSON ¶
func (s *SyncCommitteeContribution) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SyncCommitteeContribution) MarshalSSZ ¶
func (t *SyncCommitteeContribution) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SyncCommitteeContribution to SSZ-encoded bytes.
func (*SyncCommitteeContribution) MarshalSSZTo ¶
func (t *SyncCommitteeContribution) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SyncCommitteeContribution to SSZ-encoded bytes, appending to the provided buffer.
func (*SyncCommitteeContribution) MarshalYAML ¶
func (s *SyncCommitteeContribution) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SyncCommitteeContribution) SizeSSZ ¶
func (t *SyncCommitteeContribution) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SyncCommitteeContribution.
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 (t *SyncCommitteeContribution) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SyncCommitteeContribution from SSZ-encoded bytes.
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) HashTreeRoot ¶
func (t *SyncCommitteeMessage) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SyncCommitteeMessage.
func (*SyncCommitteeMessage) HashTreeRootWith ¶
func (t *SyncCommitteeMessage) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SyncCommitteeMessage using the given hash walker.
func (*SyncCommitteeMessage) MarshalJSON ¶
func (s *SyncCommitteeMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SyncCommitteeMessage) MarshalSSZ ¶
func (t *SyncCommitteeMessage) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SyncCommitteeMessage to SSZ-encoded bytes.
func (*SyncCommitteeMessage) MarshalSSZTo ¶
func (t *SyncCommitteeMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SyncCommitteeMessage to SSZ-encoded bytes, appending to the provided buffer.
func (*SyncCommitteeMessage) MarshalYAML ¶
func (s *SyncCommitteeMessage) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SyncCommitteeMessage) SizeSSZ ¶
func (t *SyncCommitteeMessage) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SyncCommitteeMessage.
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 (t *SyncCommitteeMessage) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SyncCommitteeMessage from SSZ-encoded bytes.
func (*SyncCommitteeMessage) UnmarshalYAML ¶
func (s *SyncCommitteeMessage) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
Source Files
¶
- beaconblock.go
- beaconblock_ssz.go
- beaconblockbody.go
- beaconblockbody_ssz.go
- beaconstate.go
- beaconstate_ssz.go
- contributionandproof.go
- contributionandproof_ssz.go
- generate.go
- participationflags.go
- signedbeaconblock.go
- signedbeaconblock_ssz.go
- signedcontributionandproof.go
- signedcontributionandproof_ssz.go
- syncaggregate.go
- syncaggregate_ssz.go
- syncaggregatorselectiondata.go
- syncaggregatorselectiondata_ssz.go
- synccommittee.go
- synccommittee_ssz.go
- synccommitteecontribution.go
- synccommitteecontribution_ssz.go
- synccommitteemessage.go
- synccommitteemessage_ssz.go
- types.go