Skip to main content

Module verify

Module verify 

Source
Expand description

Standalone package verification (spec §8 integrity, §9 signing).

lean-ctx pack verify and the import path share these primitives. All hashing operates on the document text of the content member — never on re-serialized parsed values, which would be lossy across languages (a writer’s 1.0 re-serializes as 1 in JavaScript and breaks the hash).

Structs§

VerifyReport
Per-check verification report, mirroring the checks every conforming reader runs (and the shape of the @ctxpkg/verify reference output).

Enums§

CheckOutcome
Outcome of one verification check.

Functions§

verify_package_file
Read and verify a .ctxpkg file (size- and extension-gated like import).
verify_package_text
Verify a .ctxpkg document without installing anything.