Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 58e718e2dd3adaf10d99f1f71825871fbed9bc023fc7987eada6dd25fc4d6829 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 6acfca9f3254f772cb7b159ec4f9df774aabf6649742e0aefafa3757ea7c8b41 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 48dfe199f4280ce05bfcb5fb9fb0235cb49918f6130f731c3a3e93973ea15269 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: d7c2a993abb343aab43548493eb76e9842c502f6e5c7265e4a124f4b3272ff87 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 9a54301ee847e34e1393eeb88027e98094472cae1629c1153769e91084b1a151 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 3bfecec22f12f6776bb3ff02de5926885d36c76ab2538cb0c72b427b3a0608e5 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 1c4ae6647e2ab6af62a6375b642d57fe37e60b543a0bbd9c058214c89e9c4622 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 02f895356a7a4cc607a00fbbe4ae53a555560838c15efe4c8bb5c55b43c3c48d Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 8db97b8295e48b35384443d2d33aada6f36b0385181c3cee374d3f0ef841ca57 Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 2010e69d43ac8411146c0b775a837354da5718cb42431c800c44d3014e6dceef Version: v1.4.0-pre.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 408e61b8e54b1f8132ca91d492d46413812cff0a3b0f2c815235fdbc292f4451 Version: v1.4.0-pre.2 (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 ¶
type SyncAggregatorSelectionData struct {
Slot phase0.Slot `json:"slot" yaml:"slot"`
SubcommitteeIndex uint64 `json:"subcommittee_index" yaml:"subcommittee_index"`
}
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