Skip to content

Instantly share code, notes, and snippets.

@nikosft
Last active April 1, 2021 18:50
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 nikosft/d593202f4d16aaa1f94c06fdd99729c5 to your computer and use it in GitHub Desktop.
Save nikosft/d593202f4d16aaa1f94c06fdd99729c5 to your computer and use it in GitHub Desktop.
A VC inside a JWT that uses Proof-of-Possession key semantics as defined in RFC7800
{
"jti": "http://example.edu/credentials/3732",
"iss": "https://example.com/keys/foo.jwk",
"nbf": 1541493724,
"iat": 1541493724,
"exp": 1573029723,
"cnf":{
"jwk":{
"kty": "EC",
"use": "sig",
"crv": "P-256",
"x": "18wHLeIgW9wVN6VD1Txgpqy2LszYkMf6J8njVAibvhM",
"y": "-V4dS4UaLMgP_4fY4j8ir7cl1TXlFdAgcx55o7TkcSA"
}
},
"vc": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"credentialSubject": {
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment