Skip to content

Commit

Permalink
Remove duplicate tags and tags for test suites not associated with
Browse files Browse the repository at this point in the history
w3c-ccg implementations repo.
  • Loading branch information
JSAssassin committed Dec 11, 2023
1 parent 9be91fb commit 49c2cf9
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 117 deletions.
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,22 @@ Please Note:
1. Tags serve as identifiers to determine which test suites to run on your
issuers and verifiers. Only the first issuer/verifier found with a specific
tag from your list will be run against the test suite, while subsequent issuers
and verifiers bearing the same tag won't. This applies to all the test
suites listed below associated with this implementations repository.
and verifiers bearing the same tag won't. This applies to most of the test
suites associated with this implementations repository listed below.

For instance, if you have added the tag `vc-api` to all your issuers and
verifiers to run them with vc api issuer and verifier test suites, only the
first match will be used in the test suites. In the sample configuration below,
only the issuer and verifier with the ID
https://product.example.com/issuers/z1AEwLo7tZ3TrsPgRcgLJqQvR will be selected.
only the issuer and verifier with the IDs
https://product.example.com/issuers/z1AEwLo7tZ3TrsPgRcgLJqQvR and
https://product.example.com/verifiers/z1AEwLo7tZ3TrsPgRcgLJqQvR will be selected.
Therefore, please avoid adding duplicate tags.

Example
```js
// Only the first match https://product.example.com/issuers/z1AEwLo7tZ3TrsPgRcgLJqQvR
// and https://product.example.com/verifiers/z1AEwLo7tZ3TrsPgRcgLJqQvR will be
// run against the VC API issuer and verifier test suites.
{
"issuers": [{
"id": "https://product.example.com/issuers/z1AEwLo7tZ3TrsPgRcgLJqQvR",
Expand All @@ -151,28 +156,29 @@ Therefore, please avoid adding duplicate tags.
}, {
"id": "https://product.example.com/issuers/z4Rq7N1lT6zVwFgXk8JYdCcKpU",
"endpoint": "https://product.example.com/issuers/z4Rq7N1lT6zVwFgXk8JYdCcKpU/credentials/issue",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}],
"verifiers": [{
"id": "https://product.example.com/verifiers/z19uokPn3b1Z4XDbQSHo7VhFR",
"endpoint": "https://product.example.com/verifiers/z19uokPn3b1Z4XDbQSHo7VhFR/credentials/verify",
"id": "https://product.example.com/verifiers/z1AEwLo7tZ3TrsPgRcgLJqQvR",
"endpoint": "https://product.example.com/verifiers/z1AEwLo7tZ3TrsPgRcgLJqQvR/credentials/verify",
"tags": ["vc-api"]
}, {
"id": "https://product.example.com/verifiers/z4Rq7N1lT6zVwFgXk8JYdCcKpU",
"endpoint": "https://product.example.com/verifiers/z4Rq7N1lT6zVwFgXk8JYdCcKpU/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}]
}
```


2. If an issuer or verifier supports multiple VC signature types, you can assign
multiple tags to them, eliminating the need for redundant entries. For instance,
if an issuer/verifier with the ID
multiple tags to them, eliminating the need for redundant entries to run against
multiple test suites. For instance, if an issuer with the ID
https://product.example.com/issuers/z1AEwLo7tZ3TrsPgRcgLJqQvR can be run with
both the Ed25519Signature2020 and VC API test suites, a single entry with
multiple/combined tags can be used. This consolidated entry, containing tags for
both VC API and Ed25519Signature2020 test suites, ensures that the issuer and
the verifier are run against both test suites. Here is an example of how to
both the Status List 2021 and VC API test suites, a single entry with
multiple tags can be used. This consolidated entry, containing tags for
both VC API and Status List 2021 test suites, ensures that the issuer and
the verifier will be run against both test suites. Here is an example of how to
structure the entry:

For Example:
Expand All @@ -181,12 +187,12 @@ For Example:
"issuers": [{
"id": "https://product.example.com/issuers/z4Rq7N1lT6zVwFgXk8JYdCcKpU",
"endpoint": "https://product.example.com/issuers/z4Rq7N1lT6zVwFgXk8JYdCcKpU/credentials/issue",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api", "StatusList2021", "Suspension"]
}],
"verifiers": [{
"id": "https://product.example.com/verifiers/z4Rq7N1lT6zVwFgXk8JYdCcKpU",
"endpoint": "https://product.example.com/verifiers/z4Rq7N1lT6zVwFgXk8JYdCcKpU/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}]
}
```
Expand All @@ -197,10 +203,6 @@ For Example:
on your issuer and the [vc-api-verifier tests](https://github.com/w3c-ccg/vc-api-verifier-test-suite)
on your verifier.

#### Ed25519Signature2020 Test Suite

* `Ed25519Signature2020` - This tag will run the [Ed25519 tests](https://github.com/w3c/vc-di-ed25519signature2020-test-suite) on your issuer and/or verifier.

#### Status List 2021 Test Suite

* `StatusList2021` and `Revocation`/`Suspension`- Combining the `StatusList2021`
Expand Down
23 changes: 2 additions & 21 deletions implementations/ApiCatalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,14 @@
"verifiers": [{
"id": "https://vc.apicatalog.com",
"endpoint": "https://vc.apicatalog.com/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020", "vc2.0", "eddsa-2022", "ecdsa-2019" ]
"tags": ["vc-api"]
}],
"issuers": [{
"id": "did:key:z6Mkska8oQD7QQQWxqa7L5ai4mH98HfAdSwomPFYKuqNyE2y",
"endpoint": "https://vc.apicatalog.com/credentials/issue",
"options": {
"type": "Ed25519Signature2020"
},
"tags": ["vc-api", "Ed25519Signature2020", "vc2.0"]
}, {
"id": "did:key:z6Mkska8oQD7QQQWxqa7L5ai4mH98HfAdSwomPFYKuqNyE2y",
"endpoint": "https://vc.apicatalog.com/credentials/issue",
"options": {
"type": "eddsa-2022"
},
"tags": ["vc-api", "eddsa-2022"]
}, {
"id": "did:key:zDnaepBuvsQ8cpsWrVKw8fbpGpvPeNSjVPTWoq6cRqaYzBKVP",
"endpoint": "https://vc.apicatalog.com/credentials/issue",
"options": {
"type": "ecdsa-2019"
},
"tags": ["vc-api", "ecdsa-2019" ]
}],
"vpVerifiers": [{
"id": "https://vc.apicatalog.com",
"endpoint": "https://vc.apicatalog.com/presentations/verify",
"tags": ["vc-api", "Ed25519Signature2020", "vc2.0", "eddsa-2022", "ecdsa-2019" ]
"tags": ["vc-api"]
}]
}
15 changes: 3 additions & 12 deletions implementations/DanubeTech.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,18 @@
"type": "Ed25519Signature2018"
},
"tags": ["vc-api"]
},
{
"id": "did:key:z6MksvTdeczd92YQ5W2V2gL9kXdRvD2AEiyJPoWieP95HUDo",
"endpoint": "https://uniissuer.io/1.0/credentials/issue",
"options": {
"type": "Ed25519Signature2020"
},
"tags": ["vc-api", "Ed25519Signature2020"]
},
{
}, {
"id": "did:key:z6MksvTdeczd92YQ5W2V2gL9kXdRvD2AEiyJPoWieP95HUDo",
"endpoint": "https://uniissuer.io/1.0/credentials/issue",
"options": {
"type": "JsonWebSignature2020"
},
"tags": ["vc-api", "JsonWebSignature2020"]
"tags": ["JsonWebSignature2020"]
}],
"verifiers": [{
"id": "",
"endpoint": "https://univerifier.io/1.0/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}],
"didResolvers": [{
"id": "",
Expand Down
29 changes: 1 addition & 28 deletions implementations/DigitalBazaar.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,6 @@
},
"tags": ["vc-api", "Ed25519Signature2020"]
}, {
"id": "https://issuer.qa.veres.app/issuers/z19rYvMxCQzMb9hQ7xuQ5ipJd",
"endpoint": "https://issuer.qa.veres.app/issuers/z19rYvMxCQzMb9hQ7xuQ5ipJd/credentials/issue",
"zcap": {
"capability": "{\"@context\":[\"https://w3id.org/zcap/v1\",\"https://w3id.org/security/suites/ed25519-2020/v1\"],\"id\":\"urn:uuid:10765250-c445-4672-8271-16a033d5fc51\",\"controller\":\"did:key:z6MkptjaoxjyKQFSqf1dHXswP6EayYhPQBYzprVCPmGBHz9S\",\"parentCapability\":\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz19rYvMxCQzMb9hQ7xuQ5ipJd\",\"invocationTarget\":\"https://issuer.qa.veres.app/issuers/z19rYvMxCQzMb9hQ7xuQ5ipJd/credentials/issue\",\"expires\":\"2024-11-15T17:06:07Z\",\"proof\":{\"type\":\"Ed25519Signature2020\",\"created\":\"2023-11-16T17:06:08Z\",\"verificationMethod\":\"did:key:z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b#z6MkmMeWhZTJr8mhA2n48FoKV1kLqJAm9eYdu4cdTtTC6Y5b\",\"proofPurpose\":\"capabilityDelegation\",\"capabilityChain\":[\"urn:zcap:root:https%3A%2F%2Fissuer.qa.veres.app%2Fissuers%2Fz19rYvMxCQzMb9hQ7xuQ5ipJd\"],\"proofValue\":\"z55MhL1RCGvM1oLd9KqRwSP8rQu5wkr5tcyJbgi4CHvvvvhH65TxVATbHqLQT7b1zPZa7nbVCrUwSxwihoVCjrivU\"}}",
"keySeed": "KEY_SEED_DB"
},
"tags": ["eddsa-rdfc-2022"]
}, {
"id": "https://issuer.qa.veres.app/issuers/z1ADd8YGQqDFrVDXb85City8t",
"endpoint": "https://issuer.qa.veres.app/issuers/z1ADd8YGQqDFrVDXb85City8t/credentials/issue",
"zcap": {
"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"
},
"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",
"zcap": {
"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"
},
"supportedEcdsaKeyTypes": ["P-384"],
"tags": ["ecdsa-rdfc-2019"]
}, {
"id": "https://vc2.veresissuer.dev/issuers/z1A2ELCrwCJaA8AZKpr3YREye",
"endpoint": "https://vc2.veresissuer.dev/issuers/z1A2ELCrwCJaA8AZKpr3YREye/credentials/issue",
"zcap": {
Expand Down Expand Up @@ -95,8 +69,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": ["vc-api", "Ed25519Signature2020", "StatusList2021", "eddsa-rdfc-2022", "ecdsa-rdfc-2019"]
"tags": ["vc-api", "Ed25519Signature2020", "StatusList2021"]
}, {
"id": "https://vc2.veresverifier.dev/verifiers/z19ojzY8YFhryhpghn6ZaPnHo",
"endpoint": "https://vc2.veresverifier.dev/verifiers/z19ojzY8YFhryhpghn6ZaPnHo/credentials/verify",
Expand Down
4 changes: 2 additions & 2 deletions implementations/EWF.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"issuers": [{
"id": "did:key:z6MksoRPRqnMWiivV4weRGGS9SiHXuqfJEYu95EiYtbvBxW6",
"endpoint": "https://vc-api-dev.energyweb.org/v1/vc-api/credentials/issue",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]

}],
"verifiers": [{
"id": "",
"endpoint": "https://vc-api-dev.energyweb.org/v1/vc-api/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}]
}
4 changes: 2 additions & 2 deletions implementations/LearnCard.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"issuers": [{
"id": "did:key:z6MkjSz4mYqcn7dePGuktJ5PxecMkXQQHWRg8Lm6okATyFVh",
"endpoint": "https://bridge.learncard.com/credentials/issue",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]

}],
"verifiers": [{
"id": "",
"endpoint": "https://bridge.learncard.com/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020"]
"tags": ["vc-api"]
}]
}
24 changes: 1 addition & 23 deletions implementations/SpruceID.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,12 @@
"options": {
"type": "Ed25519Signature2020"
},
"tags": ["vc-api", "Ed25519Signature2020"]
}, {
"id": "did:key:z6MkgND5U5Kedizov5nxeh2ZCVUTDRSmAfbNqPhzCq8b72Ra",
"endpoint": "https://vc.spruceid.xyz/credentials/issue",
"tags": ["vc-api", "JWT"]
}, {
"id": "did:key:z6MkgND5U5Kedizov5nxeh2ZCVUTDRSmAfbNqPhzCq8b72Ra",
"endpoint": "https://vc.spruceid.xyz/credentials/issue",
"options": {
"type": "DataIntegrityProof"
},
"tags": ["vc-api", "eddsa-2022"]
}, {
"id": "did:key:zDnaei6w9La4VphyPA6V2V5poBTpVtjCsnzPML5c78GWjRhnc",
"endpoint": "https://vc.spruceid.xyz/credentials/issue",
"options": {
"type": "DataIntegrityProof"
},
"tags": ["vc-api", "ecdsa-2019"]
}, {
"id": "did:key:zDnaei6w9La4VphyPA6V2V5poBTpVtjCsnzPML5c78GWjRhnc",
"endpoint": "https://vc.spruceid.xyz/credentials/issue",
"tags": ["vc-api", "JWT"]
}],
"verifiers": [{
"id": "https://spruceid.com",
"endpoint": "https://vc.spruceid.xyz/credentials/verify",
"tags": ["vc-api", "Ed25519Signature2020", "JWT", "eddsa-2022", "ecdsa-2019"]
"tags": ["vc-api", "JWT"]
}],
"didResolvers": [{
"id": "https://spruceid.com",
Expand Down
11 changes: 2 additions & 9 deletions implementations/Trinsic.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@
"options": {
"type": "Ed25519Signature2020"
},
"tags": ["vc-api", "Ed25519Signature2020"]
}, {
"id": "did:key:z6MkqbpLSbqnY1pxVyhBCDYcFsv4ZgGgqP32kzNrf5deWVPU",
"endpoint": "https://interop.connect.trinsic.cloud/vc-api/credentials/issue",
"options": {
"type": "DataIntegrityProof"
},
"tags": ["vc-api", "eddsa-2022"]
"tags": ["vc-api"]
}],
"verifiers": [{
"id": "https://trinsic.id",
"endpoint": "https://interop.connect.trinsic.cloud/vc-api/credentials/verify",
"tags": ["vc-api", "eddsa-2022", "Ed25519Signature2020"]
"tags": ["vc-api"]
}]
}

0 comments on commit 49c2cf9

Please sign in to comment.