hyperledger / identus-edge-agent-sdk-ts

Apache License 2.0
15 stars 8 forks source link

Holder initiated Presentations #118

Open mixmix opened 8 months ago

mixmix commented 8 months ago

Proposed feature

For our use-case in Ahau, we want presentations to be part of our Tribe Registration process. We have secure end-points (public keys you can encrypt messages to) where it is safe to send messages to Kaitiaki (custodians/ guardians/ admins of a Tribe).

Here:

At the moment we have an slightly annoying workflow which goes:

  1. applicant sends registration
  2. kaitiaki (later) sees registration (status: "awaiting VCs"), and sends an oob-connection to initiate presentation of a VC
  3. applicant (later) sees oob-connection invite, accepts it
  4. kaitiaki (later) sees connection is ready, and requests presentation
  5. applicant (later) completes the presentation
  6. kaitiaki (later) sees the registration (status: "VCs confirmed) and can approve the registration

Each of those steps could have significant delays. The applicant may be applying from their phone/ laptop, and the kaitiaki is maybe reviewing applications from their laptop. They are not assumed to be both online at the same time, so each asynchronous step could make significant hold-up for a process

Feature description

The steps we would prefer:

  1. applicant sends in their registration, including an oob connection invite (signalling desire to present VCs)
  2. kaitiaki (later) sees registration, completes connection, AND requests presentation
  3. application (later) completes the presentation
  4. kaitiaki (later) sees the registration (status: "VCs confirmed) and can approve the registration

Anything else?

NOTE: we use scuttlebutt messages to communicate state-progression (which initiates actions) between the applicant (a Holder using the SDK) and the kaitiaki (Verifier, using a hosted Agent via https APIs)

mixmix commented 2 months ago

update .... we're working on this now with a grant! First step is "Holder initiated connections"

mkbreuningIOHK commented 2 months ago

@mixmix , so should this issue be assigned to you?