Skip to content

Commit

Permalink
chore(contexts): update did-configuration to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jceb committed May 17, 2024
1 parent 976e260 commit e54f2c8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
13 changes: 0 additions & 13 deletions contexts/did-configuration-v0.0.jsonld

This file was deleted.

12 changes: 12 additions & 0 deletions contexts/did-configuration-v1.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@context": [
{
"@version": 1.1,
"@protected": true,
"LinkedDomains": "https://identity.foundation/.well-known/resources/did-configuration/#LinkedDomains",
"DomainLinkageCredential": "https://identity.foundation/.well-known/resources/did-configuration/#DomainLinkageCredential",
"origin": "https://identity.foundation/.well-known/resources/did-configuration/#origin",
"linked_dids": "https://identity.foundation/.well-known/resources/did-configuration/#linked_dids"
}
]
}
3 changes: 2 additions & 1 deletion contexts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ pub const ZCAP_V1: &str = include_str!("../w3id-zcap-v1.jsonld");
pub const CACAO_ZCAP_V1: &str = include_str!("../cacao-zcap-v1.jsonld");
/// <https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/jff-vc-edu-plugfest-1-context.json>
pub const JFF_VC_EDU_PLUGFEST_2022: &str = include_str!("../jff-vc-edu-plugfest-1-context.json");
pub const DID_CONFIGURATION_V0_0: &str = include_str!("../did-configuration-v0.0.jsonld");
/// <https://identity.foundation/.well-known/did-configuration/v1>
pub const DID_CONFIGURATION_V1: &str = include_str!("../did-configuration-v1.jsonld");
pub const JFF_VC_EDU_PLUGFEST_2022_2: &str = include_str!("../jff-vc-edu-plugfest-2-context.json");

pub const TZ_V2: &str = include_str!("../tz-2021-v2.jsonld");
Expand Down
1 change: 1 addition & 0 deletions contexts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ exec curl \
https://w3id.org/vc/status-list/2021/v1 -o w3id-vc-status-list-2021-v1.jsonld \
https://demo.didkit.dev/2022/cacao-zcap/contexts/v1.json -o cacao-zcap-v1.jsonld \
https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/jff-vc-edu-plugfest-1-context.json -o jff-vc-edu-plugfest-1-context.json \
https://identity.foundation/.well-known/did-configuration/v1 -o did-configuration-v1.jsonld \
-L
14 changes: 7 additions & 7 deletions ssi-json-ld/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ pub const CACAO_ZCAP_V1_CONTEXT: Iri =
iri!("https://demo.didkit.dev/2022/cacao-zcap/contexts/v1.json");
pub const JFF_VC_EDU_PLUGFEST_2022_CONTEXT: Iri =
iri!("https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/jff-vc-edu-plugfest-1-context.json");
pub const DID_CONFIGURATION_V0_0_CONTEXT: Iri =
iri!("https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld");
pub const DID_CONFIGURATION_V1_CONTEXT: Iri =
iri!("https://identity.foundation/.well-known/contexts/did-configuration-v1.jsonld");
pub const JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT: Iri =
iri!("https://purl.imsglobal.org/spec/ob/v3p0/context.json");

Expand Down Expand Up @@ -229,9 +229,9 @@ lazy_static::lazy_static! {
JFF_VC_EDU_PLUGFEST_2022_CONTEXT,
ssi_contexts::JFF_VC_EDU_PLUGFEST_2022
);
pub static ref DID_CONFIGURATION_V0_0_CONTEXT_DOCUMENT: RemoteDocument = load_static_context(
DID_CONFIGURATION_V0_0_CONTEXT,
ssi_contexts::DID_CONFIGURATION_V0_0
pub static ref DID_CONFIGURATION_V1_CONTEXT_DOCUMENT: RemoteDocument = load_static_context(
DID_CONFIGURATION_V1_CONTEXT,
ssi_contexts::DID_CONFIGURATION_V1
);
pub static ref JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT_DOCUMENT: RemoteDocument = load_static_context(
JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT,
Expand Down Expand Up @@ -319,8 +319,8 @@ impl Loader<IriBuf, Span> for StaticLoader {
JFF_VC_EDU_PLUGFEST_2022_CONTEXT => {
Ok(JFF_VC_EDU_PLUGFEST_2022_CONTEXT_DOCUMENT.clone())
},
DID_CONFIGURATION_V0_0_CONTEXT => {
Ok(DID_CONFIGURATION_V0_0_CONTEXT_DOCUMENT.clone())
DID_CONFIGURATION_V1_CONTEXT => {
Ok(DID_CONFIGURATION_V1_CONTEXT_DOCUMENT.clone())
},
JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT => {
Ok(JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT_DOCUMENT.clone())
Expand Down

0 comments on commit e54f2c8

Please sign in to comment.