Skip to content

Instantly share code, notes, and snippets.

@kayaelle
Created May 9, 2021 17:40
Show Gist options
  • Save kayaelle/c6caf31e1b2a55753c2c7015a8a6a6ae to your computer and use it in GitHub Desktop.
Save kayaelle/c6caf31e1b2a55753c2c7015a8a6a6ae to your computer and use it in GitHub Desktop.
Prioritize Open Badge as VC
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/openbadges/v2"
],
"type": [
"VerifiableCredential",
"OpenBadge"
],
"Issuer": "did:example:issuer",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"id": "did:example:recipient",
"Assertion":"https://example.com/assertions/1001",
"BadgeClass": {
"name": "Robotics Badge",
"image": "data:image/png;base64,...",
"description": "Awarded to people who have built a robot",
"criteria": {
"narrative": "Build a Robot and post a picture of it"
},
"Issuer": {
"name": "An Example Badge Issuer",
"image": "https://example.org/logo.png",
"url": "https://example.org",
"email": "issuer@example.org"
}
},
"evidence": {
"id": "https://example.org/beths-robot-work.html",
"name": "My Robot",
"description": "A webpage with a photo and a description of the robot the student built for this project.",
"narrative": "The student worked very hard to assemble and present a robot. She documented the process with photography and text.",
"genre": "ePortfolio"
}
},
"proof": {
"type": "PROOF-Type",
"created": "DATE OF SIGNING",
"proofPurpose": "assertionMethod",
"verificationMethod": "ISSUER-SIGNING-KEY-DID-LINK",
"jws": "SIGNATURE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment