verify_attestation
Verifies an attester's payload-hash record in a live Midnight AttestationVault without a tx hash, using attesterId + payloadHash or a bound documentId; optionally checks contentRoot/schemaId.
Instructions
Verify against LIVE Midnight contract state that an attester's record of a payload hash stands in an AttestationVault (crawler-free, no txHash needed). A record is ONE attester's attestation of ONE payload (ledger key recordKey(attesterId, payloadHash)): name it by attesterId + payloadHash, or by a bound documentId, which resolves to exactly one record and reveals its attester. Optionally also checks that the anchored content root / schema id match. Returns verified:false (not an error) when absent; the result carries attesterId, payloadHash, recordKey and documentId. bindingRegistered is only about documentId lookups: true when the vault registrar assigned that id to this attester. A record anchored without a document id reports false, and that is fine. Free: it reads the public verify service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Read from another network public indexer instead of the configured one | |
| schemaId | No | Optional anchored schema id to check; the result reports schemaOk, so an examiner can pin the canonical field list | |
| attesterId | No | The attester whose record to check (64 hex; get_attester_identity for this server's own). Required unless documentId is given | |
| documentId | No | A bound document id (64 hex): resolves the record through the vault's document bindings | |
| contentRoot | No | Optional anchored content root to check (64 hex) | |
| payloadHash | No | The attested payload hash (sha256, 64 hex). Required with attesterId; next to documentId it must match the bound record | |
| contractAddress | No | AttestationVault address (64 hex); default the shared sandbox vault of the network (preprod, preview) | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault-32'; 'attestation-vault' for a 16-slot vault |