openwallet-foundation / credo-ts-ext

Extension libraries for Credo
https://credo.js.org
Apache License 2.0
29 stars 38 forks source link

feat: openid4vc #260

Closed TimoGlastra closed 7 months ago

TimoGlastra commented 7 months ago

This PR adds support for openid4vc issuance and verification with SD-JWT credentials in the REST wrapper.

It also does some cleanup, allows to configure cheqd legders, and updates the programmatic API (if you're not using the docker image / cli). Also added some extra samples using the cli, config file or programmatic use

I'm currently working on some docs to add to the Credo Docs website, but I don't think it should hold up this PR and the release.

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 66.72598% with 187 lines in your changes are missing coverage. Please review.

Project coverage is 57.91%. Comparing base (3849aec) to head (2c60688).

Files Patch % Lines
...rs/openid4vc/issuers/OpenId4VcIssuersController.ts 46.55% 31 Missing :warning:
...essions/OpenId4VcVerificationSessionsController.ts 60.27% 28 Missing and 1 partial :warning:
packages/rest/src/setup/setupApp.ts 68.29% 19 Missing and 7 partials :warning:
...ce-sessions/OpenId4VcIssuanceSessionsController.ts 60.31% 25 Missing :warning:
...penid4vc/verifiers/OpenId4VcVerifiersController.ts 51.06% 23 Missing :warning:
.../rest/src/controllers/tenants/TenantsController.ts 50.00% 16 Missing :warning:
packages/rest/src/utils/agent.ts 65.38% 9 Missing :warning:
...src/controllers/didcomm/proofs/ProofsController.ts 70.58% 4 Missing and 1 partial :warning:
packages/rest/src/events/emitEvent.ts 73.68% 4 Missing and 1 partial :warning:
...llers/didcomm/credentials/CredentialsController.ts 66.66% 3 Missing and 1 partial :warning:
... and 4 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #260 +/- ## ========================================== - Coverage 62.28% 57.91% -4.37% ========================================== Files 79 94 +15 Lines 1832 2526 +694 Branches 375 512 +137 ========================================== + Hits 1141 1463 +322 - Misses 635 983 +348 - Partials 56 80 +24 ```

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