Skip to content

Instantly share code, notes, and snippets.

@kamescg
Created April 28, 2023 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamescg/1aedec06e63dd2239ee5b628916dc6f6 to your computer and use it in GitHub Desktop.
Save kamescg/1aedec06e63dd2239ee5b628916dc6f6 to your computer and use it in GitHub Desktop.
Impact Network Generic Verifiable Credential
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/credentials/impact-network-education-credential.json",
"title": "Generic Impact Network Credential",
"description": "Verifiable credential for education category in the Impact Network",
"type": "object",
"properties": {
"@context": {
"type": "string",
"format": "uri"
},
"type": {
"type": "array",
"items": [
{
"type": "string",
"enum": ["VerifiableCredential"]
},
{
"type": "string",
"enum": ["ImpactNetworkCredential"]
}
]
},
"credentialSubject": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"category": {
"type": "string"
},
"action": {
"type": "string"
},
"partner": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["id", "category", "action", "partner", "description"]
},
"issuer": {
"type": "string",
"format": "uri"
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
}
},
"required": ["@context", "type", "credentialSubject", "issuer", "issuanceDate"],
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment