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
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
This middleware uses the presexch.PresentationDefinition.CreateVP(credentials, options) to create the VP in P-E format. It obtains the values for the credentials argument from a VP submitted by the user via the service.DIDCommAction.Continue() function by using the presentproof.WithPresentation() option.
What is the problem here? It requires the user to create a VP in the first place, defeating the use of the logic in presexch.PresentationDefinition.CreateVP(). The flow currently looks like this:
presentation request message received
event fired to the user
user fetches all required credentials somehow
user passes these credentials to event.Continue()
the middleware creates a VP of type PresentationSubmission.
The VP is sent without proof attached (it might have in the case of BBS+, I haven't checked)
Step 3 and 6 are the biggest problems here. How does the user figure out which credentials are required? How can the verifier verify a VP without proof (it cannot)?
Aside from adding a proof on this VP, we are missing an important cog in the machine: the presentation definitions criteria needs to be transformed into a query/process that is run against the verifiable store to fetch the required credentials. There are several ways this can be done (user is exposed to a utility function that fetches the matching credentials from the store and then passes them to event.Continue(), PresentationDefinition.CreateVP() can do it automatically given a handle on the verifiable store, etc.
The text was updated successfully, but these errors were encountered:
Middleware added in PR #2472
This middleware uses the
presexch.PresentationDefinition.CreateVP(credentials, options)
to create the VP in P-E format. It obtains the values for thecredentials
argument from a VP submitted by the user via theservice.DIDCommAction.Continue()
function by using thepresentproof.WithPresentation()
option.What is the problem here? It requires the user to create a VP in the first place, defeating the use of the logic in
presexch.PresentationDefinition.CreateVP()
. The flow currently looks like this:event.Continue()
PresentationSubmission
.Step 3 and 6 are the biggest problems here. How does the user figure out which credentials are required? How can the verifier verify a VP without proof (it cannot)?
Aside from adding a proof on this VP, we are missing an important cog in the machine: the presentation definitions criteria needs to be transformed into a query/process that is run against the verifiable store to fetch the required credentials. There are several ways this can be done (user is exposed to a utility function that fetches the matching credentials from the store and then passes them to
event.Continue()
,PresentationDefinition.CreateVP()
can do it automatically given a handle on the verifiable store, etc.The text was updated successfully, but these errors were encountered: