Skip to content

Commit f97bf8d

Browse files
committed
Add CID v1 JSON-LD context
1 parent 4d5b97e commit f97bf8d

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

src/main/java/com/apicatalog/cborld/loader/StaticContextLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class StaticContextLoader implements DocumentLoader {
4343
set("https://www.w3.org/ns/odrl.jsonld", "odrl.jsonld");
4444
set("https://www.w3.org/ns/did/v1", "did-v1.jsonld");
4545
set("https://www.w3.org/ns/credentials/v2", "credentials-v2.jsonld");
46+
set("https://www.w3.org/ns/cid/v1", "cid-v1.jsonld");
4647
set("https://w3id.org/vc-barcodes/v1", "vc-barcodes-v1.jsonld");
4748
set("https://w3id.org/security/data-integrity/v1", "data-integrity-v1.jsonld");
4849
set("https://w3id.org/security/multikey/v1", "multikey-v1.jsonld");
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"@context": {
3+
"@protected": true,
4+
"id": "@id",
5+
"type": "@type",
6+
7+
"alsoKnownAs": {
8+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
9+
"@type": "@id"
10+
},
11+
"assertionMethod": {
12+
"@id": "https://w3id.org/security#assertionMethod",
13+
"@type": "@id",
14+
"@container": "@set"
15+
},
16+
"authentication": {
17+
"@id": "https://w3id.org/security#authenticationMethod",
18+
"@type": "@id",
19+
"@container": "@set"
20+
},
21+
"capabilityDelegation": {
22+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
23+
"@type": "@id",
24+
"@container": "@set"
25+
},
26+
"capabilityInvocation": {
27+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
28+
"@type": "@id",
29+
"@container": "@set"
30+
},
31+
"controller": {
32+
"@id": "https://w3id.org/security#controller",
33+
"@type": "@id"
34+
},
35+
"keyAgreement": {
36+
"@id": "https://w3id.org/security#keyAgreementMethod",
37+
"@type": "@id",
38+
"@container": "@set"
39+
},
40+
"service": {
41+
"@id": "https://www.w3.org/ns/did#service",
42+
"@type": "@id",
43+
"@context": {
44+
"@protected": true,
45+
"id": "@id",
46+
"type": "@type",
47+
"serviceEndpoint": {
48+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
49+
"@type": "@id"
50+
}
51+
}
52+
},
53+
"verificationMethod": {
54+
"@id": "https://w3id.org/security#verificationMethod",
55+
"@type": "@id"
56+
},
57+
"Multikey": {
58+
"@id": "https://w3id.org/security#Multikey",
59+
"@context": {
60+
"@protected": true,
61+
"id": "@id",
62+
"type": "@type",
63+
"controller": {
64+
"@id": "https://w3id.org/security#controller",
65+
"@type": "@id"
66+
},
67+
"revoked": {
68+
"@id": "https://w3id.org/security#revoked",
69+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
70+
},
71+
"expires": {
72+
"@id": "https://w3id.org/security#expiration",
73+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
74+
},
75+
"publicKeyMultibase": {
76+
"@id": "https://w3id.org/security#publicKeyMultibase",
77+
"@type": "https://w3id.org/security#multibase"
78+
},
79+
"secretKeyMultibase": {
80+
"@id": "https://w3id.org/security#secretKeyMultibase",
81+
"@type": "https://w3id.org/security#multibase"
82+
}
83+
}
84+
},
85+
"JsonWebKey": {
86+
"@id": "https://w3id.org/security#JsonWebKey",
87+
"@context": {
88+
"@protected": true,
89+
"id": "@id",
90+
"type": "@type",
91+
"controller": {
92+
"@id": "https://w3id.org/security#controller",
93+
"@type": "@id"
94+
},
95+
"revoked": {
96+
"@id": "https://w3id.org/security#revoked",
97+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
98+
},
99+
"expires": {
100+
"@id": "https://w3id.org/security#expiration",
101+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
102+
},
103+
"publicKeyJwk": {
104+
"@id": "https://w3id.org/security#publicKeyJwk",
105+
"@type": "@json"
106+
},
107+
"secretKeyJwk": {
108+
"@id": "https://w3id.org/security#secretKeyJwk",
109+
"@type": "@json"
110+
}
111+
}
112+
}
113+
}
114+
}

0 commit comments

Comments
 (0)