diff --git a/artifacts/src/main/resources/context/dcp.jsonld b/artifacts/src/main/resources/context/dcp.jsonld index f7d13c9..28fae2e 100644 --- a/artifacts/src/main/resources/context/dcp.jsonld +++ b/artifacts/src/main/resources/context/dcp.jsonld @@ -46,8 +46,8 @@ "@type": "xsd:string", "@container": "@set" }, - "cryptographicSuites": { - "@id": "dcp:cryptographicSuites", + "cryptography": { + "@id": "dcp:cryptography", "@type": "xsd:string", "@container": "@set" }, diff --git a/artifacts/src/main/resources/issuance/credential-object-schema.json b/artifacts/src/main/resources/issuance/credential-object-schema.json index 9e01306..428574d 100644 --- a/artifacts/src/main/resources/issuance/credential-object-schema.json +++ b/artifacts/src/main/resources/issuance/credential-object-schema.json @@ -27,7 +27,7 @@ "type": "string" } }, - "cryptographicSuites": { + "cryptography": { "type": "array", "items": { "type": "string" @@ -65,7 +65,7 @@ "credentialType", "offerReason", "bindingMethods", - "cryptographicSuites", + "cryptography", "issuancePolicy" ] } diff --git a/artifacts/src/main/resources/issuance/example/credential-object.json b/artifacts/src/main/resources/issuance/example/credential-object.json index 0db141a..8fd4ed7 100644 --- a/artifacts/src/main/resources/issuance/example/credential-object.json +++ b/artifacts/src/main/resources/issuance/example/credential-object.json @@ -14,8 +14,8 @@ "bindingMethods": [ "did:web" ], - "cryptographicSuites": [ - "JsonWebKey2020" + "cryptography": [ + "JsonWebSignature202", "eddsa-rdfc-2022", "eddsa-jcs-2022", "..." ], "issuancePolicy": { "permission": { diff --git a/artifacts/src/main/resources/issuance/example/credential-offer-message.json b/artifacts/src/main/resources/issuance/example/credential-offer-message.json index 0506895..8fe1d84 100644 --- a/artifacts/src/main/resources/issuance/example/credential-offer-message.json +++ b/artifacts/src/main/resources/issuance/example/credential-offer-message.json @@ -18,8 +18,8 @@ "bindingMethods": [ "did:web" ], - "cryptographicSuites": [ - "JsonWebKey2020" + "cryptography": [ + "JsonWebSignature2020", "eddsa-rdfc-2022", "eddsa-jcs-2022", "..." ], "issuancePolicy": { "permission": { diff --git a/artifacts/src/main/resources/issuance/example/issuer-metadata.json b/artifacts/src/main/resources/issuance/example/issuer-metadata.json index d9f4c56..8900c8b 100644 --- a/artifacts/src/main/resources/issuance/example/issuer-metadata.json +++ b/artifacts/src/main/resources/issuance/example/issuer-metadata.json @@ -17,8 +17,8 @@ "bindingMethods": [ "did:web" ], - "cryptographicSuites": [ - "JsonWebKey2020" + "cryptography": [ + "JsonWebSignature2020", "eddsa-rdfc-2022", "eddsa-jcs-2022", "..." ], "issuancePolicy": { "permission": { diff --git a/artifacts/src/test/java/org/eclipse/dcp/schema/issuance/CredentialObjectSchemaTest.java b/artifacts/src/test/java/org/eclipse/dcp/schema/issuance/CredentialObjectSchemaTest.java index f6cc427..764e450 100644 --- a/artifacts/src/test/java/org/eclipse/dcp/schema/issuance/CredentialObjectSchemaTest.java +++ b/artifacts/src/test/java/org/eclipse/dcp/schema/issuance/CredentialObjectSchemaTest.java @@ -32,8 +32,8 @@ public class CredentialObjectSchemaTest extends AbstractSchemaTest { "bindingMethods": [ "did:web" ], - "cryptographicSuites": [ - "JsonWebKey2020" + "cryptography": [ + "JsonWebSignature2020" ], "issuancePolicy": { "permission": [ @@ -66,8 +66,8 @@ public class CredentialObjectSchemaTest extends AbstractSchemaTest { "bindingMethods": [ "did:web" ], - "cryptographicSuites": [ - "JsonWebKey2020" + "cryptography": [ + "JsonWebSignature2020" ], "issuancePolicy": { "permission": [ @@ -95,7 +95,7 @@ void verifySchema() { .containsExactly(error("credentialType", REQUIRED), error("offerReason", REQUIRED), error("bindingMethods", REQUIRED), - error("cryptographicSuites", REQUIRED), + error("cryptography", REQUIRED), error("issuancePolicy", REQUIRED)); assertThat(schema.validate(INVALID_CREDENTIAL_REQUEST_MESSAGE_NO_TYPE_AND_CONTEXT, JSON)) diff --git a/specifications/credential.issuance.protocol.md b/specifications/credential.issuance.protocol.md index 7e3826d..f03975f 100644 --- a/specifications/credential.issuance.protocol.md +++ b/specifications/credential.issuance.protocol.md @@ -210,7 +210,7 @@ The following is a non-normative example of a credential offer request: | | - `@type`: A string specifying the `CredentialObject` type | | | - `credentialType`: An array of strings defining the type of credential being offered | | **Optional** | - `bindingMethods`: An array of strings defining the key material that an issued credential is bound to | -| | - `cryptographicSuites`: An array of strings defining the algorithm used for credential signing | +| | - `cryptography`: An array of strings defining the algorithm used for credential signing | | | - `issuancePolicy`: An ODRL Policy [[odrl-model]]. Note that the ODRL Policy MUST not contain `target` attributes | | | - `offerReason`: A reason for the offer as a string. Valid values may include `reissue` and `proof-key-revocation` | diff --git a/specifications/dsp.profile.md b/specifications/dsp.profile.md index 3313e9e..0ff72b1 100644 --- a/specifications/dsp.profile.md +++ b/specifications/dsp.profile.md @@ -41,7 +41,7 @@ catalog. The `CredentialsSupported` object contains the following properties: - `types`: REQUIRED. An array of verifiable credential type strings the credential corresponds to - `bindingMethod`: REQUIRED. String that identifies how the credential is bound to the identifier of the credential holder. -- `cryptographicSuites` REQUIRED. An array of strings that identify the cryptographic suites supported for verifying +- `cryptography` REQUIRED. An array of strings that identify the cryptographic standards supported for verifying proofs. Values should either use those defined by [IANA JOSE](https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms) for JWT-based VCs or the [Linked Data Cryptographic Suite Registry](https://w3c-ccg.github.io/ld-cryptosuite-registry/) for LD-based