-
Notifications
You must be signed in to change notification settings - Fork 9
feat: add utopia-agency-employee-badge IdentificationDocument credential #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
92cc0ee
f60ce60
c19a72a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,25 @@ | ||||||||||||
| { | ||||||||||||
| "@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", | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Not needed, either. |
||||||||||||
| "type": ["VerifiableCredential", "IdentificationDocumentCredential"], | ||||||||||||
| "name": "Utopia Agency Employee Badge", | ||||||||||||
| "issuer": { | ||||||||||||
| "id": "https://www.utopia-records.example", | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| "name": "Utopia Central Records Office" | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| }, | ||||||||||||
| "validFrom": "2026-01-15T00:00:00Z", | ||||||||||||
| "validUntil": "2028-01-14T23:59:59Z", | ||||||||||||
| "credentialSubject": { | ||||||||||||
| "id": "urn:uuid:d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a", | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Don't use unique identifiers for people unless absolutely necessary, it creates a tracking vector for the person. |
||||||||||||
| "type": "Person", | ||||||||||||
| "givenName": "Jordan", | ||||||||||||
| "familyName": "Casey", | ||||||||||||
| "agency": "Utopia Department of Parks and Recreation" | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @applesnort cc: @BigBlueHat @jameseaster I would suggest to follow the structure for an example:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add this, because you're looking for a very specific type of identification badge that specifies that the individual works for a particular agency. |
||
| "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" | ||
| } | ||
| }] | ||
| }] | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be inlining context values in long-lived examples.