w3c-ccg / vp-request-spec

Specification for a query language to request Verifiable Presentations from wallets etc.

Home Page:https://w3c-ccg.github.io/vp-request-spec/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to do request queries by reference?

dmitrizagidulin opened this issue · comments

Placeholder for the discussion -
When doing a QueryByExample request, how would you pass in the example by reference? (As opposed to by value, as is currently in the spec.)

@dmitrizagidulin -- Per our discussion, we should briefly describe two approaches to this problem:

  1. Shared directories for queries where query handlers have to know about the directories and do dereferencing
  2. Shared directories for queries where query handlers don't have to know about the directories and query submitters just do the dereferencing

Both should achieve the use case of "stored" and "reusable" queries. I'm in favor of the second approach because it's a better separation of concerns, reducing overall complexity to implement a query handler and reducing attack surface.