Skip to content

fix: presenting proof for non Mdoc VCs #2226

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MosCD3
Copy link
Contributor

@MosCD3 MosCD3 commented Mar 12, 2025

This fixes #2222

Signed-off-by: Mostafa Gamal <moscd3@gmail.com>
@MosCD3 MosCD3 requested a review from a team as a code owner March 12, 2025 17:27
Copy link

changeset-bot bot commented Mar 12, 2025

⚠️ No Changeset found

Latest commit: 8591203

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Signed-off-by: Mostafa Gamal <moscd3@gmail.com>
@TimoGlastra
Copy link
Contributor

Is this issue also present in the latest 0.6 alpha? Since this PR won't affect 0.5.x releases

@MosCD3
Copy link
Contributor Author

MosCD3 commented Mar 12, 2025

I assume it is, since the same cause is in the main branch

@MosCD3
Copy link
Contributor Author

MosCD3 commented Mar 12, 2025

We ended up patching 0.5.13 to get Bifold to work with SD-JWT and JWTs

@MosCD3
Copy link
Contributor Author

MosCD3 commented Mar 28, 2025

@TimoGlastra Any thing needs to be done for this fix to go in?

@TimoGlastra
Copy link
Contributor

I'm not really sure what is causing this error.

The pex library should return an array. And the version being used in for pex 0.6 is different than 0.5

So:

  • does this error only occur on 0.5 or also 0.6? If only on 0.5 it should not go into the 0.6 branch
  • can you provide a reproducible example where no array is returned? I would like to add a test.

So before merging i'd like to understand the root cause, as the pex library should return an array in all cases

@MosCD3
Copy link
Contributor Author

MosCD3 commented Apr 14, 2025

@TimoGlastra Couple of things here
1st, this is not about PEX, there is an issue with logic itself
Observe when its MDOC, the object is structured this way

 verifiablePresentationResultsWithFormat.push({
          verifiablePresentationResult: {
            presentationSubmission: presentationSubmission,
            verifiablePresentations: [deviceResponseBase64Url],
            presentationSubmissionLocation,
          },
          claimFormat: presentationToCreate.claimFormat,
        })

When its not, the object is structured this way

   verifiablePresentationResultsWithFormat.push({
          verifiablePresentationResult,
          claimFormat: presentationToCreate.claimFormat,
        })

So, if PEX library returns and array regardless, this function has to be refactored to always construct the object verifiablePresentationResultsWithFormat consistent regardless

About testing, I can't see any docs or sample implementation for credo-6 to try with. Please guide me if you have more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to present OpenID credential
2 participants