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:8asDEMO_ISSUE- Handled in
projects/agora/src/issuers/issuers.ts- Design
- 7.6 Trust Task types in
projects/agora/docs/design.md
Source documentation: “member DID → demo issuer: { credentialType, claims } → { credential }. Dev only.”
Payload
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.
{
"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…"
}
}