-
Notifications
You must be signed in to change notification settings - Fork 200
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
feat: dcql alpha #2098
base: main
Are you sure you want to change the base?
feat: dcql alpha #2098
Conversation
🦋 Changeset detectedLatest commit: 25b707e The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 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 |
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
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.
Very nice!
const sdJwtVcApi = this.getSdJwtVcApi(agentContext) | ||
const sdJwtVcRecords = formats.has('vc+sd-jwt') ? await sdJwtVcApi.getAll() : [] | ||
allRecords.push(...sdJwtVcRecords) | ||
|
||
const mdocApi = this.getMdocApi(agentContext) | ||
const mdocRecords = formats.has('mso_mdoc') ? await mdocApi.getAll() : [] | ||
allRecords.push(...mdocRecords) | ||
|
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.
The nice thing about dcql is that it is now much easier to preselect a subset of credentials based on doctype and vct.
for (const credentialQueryId of firstFullFillableOption) { | ||
const credential = dcqlQueryResult.credential_matches[credentialQueryId] | ||
|
||
if (credential.success && credential.record.type === 'MdocRecord' && 'namespaces' in credential.output) { |
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.
I usually prefer adding a diferentiator key that then also defiens the type of credential.
So credential has a format key and if it is mso_mdoc then output has namespaces.
} | ||
|
||
// TODO: this IS WRONG | ||
private createPresentationFrame(obj: Record<string, JsonValue>): IPresentationFrame { |
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.
Is this used?
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.
Yes for SdJwt presentations. Will fix it in the weekend
packages/openid4vc/src/openid4vc-verifier/OpenId4VcSiopVerifierService.ts
Show resolved
Hide resolved
…ax for oid4vp Signed-off-by: Timo Glastra <timo@animo.id>
…se` and `SdJwtVc` to allow for easier type narrowing Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
No description provided.