From 92cc0ee26f36926d8527d0aa88d0ca4e5ed124ad Mon Sep 17 00:00:00 2001 From: applesnort Date: Tue, 30 Jun 2026 18:27:35 -0400 Subject: [PATCH] feat: add utopia-agency-employee-badge IdentificationDocument credential Simple employee badge using the identification vocab (v1rc1): givenName + familyName from the Person type, agency as an inline schema.org/memberOf term. Issued by Utopia DMV for demo purposes; ports to CHP and other CA agencies in follow-up work (DB-181). Depends on DB-724 (identification-vocab context registration in vc-playground) before this credential can be issued via the playground. --- .../credential.json | 26 +++++++++++++++++++ .../utopia-agency-employee-badge/queries.json | 19 ++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 credentials/utopia-agency-employee-badge/credential.json create mode 100644 credentials/utopia-agency-employee-badge/queries.json diff --git a/credentials/utopia-agency-employee-badge/credential.json b/credentials/utopia-agency-employee-badge/credential.json new file mode 100644 index 0000000..95e5bc4 --- /dev/null +++ b/credentials/utopia-agency-employee-badge/credential.json @@ -0,0 +1,26 @@ +{ + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://w3id.org/identification/v1rc1", + { + "agency": "https://schema.org/memberOf" + } + ], + "id": "urn:uuid:b3d7c2e1-4f5a-6b7c-8d9e-0a1b2c3d4e5f", + "type": ["VerifiableCredential", "IdentificationDocumentCredential"], + "name": "Utopia Agency Employee Badge", + "issuer": { + "id": "https://www.utopia-dmv.example", + "type": ["Profile"], + "name": "Utopia Department of Motor Vehicles" + }, + "validFrom": "2026-01-15T00:00:00Z", + "validUntil": "2028-01-14T23:59:59Z", + "credentialSubject": { + "id": "urn:uuid:d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a", + "type": "Person", + "givenName": "Jordan", + "familyName": "Casey", + "agency": "Utopia Highway Patrol" + } +} diff --git a/credentials/utopia-agency-employee-badge/queries.json b/credentials/utopia-agency-employee-badge/queries.json new file mode 100644 index 0000000..006a33d --- /dev/null +++ b/credentials/utopia-agency-employee-badge/queries.json @@ -0,0 +1,19 @@ +{ + "web": { + "VerifiablePresentation": { + "query": [{ + "type": "QueryByExample", + "credentialQuery": [{ + "reason": "An Agency Employee Badge is required.", + "example": { + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://w3id.org/identification/v1rc1" + ], + "type": "IdentificationDocumentCredential" + } + }] + }] + } + } +}