-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add credential schema #301
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #301 +/- ##
==========================================
+ Coverage 73.54% 73.58% +0.04%
==========================================
Files 45 45
Lines 2158 2162 +4
Branches 401 402 +1
==========================================
+ Hits 1587 1591 +4
Misses 376 376
Partials 195 195
|
expirationDate = expirationCalendar.time, | ||
data = KnownCustomerCredential(id = subjectDid.uri, country_of_residence = "US", tier = "Tier 1"), | ||
credentialSchema = CredentialSchema( | ||
id = "https://schema.org/PFI", |
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.
we should use a real schema here and update the verification logic to resolve and verify the json schema against the credential
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.
Verification pr will be coming next 👍
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.
approving to unblock merge, noting verification will come in a separate pr
Implement Credential Schema
A credential schema defines the structure and content of the data, enabling verifiers to assess if the data adheres to the established schema.
https://www.w3.org/TR/vc-data-model/#data-schemas