From 23b2ee8aef6b6a95ae7e77f921b971574ce0469d Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Fri, 17 May 2024 09:12:38 +0200 Subject: [PATCH] chore(contexts): update did-configuration to latest version --- contexts/did-configuration-v0.0.jsonld | 13 ------------- contexts/did-configuration-v1.jsonld | 12 ++++++++++++ contexts/src/lib.rs | 3 ++- contexts/update.sh | 1 + ssi-json-ld/src/lib.rs | 14 +++++++------- 5 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 contexts/did-configuration-v0.0.jsonld create mode 100644 contexts/did-configuration-v1.jsonld diff --git a/contexts/did-configuration-v0.0.jsonld b/contexts/did-configuration-v0.0.jsonld deleted file mode 100644 index bc59546ea..000000000 --- a/contexts/did-configuration-v0.0.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": [ - { - "@version": 1.1, - "didcfg": "https://identity.foundation/.well-known/contexts/did-configuration-v0.0#", - "domainLinkageAssertion": "didcfg:domainLinkageAssertion", - "origin": "didcfg:origin", - "linked_dids": "didcfg:linked_dids", - "did": "didcfg:did", - "vc": "didcfg:vc" - } - ] -} diff --git a/contexts/did-configuration-v1.jsonld b/contexts/did-configuration-v1.jsonld new file mode 100644 index 000000000..525f1f9e3 --- /dev/null +++ b/contexts/did-configuration-v1.jsonld @@ -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" + } + ] +} diff --git a/contexts/src/lib.rs b/contexts/src/lib.rs index 0abf1ea48..239fdf89a 100644 --- a/contexts/src/lib.rs +++ b/contexts/src/lib.rs @@ -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"); /// 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"); +/// +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"); diff --git a/contexts/update.sh b/contexts/update.sh index 730bfda2f..d336a07d0 100755 --- a/contexts/update.sh +++ b/contexts/update.sh @@ -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 diff --git a/ssi-json-ld/src/lib.rs b/ssi-json-ld/src/lib.rs index fb9f5660c..cd79688a1 100644 --- a/ssi-json-ld/src/lib.rs +++ b/ssi-json-ld/src/lib.rs @@ -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/did-configuration/v1"); pub const JFF_VC_EDU_PLUGFEST_2022_2_CONTEXT: Iri = iri!("https://purl.imsglobal.org/spec/ob/v3p0/context.json"); @@ -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, @@ -319,8 +319,8 @@ impl Loader 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())