Versions in this module Expand all Collapse all v0 v0.2.2 Aug 8, 2025 v0.2.1 Mar 27, 2025 Changes in this version + func BigIntToLittleEndianBytes(bigInt *big.Int) []byte + func Bytes1(x uint64) []byte + func Bytes2(x uint64) []byte + func Bytes3(x uint64) []byte + func Bytes32(x uint64) []byte + func Bytes4(x uint64) []byte + func Bytes8(x uint64) []byte + func BytesToEpochBigEndian(b []byte) primitives.Epoch + func BytesToSlotBigEndian(b []byte) primitives.Slot + func BytesToUint64BigEndian(b []byte) uint64 + func ClearBit(b []byte, i int) []byte + func EpochToBytesBigEndian(i primitives.Epoch) []byte + func EpochToBytesLittleEndian(i primitives.Epoch) []byte + func FromBool(x bool) byte + func FromBytes2(x []byte) uint16 + func FromBytes2592(x [2592]byte) []byte + func FromBytes2592Array(x [][2592]byte) [][]byte + func FromBytes4(x []byte) uint64 + func FromBytes48(x [48]byte) []byte + func FromBytes48Array(x [][48]byte) [][]byte + func FromBytes8(x []byte) uint64 + func HighestBitIndex(b []byte) (int, error) + func HighestBitIndexAt(b []byte, index int) (int, error) + func IsHex(b []byte) bool + func IsRoot(root []byte) bool + func IsValidRoot(root []byte) bool + func LittleEndianBytesToBigInt(bytes []byte) *big.Int + func MakeEmptyBitlists(i int) []byte + func PadTo(b []byte, size int) []byte + func ReverseByteOrder(input []byte) []byte + func ReverseBytes32Slice(arr [][32]byte) [][32]byte + func SafeCopy2d32Bytes(ary [][32]byte) [][32]byte + func SafeCopy2dBytes(ary [][]byte) [][]byte + func SafeCopy2dHexUtilBytes(ary []hexutil.Bytes) [][]byte + func SafeCopyBytes(cp []byte) []byte + func SafeCopyRootAtIndex(input [][]byte, idx uint64) ([]byte, error) + func SafeCopyUint64Array(ary []uint64) []uint64 + func SetBit(b []byte, i int) []byte + func SlotToBytesBigEndian(i primitives.Slot) []byte + func ToBool(x byte) bool + func ToBytes(x uint64, length int) []byte + func ToBytes20(x []byte) [20]byte + func ToBytes2592(x []byte) [2592]byte + func ToBytes32(x []byte) [32]byte + func ToBytes4(x []byte) [4]byte + func ToBytes4595(x []byte) [4595]byte + func ToBytes48(x []byte) [48]byte + func ToBytes48Array(x [][]byte) [][48]byte + func ToBytes64(x []byte) [64]byte + func ToBytes96(x []byte) [96]byte + func ToLowInt64(x []byte) int64 + func Trunc(x []byte) []byte + func Uint32ToBytes4(i uint32) [4]byte + func Uint64ToBytesBigEndian(i uint64) []byte + func Uint64ToBytesLittleEndian(i uint64) []byte + func Uint64ToBytesLittleEndian32(i uint64) []byte + func ZeroRoot(root []byte) bool