sswp_verify
Validate an SSWP attestation by recomputing its SHA-256 signature. Returns VALID ATTESTATION if unmodified, SIGNATURE MISMATCH if altered. Use to audit attestations from others or confirm file integrity.
Instructions
Verify the SHA-256 cryptographic signature of an existing .sswp.json attestation file. Recomputes the hash over the entire attestation payload (sorted keys, excluding the signature field) and compares it against the stored signature. Returns VALID ATTESTATION if the file is intact and unmodified, or SIGNATURE MISMATCH if the file was altered after sealing. Use this to audit an attestation you received from someone else, or to confirm a repo's attestation still matches the file on disk. For generating new attestations, use sswp_witness; for quick repo readiness checks without sealing, use sswp_check_repo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the .sswp.json attestation file to verify. The file must contain a valid SSWP attestation with a 'signature' field. |