Documentation
¶
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() 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() 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 (b *BeaconState) MarshalJSON() ([]byte, error)
- func (t *BeaconState) MarshalSSZ() ([]byte, error)
- func (t *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BeaconState) MarshalYAML() ([]byte, error)
- func (t *BeaconState) SizeSSZ() int
- func (b *BeaconState) String() string
- func (b *BeaconState) UnmarshalJSON(input []byte) error
- func (t *BeaconState) UnmarshalSSZ(buf []byte) (err error)
- func (b *BeaconState) UnmarshalYAML(input []byte) error
- type ExecutionPayloadBid
- func (t *ExecutionPayloadBid) HashTreeRoot() (root [32]byte, err error)
- func (t *ExecutionPayloadBid) HashTreeRootWith(hh sszutils.HashWalker) error
- func (e *ExecutionPayloadBid) MarshalJSON() ([]byte, error)
- func (t *ExecutionPayloadBid) MarshalSSZ() ([]byte, error)
- func (t *ExecutionPayloadBid) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (e *ExecutionPayloadBid) MarshalYAML() ([]byte, error)
- func (t *ExecutionPayloadBid) SizeSSZ() int
- func (e *ExecutionPayloadBid) String() string
- func (e *ExecutionPayloadBid) UnmarshalJSON(input []byte) error
- func (t *ExecutionPayloadBid) UnmarshalSSZ(buf []byte) (err error)
- func (e *ExecutionPayloadBid) UnmarshalYAML(input []byte) error
- type InclusionList
- func (t *InclusionList) HashTreeRoot() (root [32]byte, err error)
- func (t *InclusionList) HashTreeRootWith(hh sszutils.HashWalker) error
- func (i *InclusionList) MarshalJSON() ([]byte, error)
- func (t *InclusionList) MarshalSSZ() ([]byte, error)
- func (t *InclusionList) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (i *InclusionList) MarshalYAML() ([]byte, error)
- func (t *InclusionList) SizeSSZ() int
- func (i *InclusionList) String() string
- func (i *InclusionList) UnmarshalJSON(input []byte) error
- func (t *InclusionList) UnmarshalSSZ(buf []byte) (err error)
- func (i *InclusionList) UnmarshalYAML(input []byte) error
- 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() 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 SignedExecutionPayloadBid
- func (t *SignedExecutionPayloadBid) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedExecutionPayloadBid) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedExecutionPayloadBid) MarshalJSON() ([]byte, error)
- func (t *SignedExecutionPayloadBid) MarshalSSZ() ([]byte, error)
- func (t *SignedExecutionPayloadBid) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedExecutionPayloadBid) MarshalYAML() ([]byte, error)
- func (t *SignedExecutionPayloadBid) SizeSSZ() int
- func (s *SignedExecutionPayloadBid) String() string
- func (s *SignedExecutionPayloadBid) UnmarshalJSON(input []byte) error
- func (t *SignedExecutionPayloadBid) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedExecutionPayloadBid) UnmarshalYAML(input []byte) error
- type SignedInclusionList
- func (t *SignedInclusionList) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedInclusionList) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedInclusionList) MarshalJSON() ([]byte, error)
- func (t *SignedInclusionList) MarshalSSZ() ([]byte, error)
- func (t *SignedInclusionList) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedInclusionList) MarshalYAML() ([]byte, error)
- func (t *SignedInclusionList) SizeSSZ() int
- func (s *SignedInclusionList) String() string
- func (s *SignedInclusionList) UnmarshalJSON(input []byte) error
- func (t *SignedInclusionList) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedInclusionList) 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 for Heze, whose body carries the bid extended by EIP-7805.
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() 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-index:"0"`
ETH1Data *phase0.ETH1Data `ssz-index:"1"`
Graffiti [32]byte `ssz-index:"2"`
ProposerSlashings []*phase0.ProposerSlashing `ssz-index:"3" ssz-type:"progressive-list"`
AttesterSlashings []*gloas.AttesterSlashing `ssz-index:"4" ssz-type:"progressive-list"`
Attestations []*gloas.Attestation `ssz-index:"5" ssz-type:"progressive-list"`
Deposits []*phase0.Deposit `ssz-index:"6" ssz-type:"progressive-list"`
VoluntaryExits []*phase0.SignedVoluntaryExit `ssz-index:"7" ssz-type:"progressive-list"`
SyncAggregate *altair.SyncAggregate `ssz-index:"8"`
BLSToExecutionChanges []*capella.SignedBLSToExecutionChange `ssz-index:"9" ssz-type:"progressive-list"`
SignedExecutionPayloadBid *SignedExecutionPayloadBid `ssz-index:"10"`
PayloadAttestations []*gloas.PayloadAttestation `ssz-index:"11" ssz-type:"progressive-list"`
ParentExecutionRequests *gloas.ExecutionRequests `ssz-index:"12"`
}
BeaconBlockBody represents the body of a beacon block for Heze, carrying the execution payload bid extended by EIP-7805.
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() 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 `ssz-index:"0"`
GenesisValidatorsRoot phase0.Root `ssz-index:"1" ssz-size:"32"`
Slot phase0.Slot `ssz-index:"2"`
Fork *phase0.Fork `ssz-index:"3"`
LatestBlockHeader *phase0.BeaconBlockHeader `ssz-index:"4"`
BlockRoots []phase0.Root `ssz-index:"5" dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
StateRoots []phase0.Root `ssz-index:"6" dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
HistoricalRoots []phase0.Root `ssz-index:"7" ssz-max:"16777216" ssz-size:"?,32"`
ETH1Data *phase0.ETH1Data `ssz-index:"8"`
ETH1DataVotes []*phase0.ETH1Data `ssz-index:"9" dynssz-max:"EPOCHS_PER_ETH1_VOTING_PERIOD*SLOTS_PER_EPOCH" ssz-max:"2048"`
ETH1DepositIndex uint64 `ssz-index:"10"`
Validators []*phase0.Validator `ssz-index:"11" ssz-type:"progressive-list"`
Balances []phase0.Gwei `ssz-index:"12" ssz-type:"progressive-list"`
RANDAOMixes []phase0.Root `ssz-index:"13" dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
Slashings []phase0.Gwei `ssz-index:"14" dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR" ssz-size:"8192"`
PreviousEpochParticipation []altair.ParticipationFlags `ssz-index:"15" ssz-type:"progressive-list"`
CurrentEpochParticipation []altair.ParticipationFlags `ssz-index:"16" ssz-type:"progressive-list"`
JustificationBits bitfield.Bitvector4 `ssz-index:"17" ssz-size:"1"`
PreviousJustifiedCheckpoint *phase0.Checkpoint `ssz-index:"18"`
CurrentJustifiedCheckpoint *phase0.Checkpoint `ssz-index:"19"`
FinalizedCheckpoint *phase0.Checkpoint `ssz-index:"20"`
InactivityScores []uint64 `ssz-index:"21" ssz-type:"progressive-list"`
CurrentSyncCommittee *altair.SyncCommittee `ssz-index:"22"`
NextSyncCommittee *altair.SyncCommittee `ssz-index:"23"`
LatestBlockHash phase0.Hash32 `ssz-index:"24" ssz-size:"32"`
NextWithdrawalIndex capella.WithdrawalIndex `ssz-index:"25"`
NextWithdrawalValidatorIndex phase0.ValidatorIndex `ssz-index:"26"`
HistoricalSummaries []*capella.HistoricalSummary `ssz-index:"27" ssz-max:"16777216"`
DepositRequestsStartIndex uint64 `ssz-index:"28"`
DepositBalanceToConsume phase0.Gwei `ssz-index:"29"`
ExitBalanceToConsume phase0.Gwei `ssz-index:"30"`
EarliestExitEpoch phase0.Epoch `ssz-index:"31"`
ConsolidationBalanceToConsume phase0.Gwei `ssz-index:"32"`
EarliestConsolidationEpoch phase0.Epoch `ssz-index:"33"`
PendingDeposits []*electra.PendingDeposit `ssz-index:"34" ssz-type:"progressive-list"`
PendingPartialWithdrawals []*electra.PendingPartialWithdrawal `ssz-index:"35" ssz-type:"progressive-list"`
PendingConsolidations []*electra.PendingConsolidation `ssz-index:"36" ssz-type:"progressive-list"`
ProposerLookahead []phase0.ValidatorIndex `ssz-index:"37" dynssz-size:"(MIN_SEED_LOOKAHEAD+1)*SLOTS_PER_EPOCH" ssz-size:"64"`
Builders []*gloas.Builder `ssz-index:"38" ssz-type:"progressive-list"`
NextWithdrawalBuilderIndex gloas.BuilderIndex `ssz-index:"39"`
ExecutionPayloadAvailability []uint8 `ssz-index:"40" dynssz-size:"SLOTS_PER_HISTORICAL_ROOT/8" ssz-size:"1024"`
BuilderPendingPayments []*gloas.BuilderPendingPayment `ssz-index:"41" dynssz-size:"SLOTS_PER_EPOCH*2" ssz-size:"64"`
BuilderPendingWithdrawals []*gloas.BuilderPendingWithdrawal `ssz-index:"42" ssz-type:"progressive-list"`
LatestExecutionPayloadBid *ExecutionPayloadBid `ssz-index:"43"`
PayloadExpectedWithdrawals []*capella.Withdrawal `ssz-index:"44" ssz-type:"progressive-list"`
PTCWindow [][]phase0.ValidatorIndex `ssz-index:"45" dynssz-size:"(2+MIN_SEED_LOOKAHEAD)*SLOTS_PER_EPOCH,PTC_SIZE" ssz-size:"96,512"`
}
BeaconState represents a beacon state for Heze, whose latest execution payload bid is the one extended by EIP-7805.
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 (b *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 (b *BeaconState) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BeaconState) SizeSSZ ¶
func (t *BeaconState) SizeSSZ() int
SizeSSZ returns the SSZ encoded size of the *BeaconState.
func (*BeaconState) String ¶
func (b *BeaconState) String() string
String returns a string version of the structure.
func (*BeaconState) UnmarshalJSON ¶
func (b *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 (b *BeaconState) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ExecutionPayloadBid ¶
type ExecutionPayloadBid struct {
ParentBlockHash phase0.Hash32 `ssz-index:"0"`
ParentBlockRoot phase0.Root `ssz-index:"1"`
BlockHash phase0.Hash32 `ssz-index:"2"`
PrevRandao phase0.Root `ssz-index:"3"`
FeeRecipient bellatrix.ExecutionAddress `ssz-index:"4"`
GasLimit uint64 `ssz-index:"5"`
BuilderIndex gloas.BuilderIndex `ssz-index:"6"`
Slot phase0.Slot `ssz-index:"7"`
Value phase0.Gwei `ssz-index:"8"`
ExecutionPayment phase0.Gwei `ssz-index:"9"`
BlobKZGCommitments []deneb.KZGCommitment `ssz-index:"10" ssz-type:"progressive-list"`
ExecutionRequestsRoot phase0.Root `ssz-index:"11"`
InclusionListBits []byte `ssz-index:"12" dynssz-size:"INCLUSION_LIST_COMMITTEE_SIZE/8" ssz-size:"2"`
}
ExecutionPayloadBid represents an execution payload bid for EIP-7732, carrying the inclusion list bits added in Heze (EIP-7805).
func (*ExecutionPayloadBid) HashTreeRoot ¶
func (t *ExecutionPayloadBid) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *ExecutionPayloadBid.
func (*ExecutionPayloadBid) HashTreeRootWith ¶
func (t *ExecutionPayloadBid) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *ExecutionPayloadBid using the given hash walker.
func (*ExecutionPayloadBid) MarshalJSON ¶
func (e *ExecutionPayloadBid) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ExecutionPayloadBid) MarshalSSZ ¶
func (t *ExecutionPayloadBid) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *ExecutionPayloadBid to SSZ-encoded bytes.
func (*ExecutionPayloadBid) MarshalSSZTo ¶
func (t *ExecutionPayloadBid) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *ExecutionPayloadBid to SSZ-encoded bytes, appending to the provided buffer.
func (*ExecutionPayloadBid) MarshalYAML ¶
func (e *ExecutionPayloadBid) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ExecutionPayloadBid) SizeSSZ ¶
func (t *ExecutionPayloadBid) SizeSSZ() int
SizeSSZ returns the SSZ encoded size of the *ExecutionPayloadBid.
func (*ExecutionPayloadBid) String ¶
func (e *ExecutionPayloadBid) String() string
String returns a string version of the structure.
func (*ExecutionPayloadBid) UnmarshalJSON ¶
func (e *ExecutionPayloadBid) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*ExecutionPayloadBid) UnmarshalSSZ ¶
func (t *ExecutionPayloadBid) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *ExecutionPayloadBid from SSZ-encoded bytes.
func (*ExecutionPayloadBid) UnmarshalYAML ¶
func (e *ExecutionPayloadBid) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type InclusionList ¶ added in v0.1.7
type InclusionList struct {
Slot phase0.Slot
ValidatorIndex phase0.ValidatorIndex
DependentRoot phase0.Root `ssz-size:"32"`
Transactions []bellatrix.Transaction `ssz-type:"progressive-list,progressive-list"`
}
InclusionList represents the transactions an inclusion list committee member requires the next payload to contain. New in Heze (EIP-7805).
func (*InclusionList) HashTreeRoot ¶ added in v0.1.7
func (t *InclusionList) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *InclusionList.
func (*InclusionList) HashTreeRootWith ¶ added in v0.1.7
func (t *InclusionList) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *InclusionList using the given hash walker.
func (*InclusionList) MarshalJSON ¶ added in v0.1.7
func (i *InclusionList) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*InclusionList) MarshalSSZ ¶ added in v0.1.7
func (t *InclusionList) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *InclusionList to SSZ-encoded bytes.
func (*InclusionList) MarshalSSZTo ¶ added in v0.1.7
func (t *InclusionList) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *InclusionList to SSZ-encoded bytes, appending to the provided buffer.
func (*InclusionList) MarshalYAML ¶ added in v0.1.7
func (i *InclusionList) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*InclusionList) SizeSSZ ¶ added in v0.1.7
func (t *InclusionList) SizeSSZ() int
SizeSSZ returns the SSZ encoded size of the *InclusionList.
func (*InclusionList) String ¶ added in v0.1.7
func (i *InclusionList) String() string
String returns a string version of the structure.
func (*InclusionList) UnmarshalJSON ¶ added in v0.1.7
func (i *InclusionList) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*InclusionList) UnmarshalSSZ ¶ added in v0.1.7
func (t *InclusionList) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *InclusionList from SSZ-encoded bytes.
func (*InclusionList) UnmarshalYAML ¶ added in v0.1.7
func (i *InclusionList) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.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() 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 SignedExecutionPayloadBid ¶
type SignedExecutionPayloadBid struct {
Message *ExecutionPayloadBid
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedExecutionPayloadBid represents a signed execution payload bid for Heze.
func (*SignedExecutionPayloadBid) HashTreeRoot ¶
func (t *SignedExecutionPayloadBid) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedExecutionPayloadBid.
func (*SignedExecutionPayloadBid) HashTreeRootWith ¶
func (t *SignedExecutionPayloadBid) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedExecutionPayloadBid using the given hash walker.
func (*SignedExecutionPayloadBid) MarshalJSON ¶
func (s *SignedExecutionPayloadBid) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedExecutionPayloadBid) MarshalSSZ ¶
func (t *SignedExecutionPayloadBid) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedExecutionPayloadBid to SSZ-encoded bytes.
func (*SignedExecutionPayloadBid) MarshalSSZTo ¶
func (t *SignedExecutionPayloadBid) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedExecutionPayloadBid to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedExecutionPayloadBid) MarshalYAML ¶
func (s *SignedExecutionPayloadBid) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedExecutionPayloadBid) SizeSSZ ¶
func (t *SignedExecutionPayloadBid) SizeSSZ() int
SizeSSZ returns the SSZ encoded size of the *SignedExecutionPayloadBid.
func (*SignedExecutionPayloadBid) String ¶
func (s *SignedExecutionPayloadBid) String() string
String returns a string version of the structure.
func (*SignedExecutionPayloadBid) UnmarshalJSON ¶
func (s *SignedExecutionPayloadBid) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedExecutionPayloadBid) UnmarshalSSZ ¶
func (t *SignedExecutionPayloadBid) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedExecutionPayloadBid from SSZ-encoded bytes.
func (*SignedExecutionPayloadBid) UnmarshalYAML ¶
func (s *SignedExecutionPayloadBid) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedInclusionList ¶ added in v0.1.7
type SignedInclusionList struct {
Message *InclusionList
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedInclusionList represents a signed inclusion list. New in Heze (EIP-7805).
func (*SignedInclusionList) HashTreeRoot ¶ added in v0.1.7
func (t *SignedInclusionList) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedInclusionList.
func (*SignedInclusionList) HashTreeRootWith ¶ added in v0.1.7
func (t *SignedInclusionList) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedInclusionList using the given hash walker.
func (*SignedInclusionList) MarshalJSON ¶ added in v0.1.7
func (s *SignedInclusionList) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedInclusionList) MarshalSSZ ¶ added in v0.1.7
func (t *SignedInclusionList) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedInclusionList to SSZ-encoded bytes.
func (*SignedInclusionList) MarshalSSZTo ¶ added in v0.1.7
func (t *SignedInclusionList) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedInclusionList to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedInclusionList) MarshalYAML ¶ added in v0.1.7
func (s *SignedInclusionList) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedInclusionList) SizeSSZ ¶ added in v0.1.7
func (t *SignedInclusionList) SizeSSZ() int
SizeSSZ returns the SSZ encoded size of the *SignedInclusionList.
func (*SignedInclusionList) String ¶ added in v0.1.7
func (s *SignedInclusionList) String() string
String returns a string version of the structure.
func (*SignedInclusionList) UnmarshalJSON ¶ added in v0.1.7
func (s *SignedInclusionList) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedInclusionList) UnmarshalSSZ ¶ added in v0.1.7
func (t *SignedInclusionList) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedInclusionList from SSZ-encoded bytes.
func (*SignedInclusionList) UnmarshalYAML ¶ added in v0.1.7
func (s *SignedInclusionList) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
Source Files
¶
- beaconblock.go
- beaconblock_json.go
- beaconblock_ssz.go
- beaconblock_yaml.go
- beaconblockbody.go
- beaconblockbody_json.go
- beaconblockbody_ssz.go
- beaconblockbody_yaml.go
- beaconstate.go
- beaconstate_json.go
- beaconstate_ssz.go
- beaconstate_yaml.go
- executionpayloadbid.go
- executionpayloadbid_json.go
- executionpayloadbid_ssz.go
- executionpayloadbid_yaml.go
- generate.go
- inclusionlist.go
- inclusionlist_json.go
- inclusionlist_ssz.go
- inclusionlist_yaml.go
- signedbeaconblock.go
- signedbeaconblock_json.go
- signedbeaconblock_ssz.go
- signedbeaconblock_yaml.go
- signedexecutionpayloadbid.go
- signedexecutionpayloadbid_json.go
- signedexecutionpayloadbid_ssz.go
- signedexecutionpayloadbid_yaml.go
- signedinclusionlist.go
- signedinclusionlist_json.go
- signedinclusionlist_ssz.go
- signedinclusionlist_yaml.go