Skip to content

Commit 2414ad3

Browse files
committed
Sync and fix bugs in v2 context.
1 parent 3b0e073 commit 2414ad3

File tree

1 file changed

+20
-12
lines changed
  • contexts/credentials

1 file changed

+20
-12
lines changed

contexts/credentials/v2

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
"id": "@id",
77
"type": "@type",
8+
89
"kid": {
910
"@id": "https://www.iana.org/assignments/jose#kid",
1011
"@type": "@id"
@@ -43,17 +44,20 @@
4344
},
4445
"cnf": {
4546
"@id": "https://www.iana.org/assignments/jwt#cnf",
46-
"@context": {
47-
"@protected": true,
48-
"kid": {
49-
"@id": "https://www.iana.org/assignments/jwt#kid",
50-
"@type": "@id"
51-
},
52-
"jwk": {
53-
"@id": "https://www.iana.org/assignments/jwt#jwk",
54-
"@type": "@json"
47+
"@context": [
48+
null,
49+
{
50+
"@protected": true,
51+
"kid": {
52+
"@id": "https://www.iana.org/assignments/jwt#kid",
53+
"@type": "@id"
54+
},
55+
"jwk": {
56+
"@id": "https://www.iana.org/assignments/jwt#jwk",
57+
"@type": "@json"
58+
}
5559
}
56-
}
60+
]
5761
},
5862
"_sd_alg": {
5963
"@id": "https://www.iana.org/assignments/jwt#_sd_alg"
@@ -146,7 +150,8 @@
146150
"verifiableCredential": {
147151
"@id": "https://www.w3.org/2018/credentials#verifiableCredential",
148152
"@type": "@id",
149-
"@container": "@graph"
153+
"@container": "@graph",
154+
"@context": null
150155
},
151156
"termsOfUse": {
152157
"@id": "https://www.w3.org/2018/credentials#termsOfUse",
@@ -273,7 +278,10 @@
273278
}
274279
}
275280
},
276-
"cryptosuite": "https://w3id.org/security#cryptosuite",
281+
"cryptosuite": {
282+
"@id": "https://w3id.org/security#cryptosuite",
283+
"@type": "https://w3id.org/security#cryptosuiteString"
284+
},
277285
"proofValue": {
278286
"@id": "https://w3id.org/security#proofValue",
279287
"@type": "https://w3id.org/security#multibase"

0 commit comments

Comments
 (0)