disclosure_verify_artifact_hash
Verify a candidate artifact against the declared SHA-256 hash. Provide text (canonical LF) or base64-encoded bytes to compare; returns ok=true on match or a mismatch error with expected and recomputed hashes.
Instructions
Recompute SHA-256 over a candidate artifact and compare to disclosure.artifact_hash. Pass either candidate_text (canonical SHA-256: LF, no trailing newline) for text artifacts, or candidate_bytes_base64 (raw-bytes SHA-256) for binary artifacts like PDFs / images. Returns ok=true on match, otherwise { error: artifact_hash_mismatch, expected, recomputed }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_json | Yes | ||
| candidate_text | No | Text artifact (canonical-text mode). | |
| candidate_bytes_base64 | No | Base64-encoded raw artifact bytes (raw-bytes mode). |