eu-digital-identity-wallet / eudi-lib-jvm-presentation-exchange-kt

Implementation of DIF Presentation Exchange v2 specification in Kotlin (jvm)
Apache License 2.0
5 stars 3 forks source link

Too strict definition of Claim format designations #142

Closed babisRoutis closed 7 months ago

babisRoutis commented 7 months ago

Presentation Exchange contains a section about the contents of an attribute named format which can be found either as a top-level element of presentation definition or with an input_descriptor.

This format is a JSON object having as attribute names claim formats coming by a controlled registry. In turn, each of these nested claim formats may point to another JSON Object which contains either an array alg or proof_type as defined in the relevant json schema.

Library reflects in its types the above rules, strictly. There are problems with this strictness:

OpenId4VP draft 20 uses claim formats that are not (yet) registered to the aforementioned Presentation Exchange controlled registry. In particular:

So library-wise there are two options:

vafeini commented 7 months ago

Indeed option 2 is a better way forward. At least until the set of formats is stabilized library should be more relaxed.