Open bc-pi opened 1 week ago
I am slightly in favor of using path as the sole option to reference data inside of a credential. This will work for data of any structure, if deeply nested and complex or more simple like for mdoc where it is only a list of claims next to each other.
The semantics of how path is used would be credential format specific in this case, so the spec would define claims path pointer for JSON based credentials and a two element path array referencing namespace and claim name for mdoc credentials. Additional credential formats would reuse path as data referencing mechanism if possible.
Having only path will keep the data objects and parsing logic more simple and defer credential specific stuff to the path evaluation logic.
I'm against semantic overloading of parameters depending on the credential format. That is why I'm in favor of https://github.com/openid/OpenID4VP/issues/284#issuecomment-2430108399.
From https://github.com/openid/OpenID4VP/pull/266#discussion_r1814171604 @leecam said:
yeah, I still don't really like this special handling for mdocs. Its pain when implementing it too. So I guess same question from me, can everything just be paths?
_Originally posted by @bc-pi in https://github.com/openid/OpenID4VP/pull/266#discussion_r1811480510_ :