Verify a receipt offline
idemcore_verify_receiptVerifies Idemcore receipts offline, checking format and Ed25519 signatures, recomputing token-log chain digests, and validating disclosed prompt or output hashes.
Instructions
Verify an Idemcore receipt without calling the API: L1 checks format and the Ed25519 signature against trusted Idemcore keys; L2 recomputes the token-log chain digests from a log; optional disclosure checks that a prompt, token ids or displayed text match the receipt's hashes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"receipt": "<receipt>"
},
"name": "idemcore_verify_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | Yes | Receipt JSON (object, JSON string, base64url JSON, or an embed envelope {receipt, ...}). | |
| log_path | No | Path to a per-token log file for L2. | |
| log_text | No | Per-token log text for L2. | |
| messages | No | Disclosed prompt messages to check against prompt_hash. | |
| salt_b64u | No | Salt (base64url) for hash_only receipts; not needed for privacy=full. | |
| extra_keys | No | Extra public JWK / JWKS to trust for this call (e.g. a self-hosted signer). | |
| output_ids | No | Disclosed output token ids to check against output_token_hash. | |
| output_text | No | Displayed answer text to check against output_text_hash (if the receipt carries it). |