verify_document
Verify an anchored document's integrity by comparing the provided SHA-256 against the original and confirming the blockchain transaction. Supports a crawler-free live-state check when a vault contract address is supplied.
Instructions
Verify an anchored document by its NIGHTGATE document id: compares the provided sha256 against the anchored original and confirms the anchoring transaction, with a crawler-free live-state fallback when contractAddress is supplied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Documents row id | |
| providedSha256 | Yes | sha256 of the document to check (64 hex) | |
| contractAddress | No | Optional vault address, enables the crawler-free fallback | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault' |