Open risajef opened 9 months ago
Thanks for the input! May I ask what your use case for that is?
Hi Thank you for your swift reply.
I have created a Pydantic class to do SDJWT things. I can feed it a string and I now have all the information about it. Furthermore, I can call .jwt
to get the JWT. I can call .body
to get the content decrypted. This model is used many times in my project. During issuance of the credential. In the wallet. In the verifier. And I don't always want to also check if the SDJWT is valid. E.g., right after issuing I know it is valid, I just want an easy way to access the data. Or in the wallet I want to display the data. I would rather not do cryptographic checks when displaying my credential.
Also, in the wallet when I get the request object I have to match it against my credentials, but this requires a credential without the hashes.
I have the need to get the body of the SD JWT where the hashes are replaced with the disclosed values. Currently, I am doing a workaround.
I would appreciate it if I could do this simpler without reimplement parts of the verifier and without calling a private method.