Versions in this module Expand all Collapse all v6 v6.2.13 Sep 22, 2026 v6.2.12 Sep 21, 2026 Changes in this version + var ErrDecodeLoop = errors.New("decode loop detected") + var ErrDecodeNotPossible = errors.New("decode failed") + type Data interface + Add func(other Data) error + Clone func() Data + Delete func(ref hash.SHA256Hash) + Empty func() bool + Insert func(ref hash.SHA256Hash) + New func() Data + Subtract func(other Data) error + type Iblt struct + func NewIblt(numBuckets int) *Iblt + func (i *Iblt) Add(other Data) error + func (i *Iblt) Clone() Data + func (i *Iblt) Decode() (remaining []hash.SHA256Hash, missing []hash.SHA256Hash, err error) + func (i *Iblt) Delete(key hash.SHA256Hash) + func (i *Iblt) Empty() bool + func (i *Iblt) Insert(ref hash.SHA256Hash) + func (i *Iblt) MarshalBinary() ([]byte, error) + func (i *Iblt) New() Data + func (i *Iblt) Subtract(other Data) error + func (i *Iblt) UnmarshalBinary(data []byte) error + type Tree interface + Delete func(ref hash.SHA256Hash, clock uint32) + DropLeaves func() + Insert func(ref hash.SHA256Hash, clock uint32) + Load func(leaves map[uint32][]byte) error + Replace func(clock uint32, data Data) error + ResetUpdates func() + Root func() Data + Updates func() (dirty map[uint32][]byte, orphaned []uint32) + ZeroTo func(clock uint32) (Data, uint32) + func New(prototype Data, leafSize uint32) Tree + type Xor hash.SHA256Hash + func NewXor() *Xor + func (x *Xor) Add(data Data) error + func (x *Xor) Clone() Data + func (x *Xor) Delete(ref hash.SHA256Hash) + func (x *Xor) Empty() bool + func (x *Xor) Hash() hash.SHA256Hash + func (x *Xor) Insert(ref hash.SHA256Hash) + func (x *Xor) MarshalBinary() ([]byte, error) + func (x *Xor) New() Data + func (x *Xor) Subtract(data Data) error + func (x *Xor) UnmarshalBinary(data []byte) error Other modules containing this package github.com/nuts-foundation/nuts-node github.com/nuts-foundation/nuts-node/v5