You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[x] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
Working with the latest version of the library I am not able to validate a presentation submission to comply with a presentation definition with multiple input descriptors.
inputDescriptorFilterEvaluationHandler.spec.zip
This is an updated test spec illustrating the issue. I provide it as a file here as I am not sure whether it's a desired feature of the library the current behavior or a bug worth opening a pull request for.
Debugging the corresponding handler I see 2 issues that prevent correct utilization of the library at the moment:
Holds true for both jp.nodes(pd, '$..fields[*]'); and wrappedVcs which hold no such context. Thus, it's impossible to extend current logic of the handler to map 1:1 PS to PD without broader surface change in the library. (I think)
Each VC is expected to comply with all input descriptors of the PD
This is more problematic in my opinion. Is it wrong expectation from my side that
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I made an attempt of a workaround by assuming an index based comparison in hope to find a solution without a major refactoring, but this breaks a lot of existing tests
I'm submitting a ...
[x] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
Working with the latest version of the library I am not able to validate a presentation submission to comply with a presentation definition with multiple input descriptors.
inputDescriptorFilterEvaluationHandler.spec.zip
This is an updated test spec illustrating the issue. I provide it as a file here as I am not sure whether it's a desired feature of the library the current behavior or a bug worth opening a pull request for.
Debugging the corresponding handler I see 2 issues that prevent correct utilization of the library at the moment:
Taken from https://identity.foundation/presentation-exchange/spec/v2.0.0/#presentation-submission
Holds true for both
jp.nodes(pd, '$..fields[*]');
andwrappedVcs
which hold no such context. Thus, it's impossible to extend current logic of the handler to map 1:1 PS to PD without broader surface change in the library. (I think)This is more problematic in my opinion. Is it wrong expectation from my side that
should be compared only to
I made an attempt of a workaround by assuming an index based comparison in hope to find a solution without a major refactoring, but this breaks a lot of existing tests
The text was updated successfully, but these errors were encountered: