Enabling receipts
Pass asigningKeyPath / signing_key_path to init():
- TypeScript
- Python
crypto module — no extra dependencies needed.
What receipts add to events
When enabled, three fields are added to each event before it’s sent:| Field | Description |
|---|---|
output_hash | SHA-256 hash of the event’s output (canonical JSON) |
context_hash | SHA-256 hash chain linking events in sequence — hash(previous_hash + canonical(event)) |
signature | Ed25519 signature over the canonical event, with algorithm, key_id, and value (base64) |