toip.tools

todo/leave

https://toip.tools/spec/todo/leave/0.1

A member who isn't the admin tells the list's admins they are leaving. The admin's device removes them and sends a newly signed roster.

Sent
member's device every admin's device
Kind
One-way. No response is expected; any answer is a separate message.
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
projects/shared-todo/src/todo/specs.ts:12 as LEAVE
Handled in
projects/shared-todo/src/todo/device.ts
Design
4.3 Messages in projects/shared-todo/docs/design.md

Payload

TypeScriptAs the handler declares it, in projects/shared-todo/src/todo/device.ts
{ list: string }

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/todo/leave/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…"
  }
}