Skip to main content

Module contract

Module contract 

Source
Expand description

The box format, mirrored.

src/contract/ in this repository is the single source of truth for the format. This module does not import it — it cannot, across languages — so it mirrors the rules and proves the mirror against the shared fixtures. That is how a Rust client, the Node builder and the Python consumer stay in agreement without sharing a runtime.

Nothing here touches a filesystem, a key, or a process. Every function is a pure statement about bytes or names, which is what makes the mirror provable in the first place.

Modules§

documents
Mirror of the Scrollcase signed-document envelope.
links
Mirror of the rule deciding which symbolic links a box payload may carry.
payload_digest
Mirror of the rule deciding what a box commits to about its own extracted tree.
targets
Mirror of the Scrollcase box-format target model.