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 }}
Repository navigation
Avoid duplication of CredentialItem when it answers multiple different CredentialQueries #69
It's possible to have a single credential that answer multiple CredentialQueries. e.g. if one queries says 'I want your address, from a DocType' and another says 'I want your first name, last name' from an DocType'. Lets say, in different scenario sets.
I would then use the same CredentialItem (signed and containing both first name/last name and address) in the response. So the credential response Enveope would look like:
This is the same as what OpenID4VP does, but we can do better if we just do:
(rename CredentialRef => QueryRef as it is a reference to a query not a credential)
Now we would be able to return the above as:
{
credentials: { cr_1 => { my_big_credential} }
queries: { address_query_id => { cr_1}, name_query_id => { cr_1 } }
scenarios: { address_scenario_id => [ address_query_id], name_scenario_id => [name_query_id] }
}
which avoids duplicating it (at the cost of having to id-trace).
An alternative option would be to allow CredentialItem to be polymorphic, and able to return a 'CredentialRef' instead of the exact value, indicating which query the credential will be found in.
Okay, so I read the other issue (#70) first and made the response there, But I think the solutions I mentioned there address this issue right?
Your solution also works. In general I like the rename to QueryRef to what's in the current text called credentialRef.
Should we merge this issue and #70? If we do that, I think the choice should be between:
Your option (I made the change to support allow_multiple)
Yeah, I like your Option 2 better as well, it's nicer than being polymorphic, and keeps the simple cases simpler (rather than introducing an extra indirection).
Makes sense to solve the issues together (I just noticed them both so filed separately for clarity).
Activity
martijnharing commentedon Oct 8, 2026
Okay, so I read the other issue (#70) first and made the response there, But I think the solutions I mentioned there address this issue right?
Your solution also works. In general I like the rename to QueryRef to what's in the current text called credentialRef.
Should we merge this issue and #70? If we do that, I think the choice should be between:
Your option (I made the change to support allow_multiple)
Option 2 from #70 (with the change to queryref)
GarethCOliver commentedon Oct 12, 2026
Yeah, I like your Option 2 better as well, it's nicer than being polymorphic, and keeps the simple cases simpler (rather than introducing an extra indirection).
Makes sense to solve the issues together (I just noticed them both so filed separately for clarity).
andrewhughes3000 commentedon Oct 15, 2026
WG discussion:
Response: list CredentialItems with query_refs; rename CredentialRef …
Response: list CredentialItems with query_refs; rename CredentialRef …