trail/disclose
https://toip.tools/spec/trail/disclose/0.1
A log's controller sends a reader a bundle: the KEL, the chosen trails with the bodies picked for this reader, and the DID bindings. The reader verifies the bundle and reviews the entries, and replies with an empty object.
- Sent
- log controller (for example an agent) reader (for example the agent's principal)
- Kind
- Request and response. The response's type is
https://toip.tools/spec/trail/disclose/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:16asdisclose- Handled in
packages/eventlog/src/tasks.ts- Design
- 12.1 `projects/agents` (the main consumer) in
projects/trail/docs/design.md
Payload
{ bundle: Bundle }
Response payload
Record<string, never>
Types it uses
export interface Bundle {
kel: string;
trails: { id: Qb64; stream: string; bodies?: Body[] }[];
bindings: DidBinding[];
}
Document envelope
Every Trust Task uses this envelope. Replace payload with the structure shown above.
{
"id": "urn:uuid:…",
"type": "https://toip.tools/spec/trail/disclose/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…"
}
}