-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Issue & Verify API routes #909
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 6e18c7f The changes in this PR will be included in the next version bump. This PR includes changesets to release 46 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 staging-learncardapp canceled.
|
|
👋 Hey there! It looks like you modified code, but didn't update the documentation in If this PR introduces new features, changes APIs, or modifies behavior that users or developers need to know about, please consider updating the docs. 🏄 Windsurf TipYou can ask Windsurf to help:
Windsurf will review your changes and suggest appropriate documentation updates based on what was modified. 📚 Documentation Guide
This is an automated reminder. If no docs are needed, feel free to ignore this message. |
|
🥷 Code experts: TaylorBeeston Custard7, TaylorBeeston have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
Issue & Verify API routes
Summary
This PR introduces two new endpoints in the brain-service that enable credential issuance and verification through the LearnCard Network API, along with corresponding SDK methods and comprehensive documentation.
Features
New Brain-Service Endpoints
issueCredential - Authenticated endpoint that allows clients to issue credentials using registered signing authorities
credentials:writescopeverifyCredential - Public endpoint for verifying credentials
Network Plugin Enhancements
API Key LearnCard Support
API key-initialized LearnCards can now seamlessly issue credentials via learnCard.invoke.issueCredential() - the network plugin automatically detects the absence of a local keypair and delegates to the user's registered signing authority.
Files Changed
@learncard/typesIssueCredentialInputValidator,VerifyCredentialInputValidatorbrain-servicesrc/routes/credentials.ts- New route implementationsbrain-service@learncard/network-pluginTesting
Unit Tests Added
E2E Tests Added
Documentation
Added comprehensive documentation for API key initialization in docs/sdks/learncard-core/construction.md: