Skip to main content

Module tree

Module tree 

Source
Expand description

The tree: nodes, the layering, and the blocks they encode to.

Structsยง

Entry
One entry in a node: a key, the record it names, and what hangs to its right.
Node
One node of the tree.
Path
Which blocks prove what a tree says about one key.
Tree
A built Merkle search tree: a root CID and every block under it.

Enumsยง

Step ๐Ÿ”’
Where one node says to go next for a key.

Functionsยง

attach ๐Ÿ”’
Builds the pending run of lower keys and hangs it off the node.
build_layer ๐Ÿ”’
Builds one node at layer and everything under it.
link_or_null ๐Ÿ”’
A link, or the null a missing subtree is written as.
step ๐Ÿ”’
Reads one node and says which way key lies.
store ๐Ÿ”’
Encodes a node, records its block and the node itself, and answers its CID.