-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feature/167437546/initial setup #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we provide the ability pass the VC @context
?
Update: just recognized the feature is there, so the PR is fine by me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Set up the initial project
The first iteration of these functions requires the user to supply the entire JWT payload data structure as an input (with type completion). Future iterations will allow also provide runtime validation of the attributes, and improved developer experience by supporting construction through a builder pattern. Testing
|
This PR is to set up a new library responsible for creating JWTs that adhere to the W3C Verifiable Credentials and Presentation data models.
At the moment, there are 2 functions:
createVerifiableCredential()
andcreatePresentation()
. Their primary responsibility is to enforce the specs at compile-time through type definitions and runtime validation of the input attributes.Other functionality to be added may include: