sha256_manifest
Record the canonical SHA-256 hash of an original binary before patching to enable verified rollback with restore_original.
Instructions
Compute the SHA-256 manifest of path.
Args: path: file to hash
Returns::
{
"path": "...",
"size": N,
"sha256": "<64 hex chars>",
}Use this to record the canonical SHA-256 of the original
binary before any patch is applied. The hash is the
rollback key: restore_original(original, target, expected_sha256=...) will refuse to proceed if the
original's hash has drifted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |