Problem
During a presentation flow for a holder, wallets will typically need to ask users which credentials they wish to share to the verifier.
This is difficult when using the WalletPresentFunctionality2, because the entire process is implemented as one function. The only interactivity available is the selectCredentialsForQuery function, but this provides a poor basis for requesting input from a user in my opinion.
Suggested solution:
The walletPresentHandling function actually consists of a list of fairly independent steps.
- Resolve AuthorizationRequest
- Select credentials according to some criteria function
- Apply holder policies
- Build VP Token response
- Send response
These could be provided as separate functions with only a minimal tweak to the code.
Problem
During a presentation flow for a holder, wallets will typically need to ask users which credentials they wish to share to the verifier.
This is difficult when using the WalletPresentFunctionality2, because the entire process is implemented as one function. The only interactivity available is the selectCredentialsForQuery function, but this provides a poor basis for requesting input from a user in my opinion.
Suggested solution:
The walletPresentHandling function actually consists of a list of fairly independent steps.
These could be provided as separate functions with only a minimal tweak to the code.