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

refactor(identityHub): client and verifier abstraction over the VC format #76

Merged

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Dec 20, 2022

What this PR changes/adds

Refactor the IdentityHubClient and IdentityHubCredentialsVerifier

Why it does that

Support different VC format

Further notes

For abstracting the format when storing and verifying VC in different format a concept of
CredentialEnvelope has been introduced in SPI. Which basically carries different implementation/format for Verifiable credentials.
On top of that two main interfaces are introduced in order to parse/serialize CredentialEnvelope and for verifying the content of a CredentialEnvelop

Module refactor:

  • identity-hub-verifier: moved to core and now contains only the logic for verifying credentials without specific format.
  • identity-hub-credentials-jwt: Jwt implementation of verifiable credentials
  • identity-hub-verifier-jwt: credentials verifier that works with Jwt format

Linked Issue(s)

Closes #75

Checklist

  • added appropriate tests?
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • added relevant details to the changelog? (skip with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

@wolf4ood wolf4ood self-assigned this Dec 20, 2022
@wolf4ood wolf4ood added enhancement New feature or request refactoring Changing directories, modules, structures, etc. without functional changes labels Dec 20, 2022
@wolf4ood wolf4ood force-pushed the feat/75_refactor_client_and_verifier branch from a5acf01 to da036cd Compare December 21, 2022 10:47
@wolf4ood wolf4ood marked this pull request as ready for review December 21, 2022 10:54
@github-actions
Copy link

This pull request is stale because it has been open for 7 days with no activity.

@bscholtes1A bscholtes1A merged commit d44f0d5 into eclipse-edc:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Changing directories, modules, structures, etc. without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: IdentityHubClient and IdentityHubCredentialsVerifier
3 participants