Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions credentials/utopia-agency-employee-badge/credential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/identification/v1rc1"
],
"type": ["VerifiableCredential", "IdentificationDocumentCredential"],
"name": "Utopia Agency Employee Badge",
"issuer": {
"id": "https://employment.utopia.example",
"name": "Utopia Employment Agency"
},
"validFrom": "2026-01-15T00:00:00Z",
"validUntil": "2028-01-14T23:59:59Z",
"credentialSubject": {
"type": "Person",
"givenName": "Jordan",
"familyName": "Casey",
"worksFor": {
"id": "https://parks.utopia.example/",
"name": "Utopia Department of Parks and Recreation"
}
}
}
31 changes: 31 additions & 0 deletions credentials/utopia-agency-employee-badge/queries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{

@bparth24 bparth24 Jul 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@applesnort cc: @BigBlueHat @jameseaster

I would suggest to follow the structure for queries.json file from existing examples in the repo

an example:

{
  "default": {
    "type": "QueryByExample",
    "credentialQuery": [
      {
        "reason": "Please present your IdentificationDocumentCredential Verifiable Credential(s) to complete the verification process.",
        "example": {
          "@context": [
            "https://www.w3.org/ns/credentials/v2",
            "https://w3id.org/identification/v1rc1"
          ],
          "type": [
            "IdentificationDocumentCredential"
          ]
        },
        "acceptedCryptosuites": [
          "Ed25519Signature2020",
          "eddsa-rdfc-2022",
          "ecdsa-rdfc-2019",
          "bbs-2023",
          "ecdsa-sd-2023"
        ]
      }
    ]
  }
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.

    "worksFor": {
      "id": "https://parks.utopia.example/"
    }

"default": {
"type": "QueryByExample",
"credentialQuery": [
{
"reason": "Please present your IdentificationDocumentCredential Verifiable Credential(s) to complete the verification process.",
"example": {
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/identification/v1rc1"
],
"type": [
"IdentificationDocumentCredential"
],
"credentialSubject": {
"worksFor": {
"id": "https://parks.utopia.example/"
}
}
},
"acceptedCryptosuites": [
"Ed25519Signature2020",
"eddsa-rdfc-2022",
"ecdsa-rdfc-2019",
"bbs-2023",
"ecdsa-sd-2023"
]
}
]
}
}