Skip to content

Separate "Wallet Present Handling" into steps in order to interact with user #1760

@eirikolberg

Description

@eirikolberg

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.

  1. Resolve AuthorizationRequest
  2. Select credentials according to some criteria function
  3. Apply holder policies
  4. Build VP Token response
  5. Send response

These could be provided as separate functions with only a minimal tweak to the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions