From 60fb66409a4699eecdbd666f35fc0213842a7578 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 24 Jun 2024 19:06:42 -0400 Subject: [PATCH 1/3] Sync context with latest spec version. - Switch `encodingFormat` term back to `mediaType`. - https://github.com/w3c/vc-data-model/issues/1408 - https://github.com/w3c/vc-data-model/pull/1440 - Add `EnvelopedVerifiablePresentation`. - Add type for `statusReference` and `statusSize`. - Fix whitespace. --- contexts/credentials-v2.jsonld | 13 ++++++++++--- js/context.js | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/contexts/credentials-v2.jsonld b/contexts/credentials-v2.jsonld index c7f17a5..38150a8 100644 --- a/contexts/credentials-v2.jsonld +++ b/contexts/credentials-v2.jsonld @@ -71,12 +71,13 @@ "@id": "https://w3id.org/security#digestMultibase", "@type": "https://w3id.org/security#multibase" }, - "encodingFormat": { + "mediaType": { "@id": "https://schema.org/encodingFormat" }, "description": "https://schema.org/description", "name": "https://schema.org/name", "EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", + "EnvelopedVerifiablePresentation": "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", "VerifiableCredential": { "@id": "https://www.w3.org/2018/credentials#VerifiableCredential", "@context": { @@ -189,8 +190,14 @@ "@type": "https://w3id.org/security#multibase" }, "ttl": "https://www.w3.org/ns/credentials/status#ttl", - "statusReference": "https://www.w3.org/ns/credentials/status#statusReference", - "statusSize": "https://www.w3.org/ns/credentials/status#statusSize", + "statusReference": { + "@id": "https://www.w3.org/ns/credentials/status#statusReference", + "@type": "@id" + }, + "statusSize": { + "@id": "https://www.w3.org/ns/credentials/status#statusSize", + "@type": "https://www.w3.org/2001/XMLSchema#positiveInteger" + }, "statusMessage": { "@id": "https://www.w3.org/ns/credentials/status#statusMessage", "@context": { diff --git a/js/context.js b/js/context.js index 1c00290..8b53238 100644 --- a/js/context.js +++ b/js/context.js @@ -84,7 +84,7 @@ export default "@type": "https://w3id.org/security#multibase" }, - "encodingFormat": { + "mediaType": { "@id": "https://schema.org/encodingFormat" }, @@ -94,6 +94,9 @@ export default "EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", + "EnvelopedVerifiablePresentation": + "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", + "VerifiableCredential": { "@id": "https://www.w3.org/2018/credentials#VerifiableCredential", "@context": { @@ -163,6 +166,7 @@ export default "id": "@id", "type": "@type", + "holder": { "@id": "https://www.w3.org/2018/credentials#holder", "@type": "@id" @@ -219,8 +223,14 @@ export default "@type": "https://w3id.org/security#multibase" }, "ttl": "https://www.w3.org/ns/credentials/status#ttl", - "statusReference": "https://www.w3.org/ns/credentials/status#statusReference", - "statusSize": "https://www.w3.org/ns/credentials/status#statusSize", + "statusReference": { + "@id": "https://www.w3.org/ns/credentials/status#statusReference", + "@type": "@id" + }, + "statusSize": { + "@id": "https://www.w3.org/ns/credentials/status#statusSize", + "@type": "https://www.w3.org/2001/XMLSchema#positiveInteger" + }, "statusMessage": { "@id": "https://www.w3.org/ns/credentials/status#statusMessage", "@context": { From 09209b221dc3a0ca7f8c995b435d44432fa2d8df Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Wed, 26 Jun 2024 21:13:05 -0400 Subject: [PATCH 2/3] Sync _sd change. --- contexts/credentials-v2.jsonld | 3 ++- js/context.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contexts/credentials-v2.jsonld b/contexts/credentials-v2.jsonld index 38150a8..5afdaf6 100644 --- a/contexts/credentials-v2.jsonld +++ b/contexts/credentials-v2.jsonld @@ -58,7 +58,8 @@ "@id": "https://www.iana.org/assignments/jwt#_sd_alg" }, "_sd": { - "@id": "https://www.iana.org/assignments/jwt#_sd" + "@id": "https://www.iana.org/assignments/jwt#_sd", + "@type": "@json" }, "...": { "@id": "https://www.iana.org/assignments/jwt#..." diff --git a/js/context.js b/js/context.js index 8b53238..00df1f7 100644 --- a/js/context.js +++ b/js/context.js @@ -69,7 +69,8 @@ export default "@id": "https://www.iana.org/assignments/jwt#_sd_alg" }, "_sd": { - "@id": "https://www.iana.org/assignments/jwt#_sd" + "@id": "https://www.iana.org/assignments/jwt#_sd", + "@type": "@json" }, "...": { "@id": "https://www.iana.org/assignments/jwt#..." From 388ffdac1d3611c92c80e301d9e3df14e6745b37 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 8 Jul 2024 15:20:46 -0400 Subject: [PATCH 3/3] Sync context. - Sync with vc-data-model context. - Add `renderMethod`. - Organize context for readability (no semantic changes). --- contexts/credentials-v2.jsonld | 218 +++++++++++++++-------------- js/context.js | 249 +++++++++++++++++---------------- 2 files changed, 240 insertions(+), 227 deletions(-) diff --git a/contexts/credentials-v2.jsonld b/contexts/credentials-v2.jsonld index 5afdaf6..9a14ac8 100644 --- a/contexts/credentials-v2.jsonld +++ b/contexts/credentials-v2.jsonld @@ -4,87 +4,29 @@ "@vocab": "https://www.w3.org/ns/credentials/issuer-dependent#", "id": "@id", "type": "@type", - "kid": { - "@id": "https://www.iana.org/assignments/jose#kid", - "@type": "@id" - }, - "iss": { - "@id": "https://www.iana.org/assignments/jose#iss", - "@type": "@id" - }, - "sub": { - "@id": "https://www.iana.org/assignments/jose#sub", - "@type": "@id" - }, - "jku": { - "@id": "https://www.iana.org/assignments/jose#jku", - "@type": "@id" - }, - "x5u": { - "@id": "https://www.iana.org/assignments/jose#x5u", - "@type": "@id" - }, - "aud": { - "@id": "https://www.iana.org/assignments/jwt#aud", - "@type": "@id" - }, - "exp": { - "@id": "https://www.iana.org/assignments/jwt#exp", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "nbf": { - "@id": "https://www.iana.org/assignments/jwt#nbf", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "iat": { - "@id": "https://www.iana.org/assignments/jwt#iat", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "cnf": { - "@id": "https://www.iana.org/assignments/jwt#cnf", - "@context": { - "@protected": true, - "kid": { - "@id": "https://www.iana.org/assignments/jwt#kid", - "@type": "@id" - }, - "jwk": { - "@id": "https://www.iana.org/assignments/jwt#jwk", - "@type": "@json" - } - } - }, - "_sd_alg": { - "@id": "https://www.iana.org/assignments/jwt#_sd_alg" - }, - "_sd": { - "@id": "https://www.iana.org/assignments/jwt#_sd", - "@type": "@json" - }, - "...": { - "@id": "https://www.iana.org/assignments/jwt#..." + "description": "https://schema.org/description", + "digestMultibase": { + "@id": "https://w3id.org/security#digestMultibase", + "@type": "https://w3id.org/security#multibase" }, "digestSRI": { "@id": "https://www.w3.org/2018/credentials#digestSRI", "@type": "https://www.w3.org/2018/credentials#sriString" }, - "digestMultibase": { - "@id": "https://w3id.org/security#digestMultibase", - "@type": "https://w3id.org/security#multibase" - }, "mediaType": { "@id": "https://schema.org/encodingFormat" }, - "description": "https://schema.org/description", "name": "https://schema.org/name", - "EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", - "EnvelopedVerifiablePresentation": "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", "VerifiableCredential": { "@id": "https://www.w3.org/2018/credentials#VerifiableCredential", "@context": { "@protected": true, "id": "@id", "type": "@type", + "confidenceMethod": { + "@id": "https://www.w3.org/2018/credentials#confidenceMethod", + "@type": "@id" + }, "credentialSchema": { "@id": "https://www.w3.org/2018/credentials#credentialSchema", "@type": "@id" @@ -102,14 +44,6 @@ "@id": "https://www.w3.org/2018/credentials#evidence", "@type": "@id" }, - "validFrom": { - "@id": "https://www.w3.org/2018/credentials#validFrom", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - }, - "validUntil": { - "@id": "https://www.w3.org/2018/credentials#validUntil", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - }, "issuer": { "@id": "https://www.w3.org/2018/credentials#issuer", "@type": "@id" @@ -124,20 +58,29 @@ "@id": "https://www.w3.org/2018/credentials#refreshService", "@type": "@id" }, - "termsOfUse": { - "@id": "https://www.w3.org/2018/credentials#termsOfUse", + "relatedResource": { + "@id": "https://www.w3.org/2018/credentials#relatedResource", "@type": "@id" }, - "confidenceMethod": { - "@id": "https://www.w3.org/2018/credentials#confidenceMethod", + "renderMethod": { + "@id": "https://www.w3.org/2018/credentials#renderMethod", "@type": "@id" }, - "relatedResource": { - "@id": "https://www.w3.org/2018/credentials#relatedResource", + "termsOfUse": { + "@id": "https://www.w3.org/2018/credentials#termsOfUse", "@type": "@id" + }, + "validFrom": { + "@id": "https://www.w3.org/2018/credentials#validFrom", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" + }, + "validUntil": { + "@id": "https://www.w3.org/2018/credentials#validUntil", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } } }, + "EnvelopedVerifiableCredential": "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", "VerifiablePresentation": { "@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", "@context": { @@ -153,18 +96,19 @@ "@type": "@id", "@container": "@graph" }, + "termsOfUse": { + "@id": "https://www.w3.org/2018/credentials#termsOfUse", + "@type": "@id" + }, "verifiableCredential": { "@id": "https://www.w3.org/2018/credentials#verifiableCredential", "@type": "@id", "@container": "@graph", "@context": null - }, - "termsOfUse": { - "@id": "https://www.w3.org/2018/credentials#termsOfUse", - "@type": "@id" } } }, + "EnvelopedVerifiablePresentation": "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", "JsonSchemaCredential": "https://www.w3.org/2018/credentials#JsonSchemaCredential", "JsonSchema": { "@id": "https://www.w3.org/2018/credentials#JsonSchema", @@ -185,12 +129,21 @@ "@protected": true, "id": "@id", "type": "@type", - "statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose", "encodedList": { "@id": "https://www.w3.org/ns/credentials/status#encodedList", "@type": "https://w3id.org/security#multibase" }, - "ttl": "https://www.w3.org/ns/credentials/status#ttl", + "statusMessage": { + "@id": "https://www.w3.org/ns/credentials/status#statusMessage", + "@context": { + "@protected": true, + "id": "@id", + "type": "@type", + "message": "https://www.w3.org/ns/credentials/status#message", + "status": "https://www.w3.org/ns/credentials/status#status" + } + }, + "statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose", "statusReference": { "@id": "https://www.w3.org/ns/credentials/status#statusReference", "@type": "@id" @@ -199,16 +152,7 @@ "@id": "https://www.w3.org/ns/credentials/status#statusSize", "@type": "https://www.w3.org/2001/XMLSchema#positiveInteger" }, - "statusMessage": { - "@id": "https://www.w3.org/ns/credentials/status#statusMessage", - "@context": { - "@protected": true, - "id": "@id", - "type": "@type", - "status": "https://www.w3.org/ns/credentials/status#status", - "message": "https://www.w3.org/ns/credentials/status#message" - } - } + "ttl": "https://www.w3.org/ns/credentials/status#ttl" } }, "BitstringStatusListEntry": { @@ -217,12 +161,12 @@ "@protected": true, "id": "@id", "type": "@type", - "statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose", - "statusListIndex": "https://www.w3.org/ns/credentials/status#statusListIndex", "statusListCredential": { "@id": "https://www.w3.org/ns/credentials/status#statusListCredential", "@type": "@id" - } + }, + "statusListIndex": "https://www.w3.org/ns/credentials/status#statusListIndex", + "statusPurpose": "https://www.w3.org/ns/credentials/status#statusPurpose" } }, "DataIntegrityProof": { @@ -236,6 +180,10 @@ "@id": "http://purl.org/dc/terms/created", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, + "cryptosuite": { + "@id": "https://w3id.org/security#cryptosuite", + "@type": "https://w3id.org/security#cryptosuiteString" + }, "domain": "https://w3id.org/security#domain", "expires": { "@id": "https://w3id.org/security#expiration", @@ -263,13 +211,13 @@ "@type": "@id", "@container": "@set" }, - "capabilityInvocation": { - "@id": "https://w3id.org/security#capabilityInvocationMethod", + "capabilityDelegation": { + "@id": "https://w3id.org/security#capabilityDelegationMethod", "@type": "@id", "@container": "@set" }, - "capabilityDelegation": { - "@id": "https://w3id.org/security#capabilityDelegationMethod", + "capabilityInvocation": { + "@id": "https://w3id.org/security#capabilityInvocationMethod", "@type": "@id", "@container": "@set" }, @@ -280,10 +228,6 @@ } } }, - "cryptosuite": { - "@id": "https://w3id.org/security#cryptosuite", - "@type": "https://w3id.org/security#cryptosuiteString" - }, "proofValue": { "@id": "https://w3id.org/security#proofValue", "@type": "https://w3id.org/security#multibase" @@ -293,6 +237,66 @@ "@type": "@id" } } + }, + "...": { + "@id": "https://www.iana.org/assignments/jwt#..." + }, + "_sd": { + "@id": "https://www.iana.org/assignments/jwt#_sd", + "@type": "@json" + }, + "_sd_alg": { + "@id": "https://www.iana.org/assignments/jwt#_sd_alg" + }, + "aud": { + "@id": "https://www.iana.org/assignments/jwt#aud", + "@type": "@id" + }, + "cnf": { + "@id": "https://www.iana.org/assignments/jwt#cnf", + "@context": { + "@protected": true, + "kid": { + "@id": "https://www.iana.org/assignments/jwt#kid", + "@type": "@id" + }, + "jwk": { + "@id": "https://www.iana.org/assignments/jwt#jwk", + "@type": "@json" + } + } + }, + "exp": { + "@id": "https://www.iana.org/assignments/jwt#exp", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "iat": { + "@id": "https://www.iana.org/assignments/jwt#iat", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "iss": { + "@id": "https://www.iana.org/assignments/jose#iss", + "@type": "@id" + }, + "jku": { + "@id": "https://www.iana.org/assignments/jose#jku", + "@type": "@id" + }, + "kid": { + "@id": "https://www.iana.org/assignments/jose#kid", + "@type": "@id" + }, + "nbf": { + "@id": "https://www.iana.org/assignments/jwt#nbf", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "sub": { + "@id": "https://www.iana.org/assignments/jose#sub", + "@type": "@id" + }, + "x5u": { + "@id": "https://www.iana.org/assignments/jose#x5u", + "@type": "@id" } } } diff --git a/js/context.js b/js/context.js index 00df1f7..ef8f010 100644 --- a/js/context.js +++ b/js/context.js @@ -15,89 +15,20 @@ export default "id": "@id", "type": "@type", - "kid": { - "@id": "https://www.iana.org/assignments/jose#kid", - "@type": "@id" - }, - "iss": { - "@id": "https://www.iana.org/assignments/jose#iss", - "@type": "@id" - }, - "sub": { - "@id": "https://www.iana.org/assignments/jose#sub", - "@type": "@id" - }, - "jku": { - "@id": "https://www.iana.org/assignments/jose#jku", - "@type": "@id" - }, - "x5u": { - "@id": "https://www.iana.org/assignments/jose#x5u", - "@type": "@id" - }, - "aud": { - "@id": "https://www.iana.org/assignments/jwt#aud", - "@type": "@id" - }, - "exp": { - "@id": "https://www.iana.org/assignments/jwt#exp", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "nbf": { - "@id": "https://www.iana.org/assignments/jwt#nbf", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "iat": { - "@id": "https://www.iana.org/assignments/jwt#iat", - "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" - }, - "cnf": { - "@id": "https://www.iana.org/assignments/jwt#cnf", - "@context": { - "@protected": true, - "kid": { - "@id": "https://www.iana.org/assignments/jwt#kid", - "@type": "@id" - }, - "jwk": { - "@id": "https://www.iana.org/assignments/jwt#jwk", - "@type": "@json" - } - } - }, - "_sd_alg": { - "@id": "https://www.iana.org/assignments/jwt#_sd_alg" - }, - "_sd": { - "@id": "https://www.iana.org/assignments/jwt#_sd", - "@type": "@json" - }, - "...": { - "@id": "https://www.iana.org/assignments/jwt#..." + "description": "https://schema.org/description", + "digestMultibase": { + "@id": "https://w3id.org/security#digestMultibase", + "@type": "https://w3id.org/security#multibase" }, - "digestSRI": { "@id": "https://www.w3.org/2018/credentials#digestSRI", "@type": "https://www.w3.org/2018/credentials#sriString" }, - "digestMultibase": { - "@id": "https://w3id.org/security#digestMultibase", - "@type": "https://w3id.org/security#multibase" - }, - "mediaType": { "@id": "https://schema.org/encodingFormat" }, - - "description": "https://schema.org/description", "name": "https://schema.org/name", - "EnvelopedVerifiableCredential": - "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", - - "EnvelopedVerifiablePresentation": - "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", - "VerifiableCredential": { "@id": "https://www.w3.org/2018/credentials#VerifiableCredential", "@context": { @@ -106,6 +37,10 @@ export default "id": "@id", "type": "@type", + "confidenceMethod": { + "@id": "https://www.w3.org/2018/credentials#confidenceMethod", + "@type": "@id" + }, "credentialSchema": { "@id": "https://www.w3.org/2018/credentials#credentialSchema", "@type": "@id" @@ -123,14 +58,6 @@ export default "@id": "https://www.w3.org/2018/credentials#evidence", "@type": "@id" }, - "validFrom": { - "@id": "https://www.w3.org/2018/credentials#validFrom", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - }, - "validUntil": { - "@id": "https://www.w3.org/2018/credentials#validUntil", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - }, "issuer": { "@id": "https://www.w3.org/2018/credentials#issuer", "@type": "@id" @@ -145,21 +72,32 @@ export default "@id": "https://www.w3.org/2018/credentials#refreshService", "@type": "@id" }, - "termsOfUse": { - "@id": "https://www.w3.org/2018/credentials#termsOfUse", + "relatedResource": { + "@id": "https://www.w3.org/2018/credentials#relatedResource", "@type": "@id" }, - "confidenceMethod": { - "@id": "https://www.w3.org/2018/credentials#confidenceMethod", + "renderMethod": { + "@id": "https://www.w3.org/2018/credentials#renderMethod", "@type": "@id" }, - "relatedResource": { - "@id": "https://www.w3.org/2018/credentials#relatedResource", + "termsOfUse": { + "@id": "https://www.w3.org/2018/credentials#termsOfUse", "@type": "@id" + }, + "validFrom": { + "@id": "https://www.w3.org/2018/credentials#validFrom", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" + }, + "validUntil": { + "@id": "https://www.w3.org/2018/credentials#validUntil", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } } }, + "EnvelopedVerifiableCredential": + "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", + "VerifiablePresentation": { "@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", "@context": { @@ -177,20 +115,24 @@ export default "@type": "@id", "@container": "@graph" }, + "termsOfUse": { + "@id": "https://www.w3.org/2018/credentials#termsOfUse", + "@type": "@id" + }, "verifiableCredential": { "@id": "https://www.w3.org/2018/credentials#verifiableCredential", "@type": "@id", "@container": "@graph", "@context": null - }, - "termsOfUse": { - "@id": "https://www.w3.org/2018/credentials#termsOfUse", - "@type": "@id" } } }, - "JsonSchemaCredential": "https://www.w3.org/2018/credentials#JsonSchemaCredential", + "EnvelopedVerifiablePresentation": + "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", + + "JsonSchemaCredential": + "https://www.w3.org/2018/credentials#JsonSchemaCredential", "JsonSchema": { "@id": "https://www.w3.org/2018/credentials#JsonSchema", @@ -207,7 +149,8 @@ export default } }, - "BitstringStatusListCredential": "https://www.w3.org/ns/credentials/status#BitstringStatusListCredential", + "BitstringStatusListCredential": + "https://www.w3.org/ns/credentials/status#BitstringStatusListCredential", "BitstringStatusList": { "@id": "https://www.w3.org/ns/credentials/status#BitstringStatusList", @@ -217,21 +160,10 @@ export default "id": "@id", "type": "@type", - "statusPurpose": - "https://www.w3.org/ns/credentials/status#statusPurpose", "encodedList": { "@id": "https://www.w3.org/ns/credentials/status#encodedList", "@type": "https://w3id.org/security#multibase" }, - "ttl": "https://www.w3.org/ns/credentials/status#ttl", - "statusReference": { - "@id": "https://www.w3.org/ns/credentials/status#statusReference", - "@type": "@id" - }, - "statusSize": { - "@id": "https://www.w3.org/ns/credentials/status#statusSize", - "@type": "https://www.w3.org/2001/XMLSchema#positiveInteger" - }, "statusMessage": { "@id": "https://www.w3.org/ns/credentials/status#statusMessage", "@context": { @@ -240,10 +172,21 @@ export default "id": "@id", "type": "@type", - "status": "https://www.w3.org/ns/credentials/status#status", - "message": "https://www.w3.org/ns/credentials/status#message" + "message": "https://www.w3.org/ns/credentials/status#message", + "status": "https://www.w3.org/ns/credentials/status#status" } - } + }, + "statusPurpose": + "https://www.w3.org/ns/credentials/status#statusPurpose", + "statusReference": { + "@id": "https://www.w3.org/ns/credentials/status#statusReference", + "@type": "@id" + }, + "statusSize": { + "@id": "https://www.w3.org/ns/credentials/status#statusSize", + "@type": "https://www.w3.org/2001/XMLSchema#positiveInteger" + }, + "ttl": "https://www.w3.org/ns/credentials/status#ttl" } }, @@ -256,15 +199,15 @@ export default "id": "@id", "type": "@type", - "statusPurpose": - "https://www.w3.org/ns/credentials/status#statusPurpose", - "statusListIndex": - "https://www.w3.org/ns/credentials/status#statusListIndex", "statusListCredential": { "@id": "https://www.w3.org/ns/credentials/status#statusListCredential", "@type": "@id" - } + }, + "statusListIndex": + "https://www.w3.org/ns/credentials/status#statusListIndex", + "statusPurpose": + "https://www.w3.org/ns/credentials/status#statusPurpose" } }, @@ -272,13 +215,19 @@ export default "@id": "https://w3id.org/security#DataIntegrityProof", "@context": { "@protected": true, + "id": "@id", "type": "@type", + "challenge": "https://w3id.org/security#challenge", "created": { "@id": "http://purl.org/dc/terms/created", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, + "cryptosuite": { + "@id": "https://w3id.org/security#cryptosuite", + "@type": "https://w3id.org/security#cryptosuiteString" + }, "domain": "https://w3id.org/security#domain", "expires": { "@id": "https://w3id.org/security#expiration", @@ -294,8 +243,10 @@ export default "@type": "@vocab", "@context": { "@protected": true, + "id": "@id", "type": "@type", + "assertionMethod": { "@id": "https://w3id.org/security#assertionMethod", "@type": "@id", @@ -306,13 +257,13 @@ export default "@type": "@id", "@container": "@set" }, - "capabilityInvocation": { - "@id": "https://w3id.org/security#capabilityInvocationMethod", + "capabilityDelegation": { + "@id": "https://w3id.org/security#capabilityDelegationMethod", "@type": "@id", "@container": "@set" }, - "capabilityDelegation": { - "@id": "https://w3id.org/security#capabilityDelegationMethod", + "capabilityInvocation": { + "@id": "https://w3id.org/security#capabilityInvocationMethod", "@type": "@id", "@container": "@set" }, @@ -323,10 +274,6 @@ export default } } }, - "cryptosuite": { - "@id": "https://w3id.org/security#cryptosuite", - "@type": "https://w3id.org/security#cryptosuiteString" - }, "proofValue": { "@id": "https://w3id.org/security#proofValue", "@type": "https://w3id.org/security#multibase" @@ -336,6 +283,68 @@ export default "@type": "@id" } } + }, + + "...": { + "@id": "https://www.iana.org/assignments/jwt#..." + }, + "_sd": { + "@id": "https://www.iana.org/assignments/jwt#_sd", + "@type": "@json" + }, + "_sd_alg": { + "@id": "https://www.iana.org/assignments/jwt#_sd_alg" + }, + "aud": { + "@id": "https://www.iana.org/assignments/jwt#aud", + "@type": "@id" + }, + "cnf": { + "@id": "https://www.iana.org/assignments/jwt#cnf", + "@context": { + "@protected": true, + + "kid": { + "@id": "https://www.iana.org/assignments/jwt#kid", + "@type": "@id" + }, + "jwk": { + "@id": "https://www.iana.org/assignments/jwt#jwk", + "@type": "@json" + } + } + }, + "exp": { + "@id": "https://www.iana.org/assignments/jwt#exp", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "iat": { + "@id": "https://www.iana.org/assignments/jwt#iat", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "iss": { + "@id": "https://www.iana.org/assignments/jose#iss", + "@type": "@id" + }, + "jku": { + "@id": "https://www.iana.org/assignments/jose#jku", + "@type": "@id" + }, + "kid": { + "@id": "https://www.iana.org/assignments/jose#kid", + "@type": "@id" + }, + "nbf": { + "@id": "https://www.iana.org/assignments/jwt#nbf", + "@type": "https://www.w3.org/2001/XMLSchema#nonNegativeInteger" + }, + "sub": { + "@id": "https://www.iana.org/assignments/jose#sub", + "@type": "@id" + }, + "x5u": { + "@id": "https://www.iana.org/assignments/jose#x5u", + "@type": "@id" } } };