Documentation
¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 85173a5d4024978f82aef12765deb4595a073417fb5ca46e4757771d34dd7b53 Version: 0.1.3
Index ¶
- Variables
- func MixInLength(root [32]byte, length uint64) []byte
- func TurnToPreMergeProof(proof []byte) ([][]byte, error)
- type BeaconBlockBodyProof
- func (b BeaconBlockBodyProof) ByteLength() (out uint64)
- func (b *BeaconBlockBodyProof) Deserialize(dr *codec.DecodingReader) error
- func (b BeaconBlockBodyProof) FixedLength() uint64
- func (b *BeaconBlockBodyProof) HashTreeRoot(hFn tree.HashFn) common.Root
- func (b *BeaconBlockBodyProof) Serialize(w *codec.EncodingWriter) error
- type BeaconBlockHeaderProof
- func (b BeaconBlockHeaderProof) ByteLength() (out uint64)
- func (b *BeaconBlockHeaderProof) Deserialize(dr *codec.DecodingReader) error
- func (b BeaconBlockHeaderProof) FixedLength() uint64
- func (b *BeaconBlockHeaderProof) HashTreeRoot(hFn tree.HashFn) common.Root
- func (b *BeaconBlockHeaderProof) Serialize(w *codec.EncodingWriter) error
- type BlockNumberKey
- type HeaderValidator
- type HistoricalRoots
- func (h HistoricalRoots) ByteLength(spec *common.Spec) uint64
- func (h *HistoricalRoots) Deserialize(spec *common.Spec, dr *codec.DecodingReader) error
- func (h *HistoricalRoots) FixedLength(_ *common.Spec) uint64
- func (h HistoricalRoots) HashTreeRoot(spec *common.Spec, hFn tree.HashFn) common.Root
- func (h HistoricalRoots) Serialize(spec *common.Spec, w *codec.EncodingWriter) error
- type HistoricalRootsAccumulator
- type HistoricalRootsBlockProof
- func (h *HistoricalRootsBlockProof) ByteLength(spec *common.Spec) uint64
- func (h *HistoricalRootsBlockProof) Deserialize(dr *codec.DecodingReader) error
- func (h *HistoricalRootsBlockProof) FixedLength(spec *common.Spec) uint64
- func (h *HistoricalRootsBlockProof) HashTreeRoot(spec *common.Spec, hFn tree.HashFn) common.Root
- func (h *HistoricalRootsBlockProof) Serialize(w *codec.EncodingWriter) error
- type HistoricalRootsProof
- func (b HistoricalRootsProof) ByteLength() (out uint64)
- func (b *HistoricalRootsProof) Deserialize(dr *codec.DecodingReader) error
- func (b HistoricalRootsProof) FixedLength() uint64
- func (b *HistoricalRootsProof) HashTreeRoot(hFn tree.HashFn) common.Root
- func (b *HistoricalRootsProof) Serialize(w *codec.EncodingWriter) error
- type HistoricalSummariesProvider
- type Oracle
- type PreMergeAccumulator
- func (p *PreMergeAccumulator) GetTree() (*ssz.Node, error)
- func (p *PreMergeAccumulator) HashTreeRoot() ([32]byte, error)
- func (p *PreMergeAccumulator) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (p *PreMergeAccumulator) MarshalSSZ() ([]byte, error)
- func (p *PreMergeAccumulator) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (p *PreMergeAccumulator) SizeSSZ() (size int)
- func (p *PreMergeAccumulator) UnmarshalSSZ(buf []byte) error
- type ValidationOracle
- type Validator
Constants ¶
This section is empty.
Variables ¶
var ( ErrMerkleValidation = errors.New("merkle validation error") ErrExecutionBlockProof = errors.New("execution block proof error") )
Functions ¶
func MixInLength ¶
func TurnToPreMergeProof ¶
Types ¶
type BeaconBlockBodyProof ¶
func (BeaconBlockBodyProof) ByteLength ¶
func (b BeaconBlockBodyProof) ByteLength() (out uint64)
func (*BeaconBlockBodyProof) Deserialize ¶
func (b *BeaconBlockBodyProof) Deserialize(dr *codec.DecodingReader) error
func (BeaconBlockBodyProof) FixedLength ¶
func (b BeaconBlockBodyProof) FixedLength() uint64
func (*BeaconBlockBodyProof) HashTreeRoot ¶
func (b *BeaconBlockBodyProof) HashTreeRoot(hFn tree.HashFn) common.Root
func (*BeaconBlockBodyProof) Serialize ¶
func (b *BeaconBlockBodyProof) Serialize(w *codec.EncodingWriter) error
type BeaconBlockHeaderProof ¶
func (BeaconBlockHeaderProof) ByteLength ¶
func (b BeaconBlockHeaderProof) ByteLength() (out uint64)
func (*BeaconBlockHeaderProof) Deserialize ¶
func (b *BeaconBlockHeaderProof) Deserialize(dr *codec.DecodingReader) error
func (BeaconBlockHeaderProof) FixedLength ¶
func (b BeaconBlockHeaderProof) FixedLength() uint64
func (*BeaconBlockHeaderProof) HashTreeRoot ¶
func (b *BeaconBlockHeaderProof) HashTreeRoot(hFn tree.HashFn) common.Root
func (*BeaconBlockHeaderProof) Serialize ¶
func (b *BeaconBlockHeaderProof) Serialize(w *codec.EncodingWriter) error
type BlockNumberKey ¶
type BlockNumberKey view.Uint64View
type HeaderValidator ¶
type HeaderValidator struct {
// contains filtered or unexported fields
}
func NewHeaderValidatorWithHistorySummaries ¶
func NewHeaderValidatorWithHistorySummaries(historySummaries []capella.HistoricalSummary) HeaderValidator
func NewHeaderValidatorWithOracle ¶
func NewHeaderValidatorWithOracle(oracle Oracle) HeaderValidator
func (HeaderValidator) ValidateHeaderAndProof ¶
func (h HeaderValidator) ValidateHeaderAndProof(header *types.Header, proof []byte) error
func (HeaderValidator) ValidateHeaderWithProof ¶
func (h HeaderValidator) ValidateHeaderWithProof(headerWithProof *history.BlockHeaderWithProof) error
type HistoricalRoots ¶
func (HistoricalRoots) ByteLength ¶
func (h HistoricalRoots) ByteLength(spec *common.Spec) uint64
func (*HistoricalRoots) Deserialize ¶
func (h *HistoricalRoots) Deserialize(spec *common.Spec, dr *codec.DecodingReader) error
func (*HistoricalRoots) FixedLength ¶
func (h *HistoricalRoots) FixedLength(_ *common.Spec) uint64
func (HistoricalRoots) HashTreeRoot ¶
func (HistoricalRoots) Serialize ¶
func (h HistoricalRoots) Serialize(spec *common.Spec, w *codec.EncodingWriter) error
type HistoricalRootsAccumulator ¶
type HistoricalRootsAccumulator struct {
HistoricalRoots HistoricalRoots
}
merge to pre capella accumulator
func DefaultHistoricalRootsAccumulator ¶
func DefaultHistoricalRootsAccumulator() HistoricalRootsAccumulator
func NewHistoricalRootsAccumulator ¶
func NewHistoricalRootsAccumulator(spec *common.Spec) HistoricalRootsAccumulator
type HistoricalRootsBlockProof ¶
type HistoricalRootsBlockProof struct {
BeaconBlockBodyProof BeaconBlockBodyProof `yaml:"beacon_block_body_proof" json:"beacon_block_body_proof"`
BeaconBlockBodyRoot common.Root `yaml:"beacon_block_body_root" json:"beacon_block_body_root"`
BeaconBlockHeaderProof BeaconBlockHeaderProof `yaml:"beacon_block_header_proof" json:"beacon_block_header_proof"`
BeaconBlockHeaderRoot common.Root `yaml:"beacon_block_header_root" json:"beacon_block_header_root"`
HistoricalRootsProof HistoricalRootsProof `yaml:"historical_roots_proof" json:"historical_roots_proof"`
Slot common.Slot `yaml:"slot" json:"slot"`
}
func (*HistoricalRootsBlockProof) ByteLength ¶
func (h *HistoricalRootsBlockProof) ByteLength(spec *common.Spec) uint64
func (*HistoricalRootsBlockProof) Deserialize ¶
func (h *HistoricalRootsBlockProof) Deserialize(dr *codec.DecodingReader) error
func (*HistoricalRootsBlockProof) FixedLength ¶
func (h *HistoricalRootsBlockProof) FixedLength(spec *common.Spec) uint64
func (*HistoricalRootsBlockProof) HashTreeRoot ¶
func (*HistoricalRootsBlockProof) Serialize ¶
func (h *HistoricalRootsBlockProof) Serialize(w *codec.EncodingWriter) error
type HistoricalRootsProof ¶
func (HistoricalRootsProof) ByteLength ¶
func (b HistoricalRootsProof) ByteLength() (out uint64)
func (*HistoricalRootsProof) Deserialize ¶
func (b *HistoricalRootsProof) Deserialize(dr *codec.DecodingReader) error
func (HistoricalRootsProof) FixedLength ¶
func (b HistoricalRootsProof) FixedLength() uint64
func (*HistoricalRootsProof) HashTreeRoot ¶
func (b *HistoricalRootsProof) HashTreeRoot(hFn tree.HashFn) common.Root
func (*HistoricalRootsProof) Serialize ¶
func (b *HistoricalRootsProof) Serialize(w *codec.EncodingWriter) error
type HistoricalSummariesProvider ¶
type HistoricalSummariesProvider struct {
// contains filtered or unexported fields
}
post capella history summaries provider
func NewWithHistorySummaries ¶
func NewWithHistorySummaries(historySummaries []capella.HistoricalSummary) *HistoricalSummariesProvider
func NewWithOracle ¶
func NewWithOracle(oracle Oracle) *HistoricalSummariesProvider
func (*HistoricalSummariesProvider) GetHistoricalSummary ¶
func (h *HistoricalSummariesProvider) GetHistoricalSummary(slot uint64) (capella.HistoricalSummary, error)
type PreMergeAccumulator ¶
type PreMergeAccumulator struct {
HistoricalEpochs [][]byte `ssz-max:"1897,32" ssz-size:"?,32"`
}
func DefaultPreMergeAccumulator ¶
func DefaultPreMergeAccumulator() PreMergeAccumulator
func (*PreMergeAccumulator) GetTree ¶
func (p *PreMergeAccumulator) GetTree() (*ssz.Node, error)
GetTree ssz hashes the PreMergeAccumulator object
func (*PreMergeAccumulator) HashTreeRoot ¶
func (p *PreMergeAccumulator) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the PreMergeAccumulator object
func (*PreMergeAccumulator) HashTreeRootWith ¶
func (p *PreMergeAccumulator) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the PreMergeAccumulator object with a hasher
func (*PreMergeAccumulator) MarshalSSZ ¶
func (p *PreMergeAccumulator) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the PreMergeAccumulator object
func (*PreMergeAccumulator) MarshalSSZTo ¶
func (p *PreMergeAccumulator) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the PreMergeAccumulator object to a target array
func (*PreMergeAccumulator) SizeSSZ ¶
func (p *PreMergeAccumulator) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the PreMergeAccumulator object
func (*PreMergeAccumulator) UnmarshalSSZ ¶
func (p *PreMergeAccumulator) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the PreMergeAccumulator object
type ValidationOracle ¶
type ValidationOracle struct {
// contains filtered or unexported fields
}
func NewOracle ¶
func NewOracle(client *rpc.Client) *ValidationOracle
func (*ValidationOracle) GetBlockHeaderByHash ¶
func (o *ValidationOracle) GetBlockHeaderByHash(hash []byte) (*types.Header, error)
GetBlockHeaderByHash implements Oracle.
func (*ValidationOracle) GetHistoricalSummaries ¶
func (o *ValidationOracle) GetHistoricalSummaries(epoch uint64) (capella.HistoricalSummaries, error)