toip.tools

trail/witness/receipts

https://toip.tools/spec/trail/witness/receipts/0.1

A log's controller passes each witness the receipts the other witnesses signed, so every witness ends up holding every receipt. The witness stores them and replies with an empty object.

Sent
log controller witness
Kind
Request and response. The response's type is https://toip.tools/spec/trail/witness/receipts/0.1#response.
Envelope
Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
Defined in
packages/eventlog/src/tasks.ts:13 as receipts
Handled in
packages/eventlog/src/tasks.ts
Design
9.3 Getting receipts around in projects/trail/docs/design.md

Payload

TypeScriptAs the handler declares it, in packages/eventlog/src/tasks.ts
{ stream: string }

Response payload

TypeScriptAs the handler declares it, in packages/eventlog/src/tasks.ts
Record<string, never>

Document envelope

Every Trust Task uses this envelope. Replace payload with the structure shown above.

JSONShape of a document of this type
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/trail/witness/receipts/0.1",
  "issuer": "did:key:… (the sender)",
  "recipient": "did:key:… (the receiver)",
  "issuedAt": "2026-11-06T18:00:00.000Z",
  "payload": { … },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "verificationMethod": "did:key:…#…",
    "proofPurpose": "assertionMethod",
    "proofValue": "z…"
  }
}