verify_receipt
Verify signed artifacts or receipts using explicit or embedded public keys to confirm authenticity without requiring accounts or API calls.
Instructions
Verify a single signed artifact or receipt using an explicit public key or any embedded public key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact_json | No | Raw JSON artifact string. | |
| path | No | Path to a local JSON artifact file. | |
| public_key_hex | No | Optional Ed25519 public key hex (64 bytes as hex). |
Implementation Reference
- server.js:201-208 (handler)The handler implementation for the verify_receipt tool, which processes the artifact input and calls verifySingle.
async (args) => { try { const artifact = readJsonInput(args.path, args.artifact_json); return textResult(verifySingle(artifact, args.public_key_hex || null)); } catch (error) { return textResult({ ok: false, error: error.message }); } } - server.js:194-200 (registration)Registration and schema definition for the verify_receipt tool.
'verify_receipt', 'Verify a single signed artifact or receipt using an explicit public key or any embedded public key.', { artifact_json: z.string().optional().describe('Raw JSON artifact string.'), path: z.string().optional().describe('Path to a local JSON artifact file.'), public_key_hex: z.string().optional().describe('Optional Ed25519 public key hex (64 bytes as hex).'), },