Documentation
¶
Index ¶
- func ApplyCompressedSerializedUint64ListDiff(in, out []byte, diff []byte, reverse bool) ([]byte, error)
- func ApplyCompressedSerializedValidatorListDiff(in, out []byte, diff []byte, reverse bool) ([]byte, error)
- func ComputeCompressedSerializedEffectiveBalancesDiff(w io.Writer, old, new []byte) error
- func ComputeCompressedSerializedUint64ListDiff(w io.Writer, old, new []byte) error
- func ComputeCompressedSerializedValidatorSetListDiff(w io.Writer, old, new []byte) error
- func Decode64FromBytes4(buf []byte) (x uint64)
- func DecodeCompactUint64(buf []byte) (x uint64)
- func Encode64ToBytes4(x uint64) (out []byte)
- func EncodeCompactUint64(x uint64) (out []byte)
- func EncodePeriodAndRoot(period uint32, root libcommon.Hash) []byte
- func IndexAndPeriodKey(index, timeframe uint64) (out []byte)
- func ReadRabbits(out []uint64, r io.Reader) ([]uint64, error)
- func WriteRabbits(in []uint64, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode64FromBytes4 ¶
func DecodeCompactUint64 ¶
DecodeCompactUint64 decodes a number encoded with EncodeCompactUint64
func Encode64ToBytes4 ¶
func EncodeCompactUint64 ¶
Encode a number with least amount of bytes
func IndexAndPeriodKey ¶
IndexAndPeriodKey encodes index and period (can be epoch/slot/epoch period) into 8 bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.