All JWT-VC examples under a tab named "Verifiable Credential (as JWT)" are not compliant to the Proof Formats section 6.3.
Each property has to get transformed into a JWT claim without being duplicated inside a JWT vc claim.
issuanceDate -> nbf,
issuer -> iss,
credentialSubject.id -> sub,
id -> jti. Need to change.
For example, Example 4 should be as below:
{
"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"
}
}
},
"iss": "https://example.edu/issuers/565049",
"nbf": 1262304000,
"jti": "http://example.edu/credentials/3732",
"sub": "did:example:ebfeb1f712ebc6f1c276e12ec21"
}
This transformation rule might change in v2 but can we please change this in v1.1 because it is very misleading?