Action receipts.
When software acts for someone, books a seat, sends a message, files a form, there should be a record anyone can check later: who authorised it, what was asked, what was done, and what confirmed it. An action receipt is that record, signed, and linked to the one before it.
What a receipt proves
- Who signed the record: the holder of the issuer’s key.
- That nothing in it has changed since, down to a single character.
- In a chain, that no receipt was removed, inserted or reordered.
- If the person who authorised the action signed too, that they approved exactly that request.
- It does not prove the action happened as described. That rests on the signer, and on the confirmation the record cites, such as a booking reference you can check with whoever issued it.
Make one
Fill in an action and sign it. The keys are made in this tab and never leave it. Sign again to add the next action to the same chain.
Check one
The format
Profile kitaab-action/1. Each receipt is an ordinary OCX receipt: canonical CBOR, signed with Ed25519, so any OCX verifier accepts it. The record it binds is kept beside it as JSON, split into three parts, each hashed with OCX’s own domain prefixes over canonical JSON (keys sorted, no spaces, non-ASCII escaped, as Python’s json.dumps(sort_keys=True, separators=(",", ":"))).
program_hash (1)- The software that acted
{ profile, agent } input_hash (2)- Who authorised it and what was asked
{ profile, authorised, request } output_hash (3)- What was done, and what confirmed it
{ profile, action, result } cycles_used (4)- How long it took, in seconds (at least 1)
started_at, finished_at (5, 6)- When it started and finished, in Unix seconds
issuer_id (7)- Who runs the software, such as a domain and a name
signature (8)- Ed25519 by the issuer’s key over the other fields
prev_receipt_hash (9)- SHA-256 of the receipt before it, so nothing can be removed or reordered unseen
witness_signatures (11)- Optional: the person who authorised it signs “kitaab-action/1|approved|” + input_hash
A record
{
"agent": { "name": "Booking helper", "operator": "Example Travel" },
"authorised": { "by": "Asha", "how": "Said yes on a recorded call",
"public_key": "<hex, only if they signed>" },
"request": "Book 2 seats on the 7:40 bus to Pune on 3 November",
"action": { "type": "place_order", "target": "Example Bus Co. booking site",
"details": "2 seats at ₹640 each" },
"result": { "status": "done", "confirmation": "PNR EX2093",
"confirmed_by": "Example Bus Co." },
"started_at": "2026-11-01T04:30:00Z",
"finished_at": "2026-11-01T04:30:20Z"
}A bundle
{ "profile": "kitaab-action/1", "issuer_id": "…", "public_key": "<hex>",
"entries": [ { "receipt": "<hex CBOR>", "record": { … } }, … ] }In code
import { sign, checkBundle, bundleOf, newKey } from 'https://kitaab.live/agents/receipts/kitaab-action.mjs';
const key = await newKey(); // keep key.priv in your software, never in a page
const r = await sign(record, { key, issuer: 'example.com/booking-helper', prev });
const bundle = bundleOf('example.com/booking-helper', key.pub, [r]);
const verdict = await checkBundle(bundle); // { ok, entries: [...] }kitaab-action.mjs is one file with no build step; it needs @noble/ed25519. The format and the code are CC BY 4.0 and free to use. Records can hold personal details: keep them with the people they concern, and share a receipt’s hash, not its record, where that is enough.