Expand description
MantarayNode, Fork, and the trie operations (add_fork,
find, find_closest, remove_fork). The marshal / unmarshal
pair lives in crate::manifest::wire.
Structs§
- Fork
- One edge of the trie.
prefixis the path bytes that select this child;nodeis the child node. - Mantaray
Node - One node of the Mantaray trie. Field names mirror bee-js / bee-go.
Constants§
- MAX_
PREFIX_ LENGTH - Per-fork prefix length cap. Longer paths are split into chained
nodes with prefixes ≤
MAX_PREFIX_LENGTHeach. - NULL_
ADDRESS - All-zero 32-byte target address — the canonical “no target” value.
- PATH_
SEPARATOR - Path separator byte.
- TYPE_
EDGE - Type bit: this node has child forks.
- TYPE_
VALUE - Type bit: this node has a non-null target address.
- TYPE_
WITH_ METADATA - Type bit: this fork carries metadata.
- TYPE_
WITH_ PATH_ SEPARATOR - Type bit: this node’s path contains a non-leading
/.
Functions§
- is_
null_ address - True iff
bis empty or all zeros (the canonical null target).