toip.tools

todo/roster

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

The admin sends the list's newly signed roster after someone joins or is removed. A device adopts a roster only if the list's key signed it, its version is higher, and it keeps every earlier removal.

Sent
admin's device every current member's device, and once to a member just removed
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:9 as ROSTER
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
{ roster: RosterDoc }

Types it uses

TypeScriptprojects/shared-todo/src/todo/roster.ts:23
/**
 * The list's signed record of who is in it (design v2 §4.4). Only the list's key signs it,
 * every change bumps `version`, and a removal is never undone.
 */
export interface RosterDoc {
  type: "todo/roster";
  issuer: string;
  list: string;
  name: string;
  version: number;
  issuedAt: string;
  members: RosterMember[];
  proof?: Proof;
}

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