Documentation ¶
Index ¶
- type BlockRoots
- func (r BlockRoots) HashTreeRoot() ([32]byte, error)
- func (r BlockRoots) HashTreeRootWith(hh *fssz.Hasher) error
- func (r BlockRoots) MarshalSSZ() ([]byte, error)
- func (r BlockRoots) MarshalSSZTo(dst []byte) ([]byte, error)
- func (_ BlockRoots) SizeSSZ() int
- func (r BlockRoots) Slice() [][]byte
- func (r *BlockRoots) UnmarshalSSZ(buf []byte) error
- type HistoricalRoots
- func (r HistoricalRoots) HashTreeRoot() ([32]byte, error)
- func (r HistoricalRoots) HashTreeRootWith(hh *fssz.Hasher) error
- func (r HistoricalRoots) MarshalSSZ() ([]byte, error)
- func (r HistoricalRoots) MarshalSSZTo(dst []byte) ([]byte, error)
- func (r HistoricalRoots) SizeSSZ() int
- func (r HistoricalRoots) Slice() [][]byte
- func (r *HistoricalRoots) UnmarshalSSZ(buf []byte) error
- type RandaoMixes
- func (r RandaoMixes) HashTreeRoot() ([32]byte, error)
- func (r RandaoMixes) HashTreeRootWith(hh *fssz.Hasher) error
- func (r RandaoMixes) MarshalSSZ() ([]byte, error)
- func (r RandaoMixes) MarshalSSZTo(dst []byte) ([]byte, error)
- func (_ RandaoMixes) SizeSSZ() int
- func (r RandaoMixes) Slice() [][]byte
- func (r *RandaoMixes) UnmarshalSSZ(buf []byte) error
- type StateRoots
- func (r StateRoots) HashTreeRoot() ([32]byte, error)
- func (r StateRoots) HashTreeRootWith(hh *fssz.Hasher) error
- func (r StateRoots) MarshalSSZ() ([]byte, error)
- func (r StateRoots) MarshalSSZTo(dst []byte) ([]byte, error)
- func (_ StateRoots) SizeSSZ() int
- func (r StateRoots) Slice() [][]byte
- func (r *StateRoots) UnmarshalSSZ(buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRoots ¶
type BlockRoots [][32]byte
BlockRoots represents block roots of the beacon state.
func (BlockRoots) HashTreeRoot ¶
func (r BlockRoots) HashTreeRoot() ([32]byte, error)
HashTreeRoot returns calculated hash root.
func (BlockRoots) HashTreeRootWith ¶
func (r BlockRoots) HashTreeRootWith(hh *fssz.Hasher) error
HashTreeRootWith hashes a BlockRoots object with a Hasher from the default HasherPool.
func (BlockRoots) MarshalSSZ ¶
func (r BlockRoots) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals BlockRoots into a serialized object.
func (BlockRoots) MarshalSSZTo ¶
func (r BlockRoots) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals BlockRoots with the provided byte slice.
func (BlockRoots) SizeSSZ ¶
func (_ BlockRoots) SizeSSZ() int
SizeSSZ returns the size of the serialized object.
func (BlockRoots) Slice ¶
func (r BlockRoots) Slice() [][]byte
Slice converts a customtypes.BlockRoots object into a 2D byte slice. Each item in the slice is a copy of the original item.
func (*BlockRoots) UnmarshalSSZ ¶
func (r *BlockRoots) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ deserializes the provided bytes buffer into the BlockRoots object.
type HistoricalRoots ¶
type HistoricalRoots [][32]byte
HistoricalRoots represents a 32 bytes HistoricalRoots object in Ethereum beacon chain consensus.
func (HistoricalRoots) HashTreeRoot ¶
func (r HistoricalRoots) HashTreeRoot() ([32]byte, error)
HashTreeRoot returns calculated hash root.
func (HistoricalRoots) HashTreeRootWith ¶
func (r HistoricalRoots) HashTreeRootWith(hh *fssz.Hasher) error
HashTreeRootWith hashes a HistoricalRoots object with a Hasher from the default HasherPool.
func (HistoricalRoots) MarshalSSZ ¶
func (r HistoricalRoots) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals HistoricalRoots into a serialized object.
func (HistoricalRoots) MarshalSSZTo ¶
func (r HistoricalRoots) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals HistoricalRoots with the provided byte slice.
func (HistoricalRoots) SizeSSZ ¶
func (r HistoricalRoots) SizeSSZ() int
SizeSSZ returns the size of the serialized object.
func (HistoricalRoots) Slice ¶
func (r HistoricalRoots) Slice() [][]byte
Slice converts a customtypes.HistoricalRoots object into a 2D byte slice.
func (*HistoricalRoots) UnmarshalSSZ ¶
func (r *HistoricalRoots) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ deserializes the provided bytes buffer into the HistoricalRoots object.
type RandaoMixes ¶
type RandaoMixes [][32]byte
RandaoMixes represents RANDAO mixes of the beacon state.
func (RandaoMixes) HashTreeRoot ¶
func (r RandaoMixes) HashTreeRoot() ([32]byte, error)
HashTreeRoot returns calculated hash root.
func (RandaoMixes) HashTreeRootWith ¶
func (r RandaoMixes) HashTreeRootWith(hh *fssz.Hasher) error
HashTreeRootWith hashes a RandaoMixes object with a Hasher from the default HasherPool.
func (RandaoMixes) MarshalSSZ ¶
func (r RandaoMixes) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals RandaoMixes into a serialized object.
func (RandaoMixes) MarshalSSZTo ¶
func (r RandaoMixes) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals RandaoMixes with the provided byte slice.
func (RandaoMixes) SizeSSZ ¶
func (_ RandaoMixes) SizeSSZ() int
SizeSSZ returns the size of the serialized object.
func (RandaoMixes) Slice ¶
func (r RandaoMixes) Slice() [][]byte
Slice converts a customtypes.RandaoMixes object into a 2D byte slice. Each item in the slice is a copy of the original item.
func (*RandaoMixes) UnmarshalSSZ ¶
func (r *RandaoMixes) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ deserializes the provided bytes buffer into the RandaoMixes object.
type StateRoots ¶
type StateRoots [][32]byte
StateRoots represents block roots of the beacon state.
func (StateRoots) HashTreeRoot ¶
func (r StateRoots) HashTreeRoot() ([32]byte, error)
HashTreeRoot returns calculated hash root.
func (StateRoots) HashTreeRootWith ¶
func (r StateRoots) HashTreeRootWith(hh *fssz.Hasher) error
HashTreeRootWith hashes a StateRoots object with a Hasher from the default HasherPool.
func (StateRoots) MarshalSSZ ¶
func (r StateRoots) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals StateRoots into a serialized object.
func (StateRoots) MarshalSSZTo ¶
func (r StateRoots) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals StateRoots with the provided byte slice.
func (StateRoots) SizeSSZ ¶
func (_ StateRoots) SizeSSZ() int
SizeSSZ returns the size of the serialized object.
func (StateRoots) Slice ¶
func (r StateRoots) Slice() [][]byte
Slice converts a customtypes.StateRoots object into a 2D byte slice. Each item in the slice is a copy of the original item.
func (*StateRoots) UnmarshalSSZ ¶
func (r *StateRoots) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ deserializes the provided bytes buffer into the StateRoots object.