selectFrom
method requires all credentials to match all input descriptors
#114
Labels
in progress
Work is being done
I'm submitting a ...
[x] bug report
Summary
It seems that the PEX library (both v1 and v2 it seems), require all credentials to match all input_descriptors. I've created a code sandbox which reproduces the issue: https://replit.com/@timo10/PEX-Playground#index.ts.
It's run with two credentials from two issuers
did:web:vc.transmute.world
anddid:web:animo.id
. there's two input descriptors, where the first one requiresdid:web:animo.id
to be the issuer, and the second onedid:web:vc.transmute.world
. Running it with a single input descriptor, will yield the correct result, as well as changing the input descriptors so a potentional credential will match all input descriptors (so two input_descriptors that matchdid:web:animo.id
.Maybe I'm completely misunderstanding PEX, but it is not required AFAIK for all credentials to match all input_descriptors. This is how you can request multiple credentials from a holder.
Credentials
Presentation Definition
Result
cc @nklomp
The text was updated successfully, but these errors were encountered: