Once a verifiable credential is authored and associated with a learner (including a learner DID), the issuer signs the verifiable credential. In its implementation, the DCC uses jws-2020 signature suite, which enables use of linked data signatures with well-known and tested JOSE signing implementations.
Issuer image (by Devendra Karkar, IN, from the Noun Project):
VC1 (issuer image is embedded):
const exampleVc = {
'@context': [
'https://www.w3.org/2018/credentials/v1',
'https://w3id.org/security/suites/ed25519-2020/v1',
'https://w3id.org/dcc/v1'
],
id: 'https://cred.127.0.0.1.nip.io/api/issuance/12',
type: [ 'VerifiableCredential', 'Assertion' ],
issuer: {
id: 'did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv',
name: 'Example University',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAA0CAAAAADtDTRwAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQflCQ8XFAjmMrgkAAAEiElEQVRIx+2We0xbVRzHW4rlllugQOnCaEvKIwtMUMyAhfFYMpwdcUsxURfYI+JCBsQ5DaVdho+BoTCjLqwQNWg0yIYPmIwtghkLMhgTjMk6KDB5BZD3CoXRUs4593pu20FBgfqnid8/evv7/c7nnN/v/s45uayVTYTQZhHWZoGb9dAq4DRiOhTXMzgwMDBodBpZOsQJEGNJP6ApLOQM8sKOzKysrNeFz370MdYtZ5DnExchRIZoFy8vgRsrzewMkrAAVsBsVHLn7w1hAS3QqVUWAACG2OPIouR/5kBsgcT9aXg0v9zUiUbDdg07hch5z+3Zk3SHxi+sjFSbnUK8j7yU6JpZXVV1pSKcf8WJWpYP4lo6xYQ7FunOSTNth0DQsXtXOzC3NzTa1LdNYhD2qf19fHcoeylr67G2Lh+gsYsh5Kstd9L4QcUjaPttCajZiiji4I0lml66KSciP5/5G7QBQQs1+91iK+fo6Xv3pqi5qr1uCd8b0RYIMjcpeGGlExT4MdbTI7oWUJPacN6Rn01oEwS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DBWFKI1AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA5LTE1VDIzOjIwOjA4LTA0OjAwJ0kaiQAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAAASUVORK5CYII='
},
issuanceDate: '2021-09-06T00:00:00.000Z',
credentialSubject: {
id: 'did:example:abc123',
name: 'Ian Malcom',
hasCredential: {
id: 'https://cred.127.0.0.1.nip.io/api/claim/9c38ea72-b791-4510-9f01-9b91bab8c748',
name: 'GT Guide',
type: [
'EducationalOccupationalCredential'
],
description: 'The holder of this credential is qualified to lead new student orientations.',
competencyRequired: 'Demonstrated knowledge of key campus locations, campus services, and student organizations.',
credentialCategory: 'badge'
}
}
}
Example did:key
DID and the corresponding public/private key pair:
const keyPair = {
id: 'did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv#z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv',
controller: 'did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv',
type: 'Ed25519VerificationKey2020',
publicKeyMultibase: 'z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv',
privateKeyMultibase: 'zrv2rP9yjtz3YwCas9m6hnoPxmoqZV72xbCEuomXi4wwSS4ShekesADYiAMHoxoqfyBDKQowGMvYx9rp6QGJ7Qbk7Y4'
}
Signed VC1 (by that key pair), and wrapped in a Verifiable Presentation (for encoding):
const vp1 = {
"@context": "https://www.w3.org/2018/credentials/v1",
"type": "VerifiablePresentation",
"verifiableCredential": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/security/suites/ed25519-2020/v1",
"https://w3id.org/dcc/v1"
],
"id": "https://cred.127.0.0.1.nip.io/api/issuance/12",
"type": [
"VerifiableCredential",
"Assertion"
],
"issuer": {
"id": "did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa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56eq8PFVucMBZpTIvSpCjwlaOIEKpVJ4NCM7FlvqkW7Iq314LLo3+gl83NT4+PnJg3yJCVLb0/sT4+MR96WsIocV9B0ZwaKrBQ0sjuNpK6kuOJFQmCw4lkoxgBZ5xCQqRyUKCXDLxvWTcT4QGy2ShUnY55dB9qD8jkp3OSXGVf2PB1u1jvJjs7BjesVvM7qmSu6bknJb55nRBxw0D56MVFvo6WUtbF9ULC2i6QKi3TkvXktdpiyJyFq7fY4ZohZmqc6+xDoLdwgsUdUHYbR1E1bjXUWZFxDT4H/kvIPMxqYCuJ69Zu496/ApputCvx9b9a2Q9DVIjH63rPlhoDktsbishikYYa6ZacKqt7ZTg6gwz8WgRUdLWnBjcZAQOCFXr68IhSYLFfeUxzqvQnc0lSS6b9w6e+PFRLosgSY6Ld7XjTqYriLfLtVptaXg8c15yfDRlWm2ZxieDOS/x4aU4VK4itLTDPWYoJKv69PoeXVJUh0734KikpVev720Rp+p0uo6oJF2PXt/3A/+8Aawh77qzvYRYvlxXX/wgOD6M5cNxY3yuXMYnFLB5554gAKK7xcWaIkYa60NTbDWKbE6NPVRc3IqYDyeMTPY97Gc+irbVYP/DvkmMAEOqyN9piV6eB6wV09eqc05LXWliEkPUvxC+2P8C66mkboeuWsgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDktMTVUMjM6MjA6MDgtMDQ6MDBWFKI1AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA5LTE1VDIzOjIwOjA4LTA0OjAwJ0kaiQAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAAASUVORK5CYII="
},
"issuanceDate": "2021-09-06T00:00:00.000Z",
"credentialSubject": {
"id": "did:example:abc123",
"name": "Ian Malcom",
"hasCredential": {
"id": "https://cred.127.0.0.1.nip.io/api/claim/9c38ea72-b791-4510-9f01-9b91bab8c748",
"name": "GT Guide",
"type": [
"EducationalOccupationalCredential"
],
"description": "The holder of this credential is qualified to lead new student orientations.",
"competencyRequired": "Demonstrated knowledge of key campus locations, campus services, and student organizations.",
"credentialCategory": "badge"
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2021-09-16T03:02:08Z",
"verificationMethod": "did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv#z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv",
"proofPurpose": "assertionMethod",
"proofValue": "zxFfvBhwcFa99uLFaJgJ3VYFfomD5qQgpb6vvKR2TgRjHbB4WcCS8mLfvNdu9WrDUTt1m6xZHVc7Cjux5RkNynfc"
}
}
}
Verifiable Presentation, VP1 CBOR-LD encoded (4164 characters - close to the useful size limit of QR codes):
VP1-B3ECQDIYACEMHIGDODB6KOAMDCEKHO2DUORYHGORPF53TG2LEFZXXEZZPMRRWGL3WGEMHBAQCPASWG4TFMQXDCMRXFYYC4MBOGEXG42LQFZUW6L3BOBUS62LTON2WC3TDMUXTCMQYOKSRQ5AYPYMNIGTBIKZ3AGG4DDRBRXSYIF5C7JPGI3BS4XPIPY3I27DDIH5IYQS5IAA2NOLDLVD3CFI45KEMVRZHJBLURUK25XHXNGYO376ORNJAVSCG52T432A32K6FGUAHYXGEAMMOBAYZAQAVQIXNAHKYNS2CRLDSFB2YN55MV4ENH3ESCEE736724AMS5B4DM3IYDOQRSWBC5UA5LBWLIKFMOIUHLBXXVSXQRU7MSIIQT7P37LQBSLUHQNTNDAN2CGIYOWBBQ3AYQIMLZIYYOBZGI2LEHJSXQYLNOBWGKOTBMJRTCMRTDCUKMGDQQIBHQRDDOJSWILRRGI3S4MBOGAXDCLTONFYC42LPF5QXA2JPMNWGC2LNF44WGMZYMVQTOMRNMI3TSMJNGQ2TCMBNHFTDAMJNHFRDSMLCMFRDQYZXGQ4BQ5MBDCFBRGTYLNCGK3LPNZZXI4TBORSWIIDLNZXXO3DFMRTWKIDPMYQGWZLZEBRWC3LQOVZSA3DPMNQXI2LPNZZSYIDDMFWXA5LTE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NRSEKVSZMRDVE2DEI5KTMWJTJJWFSWCSNRAUISLXJVVEK5CNIRVXITKUKZKU22SNGZGWUQJWJVCGO5CNIRITMTKEIJLUMS2JGFAUCQKBJJMFERSXJBJGWWKYKJWE63JROZNEO3DNMVIUC6KNIREXQTCUIE2UYVCFGFLEISL2J5VES52PNJATITCUIEYE62SBO5FDA23BNFIUCQKBIJWDAUSWNAYFKMRZNVSEQZDIMNWVKQK2GI2XMYSXKV2GGMSOPFNFOVTVMMZGQ5TEJ44EI5T2GRAUCQKBIFJVKVSPKJFTKQ2ZJFET2GFOOJCXQYLNOBWGKICVNZUXMZLSONUXI6I
Turned into an alphanumeric mode QR code:
And here's the same VP, but with the issuer image linked (instead of embedded);
const exampleVp2 = {
"@context": "https://www.w3.org/2018/credentials/v1",
"type": "VerifiablePresentation",
"verifiableCredential": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/security/suites/ed25519-2020/v1",
"https://w3id.org/dcc/v1"
],
"id": "https://cred.127.0.0.1.nip.io/api/issuance/12",
"type": [
"VerifiableCredential",
"Assertion"
],
"issuer": {
"id": "did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K8eCa7HzrnuYLZv",
"name": "Example University",
"image": "https://user-images.githubusercontent.com/947005/133544904-29d6139d-2e7b-4fe2-b6e9-7d1022bb6a45.png"
},
"issuanceDate": "2021-09-06T00:00:00.000Z",
"credentialSubject": {
"id": "did:example:abc123",
"name": "Ian Malcom",
"hasCredential": {
"id": "https://cred.127.0.0.1.nip.io/api/claim/9c38ea72-b791-4510-9f01-9b91bab8c748",
"name": "GT Guide",
"type": [
"EducationalOccupationalCredential"
],
"description": "The holder of this credential is qualified to lead new student orientations.",
"competencyRequired": "Demonstrated knowledge of key campus locations, campus services, and student organizations.",
"credentialCategory": "badge"
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2021-09-16T03:02:08Z",
"verificationMethod": "did:key:z6Mktpn6cXks1PBKLMgZH2VaahvCtBMF6K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ZLOOQQG64TJMVXHIYLUNFXW44ZODCXGQR2UEBDXK2LEMUMK42SJMFXCATLBNRRW63IYYKBBUYJVLIAAAGGGUMMHBAQZAQAVQIXNAHKYNS2CRLDSFB2YN55MV4ENH3ESCEE736724AMS5B4DM3IYDOQRSGFMQIBHQW3VONSXELLJNVQWOZLTFZTWS5DIOVRHK43FOJRW63TUMVXHILTDN5WS6OJUG4YDANJPGEZTGNJUGQ4TANBNGI4WINRRGM4WILJSMU3WELJUMZSTELLCGZSTSLJXMQYTAMRSMJRDMYJUGUXHA3THDCXHERLYMFWXA3DFEBKW42LWMVZHG2LUPE
Multiple Credentials QR Code:
Multiple Credentials, one with invalid signature:
Non-revoked credential with status:
const exampleNonrevokedVc = {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/security/suites/ed25519-2020/v1",
"https://w3id.org/dcc/v1",
"https://w3id.org/vc/status-list/2021/v1"
],
"type": [
"VerifiableCredential",
"Assertion"
],
"issuer": {
"id": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"name": "Example University",
"url": "https://cs.example.edu",
"image": "https://user-images.githubusercontent.com/947005/133544904-29d6139d-2e7b-4fe2-b6e9-7d1022bb6a45.png"
},
"issuanceDate": "2020-08-16T12:00:00.000+00:00",
"credentialSubject": {
"id": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"name": "Kayode Ezike",
"hasCredential": {
"type": [
"EducationalOccupationalCredential"
],
"name": "GT Guide",
"description": "The holder of this credential is qualified to lead new student orientations."
}
},
"expirationDate": "2025-08-16T12:00:00.000+00:00",
"credentialStatus": {
"id": "https://digitalcredentials.github.io/credential-status-playground/JWZM3H8WKU#2",
"type": "StatusList2021Entry",
"statusPurpose": "revocation",
"statusListIndex": 2,
"statusListCredential": "https://digitalcredentials.github.io/credential-status-playground/JWZM3H8WKU"
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2022-08-19T06:55:17Z",
"verificationMethod": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC#z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"proofPurpose": "assertionMethod",
"proofValue": "z4EiTbmC79r4dRaqLQZr2yxQASoMKneHVNHVaWh1xcDoPG2eTwYjKoYaku1Canb7a6Xp5fSogKJyEhkZCaqQ6Y5nw"
}
};
Non-revoked credential with status QR code:
Revoked credential with status:
const exampleRevokedVc = {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/security/suites/ed25519-2020/v1",
"https://w3id.org/dcc/v1",
"https://w3id.org/vc/status-list/2021/v1"
],
"type": [
"VerifiableCredential",
"Assertion"
],
"issuer": {
"id": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"name": "Example University",
"url": "https://cs.example.edu",
"image": "https://user-images.githubusercontent.com/947005/133544904-29d6139d-2e7b-4fe2-b6e9-7d1022bb6a45.png"
},
"issuanceDate": "2020-08-16T12:00:00.000+00:00",
"credentialSubject": {
"id": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"name": "Kayode Ezike",
"hasCredential": {
"type": [
"EducationalOccupationalCredential"
],
"name": "GT Guide",
"description": "The holder of this credential is qualified to lead new student orientations."
}
},
"expirationDate": "2025-08-16T12:00:00.000+00:00",
"credentialStatus": {
"id": "https://digitalcredentials.github.io/credential-status-playground/JWZM3H8WKU#3",
"type": "StatusList2021Entry",
"statusPurpose": "revocation",
"statusListIndex": 3,
"statusListCredential": "https://digitalcredentials.github.io/credential-status-playground/JWZM3H8WKU"
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2022-08-19T06:58:29Z",
"verificationMethod": "did:key:z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC#z6MkhVTX9BF3NGYX6cc7jWpbNnR7cAjH8LUffabZP8Qu4ysC",
"proofPurpose": "assertionMethod",
"proofValue": "z33Wy3kvx8UEoPHdQWYHVCXAjW19AZpA88NnikwfJqcH9oNmHyqSkt6wiVS31ewytAX7m2vneVEm8Awo4xzqKHYUp"
}
};