eu-digital-identity-wallet / eudi-lib-jvm-sdjwt-kt

A library for issuing and verifying SD-JWT
Apache License 2.0
14 stars 4 forks source link

Make verifications suspendable #189

Closed babisRoutis closed 2 months ago

babisRoutis commented 2 months ago

Currently, top-level object SdJwtVerifier exposes various verification methods as plain non-suspendable functions.

This is fine as long as the caller has obtained beforehand (or out-of-band) the public key of the issuer. There are cases though, like those described in SD-JWT-VC profile (see here), where issuer's public key should be

For this reason and in order to support in the future SD-JWT-VC the methods of SdJwtVerifier must be suspendable. This will also affect also the interfaces of JwtSignatureVerifier and KeyBindingVerifier