customtypes

package
v3.2.2-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockRoots

type BlockRoots [fieldparams.BlockRootsLength][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.

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 [fieldparams.RandaoMixesLength][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.

func (*RandaoMixes) UnmarshalSSZ

func (r *RandaoMixes) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the RandaoMixes object.

type StateRoots

type StateRoots [fieldparams.StateRootsLength][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.

func (*StateRoots) UnmarshalSSZ

func (r *StateRoots) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the StateRoots object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL