Skip to content

Instantly share code, notes, and snippets.

@spatializes
Last active May 18, 2024 01:29
Show Gist options
  • Save spatializes/22d96981d6d5977afc8954d89d9b1a6e to your computer and use it in GitHub Desktop.
Save spatializes/22d96981d6d5977afc8954d89d9b1a6e to your computer and use it in GitHub Desktop.
PolygonID LiveCredential v1.0
{
"$metadata": {
"type": "LiveCredential",
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/spatializes/b05c0d62d594f9d31dff3fc11822a8c4/raw/c8bbdd9390c63b5a81e1d1925d9bfc5afd42f3c9/PolygonID-LiveCredential-v1.json-ld" },
"version": "1.0"
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Verification of identity at live events",
"title": "LiveCredential",
"properties": {
"@context": {
"type": [
"string",
"array",
"object"
]
},
"expirationDate": {
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"issuanceDate": {
"format": "date-time",
"type": "string"
},
"issuer": {
"type": [
"string",
"object"
],
"format": "uri",
"properties": {
"id": {
"format": "uri",
"type": "string"
}
},
"required": [
"id"
]
},
"type": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"credentialSchema": {
"properties": {
"id": {
"format": "uri",
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"id",
"type"
],
"type": "object"
},
"credentialStatus": {
"description": "Allows the discovery of information about the current status of the credential, such as whether it is suspended or revoked.",
"title": "Credential Status",
"properties": {
"id": {
"description": "Id URL of the credentialStatus.",
"title": "Id",
"format": "uri",
"type": "string"
},
"type": {
"description": "Expresses the credential status type (method). The value should provide enough information to determine the current status of the credential.",
"title": "Type",
"type": "string"
}
},
"required": [
"id",
"type"
],
"type": "object"
},
"credentialSubject": {
"description": "Stores the data of the credential",
"title": "Credential subject",
"properties": {
"id": {
"description": "Stores the DID of the subject that owns the credential",
"title": "Credential subject ID",
"format": "uri",
"type": "string"
},
"walletAddress": {
"description": "Stores the wallet address of the subject that owns the credential",
"title": "Credential subject wallet address",
"type": "string"
},
"tokenId": {
"description": "Id of the token scanned to grant live event access",
"title": "Id of the access token",
"type": "string"
},
"tokenAddress": {
"description": "Contract address for the token used to provide live event access",
"title": "Token address",
"type": "string"
},
"eventId": {
"description": "Unique identifier for the live event",
"title": "Id of the live event",
"type": "string"
},
"scanTimestamp": {
"description": "Timestamp for when access is granted and identity is confirmed at the live event",
"title": "Timestamp when credential was issued",
"type": "string"
}
},
"required": [],
"type": "object"
}
},
"required": [
"@context",
"id",
"issuanceDate",
"issuer",
"type",
"credentialSchema",
"credentialSubject"
],
"type": "object"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment