verify_attestation
Verify the server HMAC signature of an attestation issued by the Spazio Genesi service. Confirms that the attestation string (fingerprint + timestamp) and any declared metadata are authentic and untampered. Note: this checks the SIGNATURE only. Whether a given file matches the fingerprint must be checked locally by re-hashing the file. If the certificate carried declared metadata (title/author/year/notes), they must be provided EXACTLY as printed for the signature to verify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | Declared year/version, exactly as printed (only if the certificate shows it). | |
| hmac | Yes | The server HMAC signature exactly as printed on the certificate (base64, 44 characters ending with '='). | |
| note | No | Declared notes, exactly as printed (only if the certificate shows them). | |
| autore | No | Declared author, exactly as printed (only if the certificate shows it). | |
| sha256 | Yes | SHA-256 fingerprint of the work: 64 hexadecimal characters. Compute the SHA-256 locally if you have code execution (`sha256sum <file>` / `shasum -a 256 <file>` / `certutil -hashfile <file> SHA256`). NEVER send file bytes or base64 through tool arguments: this server never receives files. If you cannot compute a hash locally, point the user to the website (https://attestazione.spaziogenesi.org, full privacy: hashing happens in the browser) or the Telegram bot @SGAttestBot. | |
| titolo | No | Declared title, exactly as printed (only if the certificate shows it). | |
| attestazione | Yes | The attestation string exactly as printed on the certificate: "SHA-256:<hash>@<ISO timestamp>Z" |