Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2026 Changes in this version + var ErrMaxDepth = errors.New("attempted to traverse KAMT beyond key length") + type Bitfield struct + func (b *Bitfield) MarshalCBOR(w io.Writer) error + func (b *Bitfield) UnmarshalCBOR(r io.Reader) error + type KV struct + Key []byte + Value *cbg.Deferred + func (kv *KV) MarshalCBOR(w io.Writer) error + func (kv *KV) UnmarshalCBOR(r io.Reader) error + type Node struct + Bitfield Bitfield + Pointers []*Pointer + func LoadNode(ctx context.Context, cs cbor.IpldStore, c cid.Cid, options ...Option) (*Node, error) + func NewNode(cs cbor.IpldStore, options ...Option) (*Node, error) + func (n *Node) Delete(ctx context.Context, k []byte) (bool, error) + func (n *Node) Find(ctx context.Context, k []byte, out cbg.CBORUnmarshaler) (bool, error) + func (n *Node) FindRaw(ctx context.Context, k []byte) (bool, []byte, error) + func (n *Node) Flush(ctx context.Context) error + func (n *Node) ForEach(ctx context.Context, f func(k []byte, val *cbg.Deferred) error) error + func (n *Node) ForEachNode(ctx context.Context, f func(info NodeInfo) error) error + func (n *Node) MarshalCBOR(w io.Writer) error + func (n *Node) Set(ctx context.Context, k []byte, v cbg.CBORMarshaler) error + func (n *Node) SetIfAbsent(ctx context.Context, k []byte, v cbg.CBORMarshaler) (bool, error) + func (n *Node) SetRaw(ctx context.Context, k []byte, raw []byte) error + func (n *Node) UnmarshalCBOR(r io.Reader) error + func (n *Node) Write(ctx context.Context) (cid.Cid, error) + type NodeInfo struct + CID cid.Cid + Depth int + LogicalDepth int + Node *Node + type Option func(*config) error + func UseKeyLength(length int) Option + func UseMaxArrayWidth(width int) Option + func UseMinDataDepth(depth int) Option + func UseTreeBitWidth(bitWidth int) Option + type Pointer struct + KVs []*KV + Link cid.Cid + func (p *Pointer) Extension() (lengthBits int, path []byte) + func (t *Pointer) MarshalCBOR(w io.Writer) error + func (t *Pointer) UnmarshalCBOR(r io.Reader) error