Skip to content

Commit

Permalink
Add example for supportedEcdsaKeyTypes in README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Jan 9, 2024
1 parent 6b975cb commit af2f0f7
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,44 @@ 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/vc-di-ecdsa-test-suite)
on your issuer and verifier endpoints.
* Alongside this cryptosuite tag, you must also specify the `supportedEcdsaKeyTypes`
key parallel to `tags` listing the ECDSA key types that your implementation issues or
can verify. Currently, the test suite supports `P-256` and `P-384` ECDSA key types.
* Alongside this cryptosuite tag, you must also specify the
`supportedEcdsaKeyTypes` property listing the ECDSA key types that your
implementation issues or can verify. Currently, the test suite supports
`P-256` and `P-384` ECDSA key types.

Example:
You can specify the key types supported by your implementation in the issuer
and verifier configs like this:
```json
{
"issuers": [{
...
"supportedEcdsaKeyTypes": ["P-256", "P-384"]
"tags": ["ecdsa-rdfc-2019"]
}, {
...
"supportedEcdsaKeyTypes": ["P-256", "P-384"]
"tags": ["ecdsa-jcs-2019"]
}, {
...
"supportedEcdsaKeyTypes": ["P-256"]
"tags": ["ecdsa-sd-2023"]
}],
"verifiers": [{
...
"supportedEcdsaKeyTypes": ["P-256", "P-384"]
"tags": ["ecdsa-rdfc-2019"]
}, {
...
"supportedEcdsaKeyTypes": ["P-256", "P-358"]
"tags": ["ecdsa-jcs-2019"]
}, {
...
"supportedEcdsaKeyTypes": ["P-256"]
"tags": ["ecdsa-sd-2023"]
}]
}
```

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

Expand Down

0 comments on commit af2f0f7

Please sign in to comment.