Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sdjwt instance non abstract #122

Merged
merged 6 commits into from
Feb 28, 2024

Conversation

cre8
Copy link
Contributor

@cre8 cre8 commented Feb 28, 2024

As discussed in #114 the sdjwtinstance should be non abstract to allow people to use it on its own.

I included the validateReservedFields function that will return nothing in the sdjwtinstance, but can be implemented in extended classes like sdjwtvcinstance. Doing so, we don't have to override the while isse function

Signed-off-by: Mirko Mollik mirko.mollik@fit.fraunhofer.de

Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

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

Project coverage is 97.18%. Comparing base (32af6cf) to head (1257094).

❗ Current head 1257094 differs from pull request most recent head 006f868. Consider uploading reports for the commit 006f868 to get more accurate results

Files Patch % Lines
packages/core/src/index.ts 72.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #122      +/-   ##
==========================================
+ Coverage   96.05%   97.18%   +1.12%     
==========================================
  Files          22       23       +1     
  Lines        1826     1844      +18     
  Branches      259      264       +5     
==========================================
+ Hits         1754     1792      +38     
+ Misses         72       52      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +35 to +36
The library can be used to create sd-jwt based credentials. To be compliant with the `sd-jwt-vc` standard, you can use the `@sd-jwt/sd-jwt-vc` that is implementing this spec.
If you want to use the pure sd-jwt class or implement your own sd-jwt credential approach, you can use this library.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. I'll change the package name in #118

Copy link
Member

@lukasjhan lukasjhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me :)

Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
@cre8 cre8 merged commit a2daee4 into openwallet-foundation-labs:next Feb 28, 2024
8 checks passed
@cre8 cre8 deleted the fix/sd-jwt-vc branch February 28, 2024 13:45
cre8 added a commit to cre8/sd-jwt-js that referenced this pull request Mar 8, 2024
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
cre8 added a commit that referenced this pull request Mar 8, 2024
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants