Closed risajef closed 9 months ago
yes, SD_JWT_HEADER is provided as an internal class attribute https://github.com/search?q=repo%3Aopenwallet-foundation-labs/sd-jwt-python%20SDJWTCommon&type=code
for changing it it seems that you have to overload your own class and inherit a specialized SDJWTCommon class, or differently overload the specific attribute after having create a SDJWTIssuer object
or better, @danielfett correct me if I'm wrong, it can be passed with the extra_header_parameters
, since it will be overloaded with the dict update, see these
You are right. I had an old version as it seems. I did not have the extra_header_parameters field.
This PR configures a new version as well https://github.com/openwallet-foundation-labs/sd-jwt-python/pull/10
Maybe I don't understand it. But in my use-case, I want to create a SDJWT. I do it with the following code:
But this does not set the
SD_JWT_HEADER
field. How do I set it? Or is it a bug?The resulting sd-jwt is therefore missing the type field in the header.