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

Split up Verifiable Credential verify into its smallest parts for more granularity #425

Open
nitro-neal opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
package: credentials @web5/credentials package w3c-vc-dm-2.0 W3C Verifiable Credential Data Model 2.0

Comments

@nitro-neal
Copy link
Contributor

Verifications

These are all of the high level verifications that we will have modular access to for the api surface

  • verify: Runs all verification checks.
  • verifyIntegrity: Performs a JWT integrity check to ensure it adheres to expected formatting and contains all necessary elements. These include header verification, payload structure, and encoding checks.
  • verifySignature: Cryptographic verification of the JWT's signature to confirm its authenticity. This involves resolving the issuer's DID, retrieving the corresponding public key, and using it to verify the signature against the JWT's payload. These include did resolution, signature verification and algorithm verification
  • verifyVcDataModel: Verifies if it is a valid VC data model, confirming the VC's structural compliance with the relevant standards.
  • verifyExpiration: Checks the VC expiration date to ensure it is still valid.
  • verifyStatus: Checks if the status list credential exists and if it is valid or revoked.
  • verifySchema: Ensures that the VC conforms to a specified schema.
  • verifyTrustedIssuer: Will accept options for a list of trusted issuer dids ⚠️

These functions can be public and work along side the VerificationOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: credentials @web5/credentials package w3c-vc-dm-2.0 W3C Verifiable Credential Data Model 2.0
Projects
Status: In Progress
Development

No branches or pull requests

2 participants