verify_file
Confirms a local file matches its blockchain-anchored timestamp proof by recomputing the hash, validating the Merkle path, and referencing a public transaction.
Instructions
Verify a local file against a blockchain-anchored timestamp proof.
Recomputes the file's hash locally and checks it against the hash recorded in the proof JSON. If a Merkle path is present, it recomputes the Merkle root. Confirms a blockchain transaction reference is present. A passing result means the file is byte-for-byte identical to the file that was timestamped, and the proof points to a public transaction (on Polygon or Bitcoin) that anyone can check on a block explorer.
Args: file_path: Path to the local file to verify. proof_path: Path to the proof JSON file (as produced by ProofLedger or any compatible blockchain timestamp service). algorithm: Hash algorithm (default "sha256").
Returns: A human-readable verification summary followed by the full structured result as JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algorithm | No | sha256 | |
| file_path | Yes | ||
| proof_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |