Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 5c5b80e0f363806ec7b6d12b1ac5ffb3238eb78b1d7855bc2db3de4a6189565f Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b46565f2e5dee94f33a02251d2fcbe93bbfd470f97a17b3ace9ff9cfad236ae5 Version: v1.3.0 (https://github.com/pk910/dynamic-ssz)
Index ¶
- type BlockContents
- func (t *BlockContents) HashTreeRoot() (root [32]byte, err error)
- func (t *BlockContents) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BlockContents) MarshalJSON() ([]byte, error)
- func (t *BlockContents) MarshalSSZ() ([]byte, error)
- func (t *BlockContents) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BlockContents) MarshalYAML() ([]byte, error)
- func (t *BlockContents) SizeSSZ() (size int)
- func (b *BlockContents) String() string
- func (b *BlockContents) UnmarshalJSON(input []byte) error
- func (t *BlockContents) UnmarshalSSZ(buf []byte) (err error)
- func (b *BlockContents) UnmarshalYAML(input []byte) error
- type SignedBlockContents
- func (t *SignedBlockContents) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedBlockContents) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBlockContents) MarshalJSON() ([]byte, error)
- func (t *SignedBlockContents) MarshalSSZ() ([]byte, error)
- func (t *SignedBlockContents) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedBlockContents) MarshalYAML() ([]byte, error)
- func (t *SignedBlockContents) SizeSSZ() (size int)
- func (s *SignedBlockContents) String() string
- func (s *SignedBlockContents) UnmarshalJSON(input []byte) error
- func (t *SignedBlockContents) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedBlockContents) UnmarshalYAML(input []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockContents ¶
type BlockContents struct {
Block *electra.BeaconBlock
KZGProofs []deneb.KZGProof `ssz-max:"33554432" ssz-size:"?,48"`
Blobs []deneb.Blob `ssz-max:"4096" ssz-size:"?,131072"`
}
BlockContents represents the contents of a block, both block and blob.
func (*BlockContents) HashTreeRoot ¶
func (t *BlockContents) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BlockContents.
func (*BlockContents) HashTreeRootWith ¶
func (t *BlockContents) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BlockContents using the given hash walker.
func (*BlockContents) MarshalJSON ¶
func (b *BlockContents) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BlockContents) MarshalSSZ ¶
func (t *BlockContents) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BlockContents to SSZ-encoded bytes.
func (*BlockContents) MarshalSSZTo ¶
func (t *BlockContents) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BlockContents to SSZ-encoded bytes, appending to the provided buffer.
func (*BlockContents) MarshalYAML ¶
func (b *BlockContents) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BlockContents) SizeSSZ ¶
func (t *BlockContents) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BlockContents.
func (*BlockContents) String ¶
func (b *BlockContents) String() string
String returns a string version of the structure.
func (*BlockContents) UnmarshalJSON ¶
func (b *BlockContents) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BlockContents) UnmarshalSSZ ¶
func (t *BlockContents) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BlockContents from SSZ-encoded bytes.
func (*BlockContents) UnmarshalYAML ¶
func (b *BlockContents) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedBlockContents ¶
type SignedBlockContents struct {
SignedBlock *electra.SignedBeaconBlock
KZGProofs []deneb.KZGProof `ssz-max:"33554432" ssz-size:"?,48"`
Blobs []deneb.Blob `ssz-max:"4096" ssz-size:"?,131072"`
}
SignedBlockContents represents the contents of a block, both block and blob.
func (*SignedBlockContents) HashTreeRoot ¶
func (t *SignedBlockContents) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedBlockContents.
func (*SignedBlockContents) HashTreeRootWith ¶
func (t *SignedBlockContents) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedBlockContents using the given hash walker.
func (*SignedBlockContents) MarshalJSON ¶
func (s *SignedBlockContents) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedBlockContents) MarshalSSZ ¶
func (t *SignedBlockContents) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedBlockContents to SSZ-encoded bytes.
func (*SignedBlockContents) MarshalSSZTo ¶
func (t *SignedBlockContents) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedBlockContents to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedBlockContents) MarshalYAML ¶
func (s *SignedBlockContents) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedBlockContents) SizeSSZ ¶
func (t *SignedBlockContents) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedBlockContents.
func (*SignedBlockContents) String ¶
func (s *SignedBlockContents) String() string
String returns a string version of the structure.
func (*SignedBlockContents) UnmarshalJSON ¶
func (s *SignedBlockContents) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedBlockContents) UnmarshalSSZ ¶
func (t *SignedBlockContents) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedBlockContents from SSZ-encoded bytes.
func (*SignedBlockContents) UnmarshalYAML ¶
func (s *SignedBlockContents) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.