Skip to content

Instantly share code, notes, and snippets.

@tmarkovski
Created September 29, 2022 16:10
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 tmarkovski/a7ad694d271d3a87f9af8ee272841d0b to your computer and use it in GitHub Desktop.
Save tmarkovski/a7ad694d271d3a87f9af8ee272841d0b to your computer and use it in GitHub Desktop.
Example VCs with extensions for Governance using Trust Registries (1 = honest party, 2 = bad actor)
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/bbs/v1",
"https://schema.trinsic.cloud/tm/iso18013-drivers-license/context"
],
"credentialSchema": [
{
"id": "https://schema.trinsic.cloud/tm/iso18013-drivers-license",
"type": "JsonSchemaValidator2018"
}
],
"credentialStatus": {
"id": "urn:revocation-registry:tm:T96PPNdpPuUDvBWRGjKcZ3#2",
"revocationListCredential": "urn:revocation-registry:tm:T96PPNdpPuUDvBWRGjKcZ3",
"revocationListIndex": "2",
"type": "RevocationList2020Status"
},
"credentialSubject": {
"birthDate": "1998-08-28",
"documentNumber": "542426814",
"expiryDate": "2025-01-01T00:00:00Z",
"givenName": "John",
"id": "urn:uuid:dc41f7aaa55045d38b199f4abc448ef5",
"issueDate": "2020-01-01T00:00:00Z",
"issuingAuthority": "CO",
"issuingCountry": "US",
"lastName": "Doe"
},
"id": "urn:uuid:7ce85b0437084fee88888b0870a48478",
"issuanceDate": "2022-09-29T12:42:11.1280246Z",
"issuer": "did:ion:test:EiC0qiV_y1waDQZLOh5bQ_R--hTmaWEYvIq4ben5Q7WaiQ",
"proof": {
"created": "2022-09-29T12:42:11Z",
"proofPurpose": "assertionMethod",
"proofValue": "scW8pkWzWgZ25PPGk9cc+q/ge2ntcmGBs1/pYIzGJtZtZZkaVLfoEkUYVaJlUEbCKJiitgotbcl6X1XHnPi8wmOgf6/7aZVVYqsFvgOeczI8bz7HbVW3L8bF3uTrlIUntR6kVMvftyk06hP9wyo/Dw==",
"type": "BbsBlsSignature2020",
"verificationMethod": "did:ion:test:EiC0qiV_y1waDQZLOh5bQ_R--hTmaWEYvIq4ben5Q7WaiQ#g2-public"
},
"type": [
"VerifiableCredential",
"Iso18013DriversLicense"
]
}
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/bbs/v1",
"https://schema.trinsic.cloud/tm/iso18013-drivers-license/context"
],
"credentialSchema": [
{
"id": "https://schema.trinsic.cloud/tm/iso18013-drivers-license",
"type": "JsonSchemaValidator2018"
}
],
"credentialStatus": {
"id": "urn:revocation-registry:tm:FzH6qowohG2DMxb7yJfLWi#3",
"revocationListCredential": "urn:revocation-registry:tm:FzH6qowohG2DMxb7yJfLWi",
"revocationListIndex": "3",
"type": "RevocationList2020Status"
},
"credentialSubject": {
"birthDate": "1998-08-28",
"documentNumber": "542426814",
"expiryDate": "2025-01-01T00:00:00Z",
"givenName": "John",
"id": "urn:uuid:c8834a1257df44a6bdf796fb07e2cfd1",
"issueDate": "2020-01-01T00:00:00Z",
"issuingAuthority": "CO",
"issuingCountry": "US",
"lastName": "Doe"
},
"id": "urn:uuid:48ed3b8e5df84c01a1a271833b6e942e",
"issuanceDate": "2022-09-29T12:43:07.6501340Z",
"issuer": "did:ion:test:EiBZG7eihMFPfFFFe3YEus9JPMT516TygAq2G90Y6MnR1g",
"proof": {
"created": "2022-09-29T12:43:07Z",
"proofPurpose": "assertionMethod",
"proofValue": "pVJw/LLZmVryo8UrtKSa3n26lAbjCn9Yi4DM/4z7FBODp0wfpruyljlB5qfxo1jNKgxLzGU1bGtuYgVK07jBqWCF1SHfVAUykKPcQyPVQy9xxlg0bX6+ajHuv1hzQ3KJukr6LuoARdnV/DchwGTqvQ==",
"type": "BbsBlsSignature2020",
"verificationMethod": "did:ion:test:EiBZG7eihMFPfFFFe3YEus9JPMT516TygAq2G90Y6MnR1g#g2-public"
},
"type": [
"VerifiableCredential",
"Iso18013DriversLicense"
]
}
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/bbs/v1",
"https://schema.trinsic.cloud/tm/iso18013-drivers-license/context",
"https://trinsic-id.github.io/vc-ext-governance/contexts/trust-registry/v0"
],
"credentialSchema": [
{
"id": "https://schema.trinsic.cloud/tm/iso18013-drivers-license",
"type": "JsonSchemaValidator2018"
}
],
"credentialStatus": {
"id": "urn:revocation-registry:tm:T96PPNdpPuUDvBWRGjKcZ3#3",
"revocationListCredential": "urn:revocation-registry:tm:T96PPNdpPuUDvBWRGjKcZ3",
"revocationListIndex": "3",
"type": "RevocationList2020Status"
},
"credentialSubject": {
"birthDate": "1998-08-28",
"documentNumber": "542426814",
"expiryDate": "2025-01-01T00:00:00Z",
"givenName": "John",
"id": "urn:uuid:758535cb7e784ab5b24578e40a710f83",
"issueDate": "2020-01-01T00:00:00Z",
"issuingAuthority": "CO",
"issuingCountry": "US",
"lastName": "Doe"
},
"id": "urn:uuid:608ed99b2c9c476fb676753e4e2ea302",
"issuanceDate": "2022-09-29T12:42:35.6784189Z",
"issuer": {
"governanceFramework": "https://example.com/authorized-issuers",
"id": "did:ion:test:EiC0qiV_y1waDQZLOh5bQ_R--hTmaWEYvIq4ben5Q7WaiQ",
"trustRegistry": "urn:egf:tm:e827627005c44178ab2573c7c1cc007c",
"type": "AuthoritativeMember"
},
"proof": {
"created": "2022-09-29T12:42:35Z",
"proofPurpose": "assertionMethod",
"proofValue": "r3Il5RHPSuuqMOelnN/fJAyiLlnOoyUc5nAbZ2y8XLCiAgHYT/3R3H6KmkhbFwByOgpDx0U0nu5jVtUdosyHuvwmEkqdY3N+9Ih8iwT/58ZraDkQNmUujUvkpkzQBsOpT7viR1Ije0CONZEOIyiLAQ==",
"type": "BbsBlsSignature2020",
"verificationMethod": "did:ion:test:EiC0qiV_y1waDQZLOh5bQ_R--hTmaWEYvIq4ben5Q7WaiQ#g2-public"
},
"type": [
"VerifiableCredential",
"Iso18013DriversLicense"
]
}
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/bbs/v1",
"https://schema.trinsic.cloud/tm/iso18013-drivers-license/context",
"https://trinsic-id.github.io/vc-ext-governance/contexts/trust-registry/v0"
],
"credentialSchema": [
{
"id": "https://schema.trinsic.cloud/tm/iso18013-drivers-license",
"type": "JsonSchemaValidator2018"
}
],
"credentialStatus": {
"id": "urn:revocation-registry:tm:FzH6qowohG2DMxb7yJfLWi#2",
"revocationListCredential": "urn:revocation-registry:tm:FzH6qowohG2DMxb7yJfLWi",
"revocationListIndex": "2",
"type": "RevocationList2020Status"
},
"credentialSubject": {
"birthDate": "1998-08-28",
"documentNumber": "542426814",
"expiryDate": "2025-01-01T00:00:00Z",
"givenName": "John",
"id": "urn:uuid:3afc5355f1fa4a978c61ad2fda2a6a43",
"issueDate": "2020-01-01T00:00:00Z",
"issuingAuthority": "CO",
"issuingCountry": "US",
"lastName": "Doe"
},
"id": "urn:uuid:a4da670c8eb04eaf8602a64276e1d5ed",
"issuanceDate": "2022-09-29T12:43:01.4704460Z",
"issuer": {
"governanceFramework": "https://example.com/authorized-issuers",
"id": "did:ion:test:EiBZG7eihMFPfFFFe3YEus9JPMT516TygAq2G90Y6MnR1g",
"trustRegistry": "urn:egf:tm:e827627005c44178ab2573c7c1cc007c",
"type": "AuthoritativeMember"
},
"proof": {
"created": "2022-09-29T12:43:01Z",
"proofPurpose": "assertionMethod",
"proofValue": "hoURV4ed1CDbZo8DKzjlF1gxVC3aZGTcWWHmLkHY3+3ZdtZR6w1ERUasohONWn+QTa9Mtan5AK7cCYXxg81NF+0y/piLxhQ9zF0kfzGgmdYpThJQHaNJ/qdA7Xgyb1qvVtDygLKFqcDTyFmpI7O1lQ==",
"type": "BbsBlsSignature2020",
"verificationMethod": "did:ion:test:EiBZG7eihMFPfFFFe3YEus9JPMT516TygAq2G90Y6MnR1g#g2-public"
},
"type": [
"VerifiableCredential",
"Iso18013DriversLicense"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment