openwallet-foundation-labs / sd-jwt-python

A Python implementation of the Selective Disclosure JWT (SD-JWT) spec.
Apache License 2.0
12 stars 10 forks source link

iat selective disclosable #16

Open fmarino-ipzs opened 5 months ago

fmarino-ipzs commented 5 months ago

according to the latest version of the specification, iat is now selective disclosable. In generate.py this is given as default claim, making selective disclosure of iat not possible.

 if include_default_claims:
     claims = {
          "iss": settings["identifiers"]["issuer"],
          "iat": settings["iat"],
          "exp": settings["exp"],
     }

It should become:

 if include_default_claims:
     claims = {
          "iss": settings["identifiers"]["issuer"],
          "exp": settings["exp"],
     }

In addition, in the master settings.yml iat should be removed and should be added in the specification.yml file within the specific example folder.