verify_receipt
Verify Ed25519-signed citation receipts from LocalGov.jp: checks signature against official pubkey and expiry. Uses local crypto; optionally fetches live pubkey for trust anchoring.
Instructions
Verify an Ed25519-signed citation receipt previously issued by /api/cite/:grant_id. Confirms (a) signature matches LocalGov.jp pubkey, (b) receipt has not expired. Local crypto, no network. If pubkey is omitted, the live pubkey is fetched from /.well-known/citation-pubkey for trust anchoring.
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": "verify_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | Yes | The full receipt JSON envelope returned by /api/cite/:id | |
| expected_pubkey | No | Expected base64 Ed25519 public key. Omit to fetch the live key. |