Versions in this module Expand all Collapse all v1 v1.2.2 Apr 7, 2024 Changes in this version + var ZeroHashes = [100][32]byte + func BitlistRoot(hasher HashFn, bfield bitfield.Bitfield, maxCapacity uint64) ([32]byte, error) + func BitwiseMerkleize(hasher HashFn, chunks [][32]byte, count, limit uint64) ([32]byte, error) + func ConstructProof(hasher Hasher, count, limit uint64, leaf func(i uint64) []byte, index uint64) (branch [][32]byte) + func Depth(v uint64) (out uint8) + func Merkleize(hasher Hasher, count, limit uint64, leaf func(i uint64) []byte) (out [32]byte) + func MerkleizeVector(elements [][32]byte, length uint64) [32]byte + func MixInLength(root [32]byte, length []byte) [32]byte + func PackByChunk(serializedItems [][]byte) ([][bytesPerChunk]byte, error) + func ToBytes32(x []byte) [32]byte + type HashFn func(input []byte) [32]byte + type Hasher interface + Combi func(a [32]byte, b [32]byte) [32]byte + Hash func(a []byte) [32]byte + MixIn func(a [32]byte, i uint64) [32]byte + type HasherFunc struct + func NewHasherFunc(h HashFn) *HasherFunc + func (h *HasherFunc) Combi(a, b [32]byte) [32]byte + func (h *HasherFunc) Hash(a []byte) [32]byte + func (h *HasherFunc) MixIn(a [32]byte, i uint64) [32]byte