Versions in this module Expand all Collapse all v0 v0.0.2 May 5, 2023 v0.0.1 May 4, 2022 Changes in this version + func Decompose(begin, end uint64) (uint64, uint64) + func RangeSize(begin, end uint64) int + type HashFn func(left, right []byte) []byte + type NodeID struct + Index uint64 + Level uint + func NewNodeID(level uint, index uint64) NodeID + func RangeNodes(begin, end uint64, ids []NodeID) []NodeID + func (id NodeID) Coverage() (uint64, uint64) + func (id NodeID) Parent() NodeID + func (id NodeID) Sibling() NodeID + type Range struct + func (r *Range) Append(hash []byte, visitor VisitFn) error + func (r *Range) AppendRange(other *Range, visitor VisitFn) error + func (r *Range) Begin() uint64 + func (r *Range) End() uint64 + func (r *Range) Equal(other *Range) bool + func (r *Range) GetRootHash(visitor VisitFn) ([]byte, error) + func (r *Range) Hashes() [][]byte + type RangeFactory struct + Hash HashFn + func (f *RangeFactory) NewEmptyRange(begin uint64) *Range + func (f *RangeFactory) NewRange(begin, end uint64, hashes [][]byte) (*Range, error) + type VisitFn func(id NodeID, hash []byte)