toip.tools

agora/group/receipt

https://toip.tools/spec/agora/group/receipt/0.1

A member asks a registrar for a signed receipt that they are in a group, to restore their membership on a new device from a backup code.

Sent
member registrar
Kind
Request and response. The response's type is https://toip.tools/spec/agora/group/receipt/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
projects/agora/src/protocol/specs.ts:10 as GROUP_RECEIPT
Handled in
projects/agora/src/registrar/registrar.ts
Design
7.6 Trust Task types in projects/agora/docs/design.md

Source documentation: “member DID → registrar: { group } → a signed agora/group-receipt for the sender, if they're a member.”

Payload

A payload declaration is not available on this page. Follow the source links above for the handler's requirements.

Response payload

TypeScriptprojects/agora/src/protocol/documents.ts:207
/** The receipt a registrar keeps for a member, and sends only to them (design §7.6). */
export interface GroupReceipt {
  type: "agora/group-receipt";
  issuer: string;
  issuedAt: string;
  group: string;
  subject: string;
  index: number;
  leaf: { commitment: string; schemaId: string; validUntilDay: number; registeredDay: number; attrs: string[] };
  /** The credential's plain values per slot, so the member's client can explain the gate in words. */
  values: Record<string, string>;
  proof?: unknown;
}

Notes

The request carries { group }. The registrar answers only if the sender is a member. Joining and rotating use anon-membership/enroll instead.

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/agora/group/receipt/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…"
  }
}