Skip to main content

Module build

Module build 

Source
Expand description

Deterministic construction and expansion of a canonical manifest trie.

Construction is a pure function of the logical object set: the same set always yields the same node bytes and therefore the same root hash. Two sets that differ in one object share every subtree the change does not touch, so replacing one object rewrites only the old and new routes — O(path depth), never O(objects).

Structs§

BuiltManifest
The output of a build: a root address plus every node byte string it reaches, deduplicated by address.

Enums§

ManifestBuildError
ManifestExpandError

Traits§

ManifestNodeSource
Read access to canonical manifest node bytes, keyed by node address.
ManifestNodeStore
Optional whole-store enumeration, used only to report nodes that are present but unreachable from a root.

Functions§

build_manifest
Build the canonical manifest for objects.
expand_manifest
Expand a manifest root into its object set, in canonical plan-key order.