decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
414 stars 130 forks source link

feat(credential-w3c): list usable proof formats for an `IIdentifier` #1268

Closed mirceanis closed 9 months ago

mirceanis commented 9 months ago

What is being changed

The CredentialPlugin now exports a new method listUsableProofFormats() that can be used to decide which type of proofFormat can be requested for creating a credential or presentation. It queries the other available credential plugins to check if the keys of a DID are usable with them and also relies on the metadata provided by key management systems in its decision.

Quality

Check all that apply:

codecov[bot] commented 9 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (93198bc) 84.99% compared to head (acc40e4) 84.99%. Report is 4 commits behind head on next.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #1268 +/- ## ========================================== - Coverage 84.99% 84.99% -0.01% ========================================== Files 167 167 Lines 18001 18137 +136 Branches 2009 2039 +30 ========================================== + Hits 15300 15415 +115 - Misses 2701 2722 +21 ``` | [Files](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project) | Coverage Δ | | |---|---|---| | [packages/core/src/agent.ts](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project#diff-cGFja2FnZXMvY29yZS9zcmMvYWdlbnQudHM=) | `99.25% <100.00%> (ø)` | | | [...es/credential-eip712/src/agent/CredentialEIP712.ts](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project#diff-cGFja2FnZXMvY3JlZGVudGlhbC1laXA3MTIvc3JjL2FnZW50L0NyZWRlbnRpYWxFSVA3MTIudHM=) | `91.68% <100.00%> (+0.36%)` | :arrow_up: | | [packages/credential-ld/src/action-handler.ts](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project#diff-cGFja2FnZXMvY3JlZGVudGlhbC1sZC9zcmMvYWN0aW9uLWhhbmRsZXIudHM=) | `89.58% <100.00%> (+0.99%)` | :arrow_up: | | [packages/credential-ld/src/types.ts](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project#diff-cGFja2FnZXMvY3JlZGVudGlhbC1sZC9zcmMvdHlwZXMudHM=) | `100.00% <100.00%> (ø)` | | | [packages/credential-w3c/src/action-handler.ts](https://app.codecov.io/gh/uport-project/veramo/pull/1268?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project#diff-cGFja2FnZXMvY3JlZGVudGlhbC13M2Mvc3JjL2FjdGlvbi1oYW5kbGVyLnRz) | `83.18% <96.00%> (+1.18%)` | :arrow_up: | ... and [10 files with indirect coverage changes](https://app.codecov.io/gh/uport-project/veramo/pull/1268/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uport-project)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.