Expand description
Package verification: manifest frame, signatures against pinned anchors, then every listed file by size and BLAKE3.
Signatures are checked before any file is read, so an unsigned or
mis-signed package never causes file I/O beyond the manifest itself.
Each failure class has its own VerifyError variant and stable
VerifyError::code.
Structs§
- Accepted
Signer - A signer whose signature was accepted.
- DirSource
- Reads files from an unpacked package directory.
- Verified
Package - A package that passed verification.
- Verify
Policy - Verification options.
Enums§
- Verify
Error - Why a package was rejected.
Constants§
- MAX_
FILE_ BYTES - Largest single package file read during verification.
Traits§
- File
Source - Where package files are read from.
Functions§
- check_
file - Check one file’s size and hash.
- verify_
dir - Verify the package in directory
dir(manifest atdir/cogpkg.json). - verify_
dir_ in verify_diragainst a caller-supplied kind registry.- verify_
manifest_ signatures - Verify the manifest envelope and its signatures without reading any listed file (mesh-placement-11).
- verify_
manifest_ signatures_ in verify_manifest_signaturesagainst a caller-supplied kind registry.- verify_
with_ source - Verify manifest bytes, reading listed files through
source. - verify_
with_ source_ in verify_with_sourceagainst a caller-supplied kind registry.