Verify RFC 8785 & Ed25519 Audit Receipt Integrity
verify_audit_receiptRecompute the RFC 8785 canonical SHA-256 digest and verify any Ed25519 signature (using the active server key or caller-supplied JWKS public_key_x_b64url) for an anonymized payload and audit_receipt from evaluate_timesheet. USE THIS TOOL WHEN proving zero tampering on an existing receipt; DO NOT use to run payroll math (evaluate_timesheet). Read-only, stateless, zero-PII; returns verified=false on mismatch without throwing.
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": {
"payload": "<payload>",
"audit_receipt": "<audit_receipt>"
},
"name": "verify_audit_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Exact anonymized JSON request object previously submitted to evaluate_timesheet (key order and UTC offset format may vary; canonicalized via RFC 8785 JCS). Must contain zero employee PII (triggers PII_PAYLOAD_REJECTED otherwise). | |
| audit_receipt | Yes | Receipt object returned by evaluate_timesheet containing receipt_id, evaluated_at_utc, ruleset_version, 64-char hex input_sha256, and optional Ed25519 signature fields (signature_alg, key_id, signature_b64url). | |
| public_key_x_b64url | No | Optional unpadded base64url-encoded 32-byte Ed25519 public key (the 'x' field from GET /.well-known/jwks.json). Required only for offline signature checks when the server has no active signing key configured; ignored for unsigned receipts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verified | Yes | Overall integrity verdict: True iff hash_verified is True and (no signature is present OR signature_verified is True). | |
| disclaimer | No | Mandatory non-legal-advice UPL disclaimer. | Deterministic statutory calculation for audit assistance only; not legal advice. |
| receipt_id | Yes | Receipt identifier from the supplied AuditReceipt. | |
| hash_verified | Yes | True iff recomputed RFC 8785 SHA-256 matches audit_receipt.input_sha256. | |
| computed_sha256 | Yes | Recomputed RFC 8785 canonical JSON SHA-256 hex digest of payload. | |
| expected_sha256 | Yes | SHA-256 hex digest claimed inside audit_receipt.input_sha256. | |
| ruleset_version | Yes | Ruleset version recorded in the supplied AuditReceipt. | |
| signature_present | Yes | True when the receipt includes an Ed25519 cryptographic signature. | |
| signature_verified | No | True/False when an Ed25519 signature was verified against an active or supplied public key; null when the receipt is unsigned or no matching public key is available. |