Skip to content

Commit

Permalink
Add supportedEcdsaKeyType property to issuers and verifiers with
Browse files Browse the repository at this point in the history
`ecdsa-rdfc-2019` tag.
  • Loading branch information
JSAssassin committed Nov 17, 2023
1 parent 10ec655 commit b3edba5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ following form:
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:4d44084c-334e-46dc-ac23-5e26f75262b6\",\"controller\":\"did:key:zFoo\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fmy.implementation.net%2Fissuers%2Fz19wCeJafpsTzvA6hZksz7TYF\",\"invocationTarget\":\"https://my.implementation.net/issuers/z19wCeJafpsTzvA6hZksz7TYF/credentials/issue\",\"expires\":\"2022-05-29T17:26:30Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2022-02-28T17:26:30Z\",\"verificationMethod\":\"did:key:z6Mkk2x1J4jCmaHDyYRRW1NB7CzeKYbjo3boGfRiefPzZjLQ#z6Mkk2x1J4jCmaHDyYRRW1NB7CzeKYbjo3boGfRiefPzZjLQ\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fmy.implementation.net%2Fissuers%2Fz19wCeJafpsTzvA6hZksz7TYF\"],\"proofValue\":\"zBar\"}}",
"keySeed": "KEY_SEED_DB"
},
"tags": ["ecdsa-rdfc-2019", "P-256"]
"supportedEcdsaKeyType": ["P-256"]
"tags": ["ecdsa-rdfc-2019"]
}],
"verifiers": [{
"id": "https://my.product.net/verifiers/z19uokPn3b1Z4XDbQSHo7VhFR",
Expand All @@ -89,6 +90,7 @@ following form:
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:41473f9f-9e44-4ac9-9ac2-c86a6f695703\",\"controller\":\"did:key:zFoo\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fmy.implementation.net%3A40443%2Fverifiers%2Fz19uokPn3b1Z4XDbQSHo7VhFR\",\"invocationTarget\":\"https://my.implementation.net/verifiers/zBar/credentials/verify\",\"expires\":\"2023-03-17T17:39:49Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2022-03-17T17:39:49Z\",\"verificationMethod\":\"did:key:zFoo#zBar\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fmy.application.net%2Fverifiers%2FzFoo\"],\"proofValue\":\"zBar\"}}",
"keySeed": "KEY_SEED_DB"
},
"supportedEcdsaKeyType": ["P-256"]
"tags": ["ecdsa-rdfc-2019"]
}]
}
Expand Down Expand Up @@ -118,12 +120,14 @@ module.exports = [{
"id": "urn:uuid:my:implementation:issuer:id",
"endpoint": "https://localhost:40443/issuers/foo/credentials/issue",
"method": "POST",
"tags": ["ecdsa-rdfc-2019", "P-256", "localhost"]
"supportedEcdsaKeyTypes": ["P-256"]
"tags": ["ecdsa-rdfc-2019", "localhost"]
}],
"verifiers": [{
"id": "https://localhost:40443/verifiers/z19uokPn3b1Z4XDbQSHo7VhFR",
"endpoint": "https://localhost:40443/verifiers/z19uokPn3b1Z4XDbQSHo7VhFR/credentials/verify",
"method": "POST",
"supportedEcdsaKeyTypes": ["P-256", "P-384"]
"tags": ["ecdsa-rdfc-2019", "localhost"]
}]
}];
Expand All @@ -139,9 +143,10 @@ Tags tell the test suites which implementations to run the test suites against.

`ecdsa-rdfc-2019` or `ecdsa-sd-2023` - These tags will run
the [VC Data Integrity ECDSA Test Suite](https://github.com/w3c-ccg/vc-di-ecdsa-test-suite) on your issuer and verifier endpoints.
Note: Along with the cryptosuite tag, for the issuers you should also specify
the key type that your implementation supports in the tags. Currently, the test
suite supports `P-256` and `P-384` key types.
Note: Along with the cryptosuite tag, for you should also specify the
`supportedEcdsaKeyTypes` (ECDSA key types that your implementation issues or
can verify). Currently, the test suite supports `P-256` and `P-384` ECDSA key
types.

`eddsa-rdfc-2022` - This tag will run the [VC Data Integrity EDDSA Test Suite](https://github.com/w3c-ccg/di-eddsa-2022-test-suite) on your issuer and verifier endpoints.

Expand Down
4 changes: 3 additions & 1 deletion implementations/ApiCatalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"id": "https://vc.apicatalog.com",
"endpoint": "https://vc.apicatalog.com/credentials/verify",
"method": "POST",
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["Ed25519Signature2020", "vc2.0", "eddsa-rdfc-2022", "ecdsa-rdfc-2019"]
}],
"issuers": [{
Expand All @@ -27,7 +28,8 @@
"options": {
"type": "ecdsa-2019"
},
"tags": ["ecdsa-rdfc-2019", "P-256"]
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["ecdsa-rdfc-2019"]
}],
"vpVerifiers": [{
"id": "https://vc.apicatalog.com",
Expand Down
10 changes: 7 additions & 3 deletions implementations/DigitalBazaar.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:3c8b5da2-646d-4f0d-93ff-d572e81b4bc9\",\"controller\":\"did:key:z6MkptjaoxjyKQFSqf1dHXswP6EayYhPQBYzprVCPmGBHz9S\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz1ADd8YGQqDFrVDXb85City8t\",\"invocationTarget\":\"https://issuer.qa.veres.app/issuers/z1ADd8YGQqDFrVDXb85City8t/credentials/issue\",\"expires\":\"2024-11-15T17:07:22Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2023-11-16T17:07:22Z\",\"verificationMethod\":\"did:key:z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b#z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz1ADd8YGQqDFrVDXb85City8t\"],\"proofValue\":\"z4bwrLM2ohgGZMvAJMhKMAoPUaEoBdorbKLTFbfLry4pmcz2ei6kTxfRxhpux3tm28SYeiJF1fZcnzHAry5QntYxE\"}}",
"keySeed": "KEY_SEED_DB"
},
"tags": ["ecdsa-rdfc-2019", "P-256"]
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["ecdsa-rdfc-2019"]
}, {
"id": "https://issuer.qa.veres.app/issuers/z1AAB8UhLNuAW4TYj6SJbLFos",
"endpoint": "https://issuer.qa.veres.app/issuers/z1AAB8UhLNuAW4TYj6SJbLFos/credentials/issue",
Expand All @@ -36,7 +37,8 @@
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:b4f664ad-d5f1-4692-8f58-726115ed7273\",\"controller\":\"did:key:z6MkptjaoxjyKQFSqf1dHXswP6EayYhPQBYzprVCPmGBHz9S\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz1AAB8UhLNuAW4TYj6SJbLFos\",\"invocationTarget\":\"https://issuer.qa.veres.app/issuers/z1AAB8UhLNuAW4TYj6SJbLFos/credentials/issue\",\"expires\":\"2024-11-15T17:08:07Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2023-11-16T17:08:08Z\",\"verificationMethod\":\"did:key:z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b#z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz1AAB8UhLNuAW4TYj6SJbLFos\"],\"proofValue\":\"zMfT7RkK978rwgoJJaYe2E6RhSUpi7Eq8cRAwEtQPy9vc96fN3bhwXiGY7bUgpaYV5554z1TUB6st2dH8U669MFb\"}}",
"keySeed": "KEY_SEED_DB"
},
"tags": ["ecdsa-rdfc-2019", "P-384"]
"supportedEcdsaKeyTypes": ["P-384"],
"tags": ["ecdsa-rdfc-2019"]
}, {
"id": "https://issuer.qa.veres.app/issuers/z19thg8b6Bmuo1qSvZBtgU9pu",
"endpoint": "https://issuer.qa.veres.app/issuers/z19thg8b6Bmuo1qSvZBtgU9pu/credentials/issue",
Expand All @@ -45,7 +47,8 @@
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:95972b0a-1152-4471-b5f2-b6e8c06c6cda\",\"controller\":\"did:key:z6MkptjaoxjyKQFSqf1dHXswP6EayYhPQBYzprVCPmGBHz9S\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz19thg8b6Bmuo1qSvZBtgU9pu\",\"invocationTarget\":\"https://issuer.qa.veres.app/issuers/z19thg8b6Bmuo1qSvZBtgU9pu/credentials/issue\",\"expires\":\"2024-11-15T17:11:48Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2023-11-16T17:11:49Z\",\"verificationMethod\":\"did:key:z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b#z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz19thg8b6Bmuo1qSvZBtgU9pu\"],\"proofValue\":\"z2s1qZduGKEFvZvbLJwjM4da8JFo9NgsPLhUtMHGpDaJcuj7WvUtQPxoF4j9CugnCtW9ywRLt8GQqkDUkc1uLhCEN\"}}",
"keySeed": "KEY_SEED_DB"
},
"tags": ["ecdsa-sd-2023", "P-256"]
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["ecdsa-sd-2023"]
}, {
"id": "https://vc2.veresissuer.dev/issuers/z1A2ELCrwCJaA8AZKpr3YREye",
"endpoint": "https://vc2.veresissuer.dev/issuers/z1A2ELCrwCJaA8AZKpr3YREye/credentials/issue",
Expand All @@ -63,6 +66,7 @@
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:73c6ab6d-fd9d-48d8-8260-c0839555e824\",\"controller\":\"did:key:z6MkptjaoxjyKQFSqf1dHXswP6EayYhPQBYzprVCPmGBHz9S\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fverifier.qa.veres.app%2Fverifiers%2Fz19jXQPi819fJVaBRFxZXqXay\",\"invocationTarget\":\"https://verifier.qa.veres.app/verifiers/z19jXQPi819fJVaBRFxZXqXay/credentials/verify\",\"expires\":\"2024-11-15T17:57:43Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2023-11-16T17:57:44Z\",\"verificationMethod\":\"did:key:z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b#z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fverifier.qa.veres.app%2Fverifiers%2Fz19jXQPi819fJVaBRFxZXqXay\"],\"proofValue\":\"z2Jcv3ZMfKX4FgXwnK7g4ix8WpWxhtiPdFdL1qjw7Y8XsNrEbeK5CosBPcZwLm9SrCafahF4tkufUmg5QtX51kE11\"}}",
"keySeed": "KEY_SEED_DB"
},
"supportedEcdsaKeyTypes": ["P-256", "P-384"],
"tags": ["Ed25519Signature2020", "eddsa-rdfc-2022", "ecdsa-rdfc-2019"]
}, {
"id": "https://vc2.veresverifier.dev/verifiers/z19ojzY8YFhryhpghn6ZaPnHo",
Expand Down
4 changes: 3 additions & 1 deletion implementations/SpruceID.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
"options": {
"type": "DataIntegrityProof"
},
"tags": ["ecdsa-rdfc-2019", "P-256"]
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["ecdsa-rdfc-2019"]
}],
"verifiers": [{
"id": "https://spruceid.com",
"endpoint": "https://vc.spruceid.xyz/credentials/verify",
"supportedEcdsaKeyTypes": ["P-256"],
"tags": ["Ed25519Signature2020", "eddsa-rdfc-2022", "ecdsa-rdfc-2019"]
}]
}

0 comments on commit b3edba5

Please sign in to comment.