-
Notifications
You must be signed in to change notification settings - Fork 7
Credential Schemas #340
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
Credential Schemas #340
Conversation
🦋 Changeset detectedLatest commit: 9c1d726 The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for learncarddocs canceled.
|
✅ Deploy Preview for learn-card-chapi-example ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@TaylorBeeston - I just tried to running this, and am getting the following error. Do I need to take a specific build step? ![]() |
@Custard7 sometimes NX will cache things it shouldn't so maybe try starting the CLI with |
Omg nice lol. I can add support for 3.0.2 in the morning! |
@TaylorBeeston - is this the PR? Let me know if its ready, seems like we still need 3.0.2 and to update with main |
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.
@TaylorBeeston worked like a charm ✅ 🍀

@TaylorBeeston - should we merge this guy in? |
@Custard7 yup! I'm just waiting/watching the context plane stuff first! There was an issue where it didn't want to publish the dynamic loader plugin to npm 🙃 |
Overview
🎟 Relevant Jira Issues
📚 What is the context and goal of this PR?
The CLR Spec mentions that CLRs must have
a
credentialSchema
, and that verifiers must check the schema when verifying🥴 TL; RL:
Adds support for checking
credentialSchema
as defined in the CLR spec and various specs relatingto it/referenced by it
💡 Feature Breakdown (screenshots & videos encouraged!)
Most of the work here happened in SSI, and I submitted a PR upstream, so you can read about that here!
ProofOptions
type to correctly have the checks that SSI allows, and addedcredentialSchema
as one of those checkscredentialStatus
and/orcredentialSchema
to checks if the incoming VC has the respective fields🛠 Important tradeoffs made:
We are only supporting 1EdTechJSONSchemaValidator2019 schemas for now. I wrote about this in the SSI
PR, but basically it shouldn't be too bad to add support for more in the future, I'm just not super
familiar with what's out there.
Also, it seems adding some of the necessary contexts and syncing with upstream has bloated the WASM
payload up to almost 9 MB now =( Not sure what the best solution is, but maybe someday I can look
at taking some stuff out to lower that, or maybe just adding dynamic context resolution to our fork
and then not inlining so many contexts or something
🔍 Types of Changes
💳 Does This Create Any New Technical Debt? ( If yes, please describe and add JIRA TODOs )
Testing
🔬 How Can Someone QA This?
Open up the CLI, bring in this bad boy
and replace the issuer ID with
learnCard.id.did()
(i.e.vc.issuer.id = learnCard.id.did()
).Then issue it and verify the resulting credential. You should see
schema
in the checks array!📱 🖥 Which devices would you like help testing on?
🧪 Code Coverage
Documentation
📜 Gitbook
📊 Storybook
✅ PR Checklist
🚀 Ready to squash-and-merge?: