# agora/demo/issue

https://toip.tools/spec/agora/demo/issue/0.1

In the demo only, a member asks a demo issuer (a nursing board, a city) for the credential that later gates their forums, such as a registered-nurse license with its claims.

- **Sent**: member → demo issuer
- **Kind**: Request and response. The response's type is `https://toip.tools/spec/agora/demo/issue/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:8`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/src/protocol/specs.ts#L8) as `DEMO_ISSUE`
- **Handled in**: [`projects/agora/src/issuers/issuers.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/src/issuers/issuers.ts)
- **Design**: [7.6 Trust Task types](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agora/docs/design.md#76-trust-task-types) in `projects/agora/docs/design.md`

Source documentation: “member DID → demo issuer: { credentialType, claims } → { credential }. Dev only.”

## Payload

projects/agora/src/protocol/specs.ts:14:

```ts
export interface DemoIssueRequest {
  credentialType: string;
  claims: Record<string, string>;
}
```

## Notes

A real issuer issues credentials its own way. Agora only needs the credential afterwards, to enroll.

## Document envelope

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

Shape of a document of this type:

```json
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/agora/demo/issue/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…"
  }
}
```

---

This is the Markdown version of https://toip.tools/spec/agora/demo/issue/0.1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
