Verifies the key proof of a credential request (OpenID4VCI 1.0 section 8.2, appendix F.1) and returns the key that the
credential is to be bound to.
The proof is a JWT with the exact typ openid4vci-proof+jwt and alg ES256, signed by the public key in its jwk
header; the header has neither kid nor x5c, and the jwk has no private member. In the payload aud equals (or
contains) audience, the nonce is the expected one, and iat lies within [now - maxAgeSeconds, now + 60]
(maxAgeSeconds is 300 unless given).
A nonce that differs is invalid_nonce; every other failure, a missing nonce included (section 8.3.1.2), is
invalid_proof. Whatever is wrong with proofJwt is reported, never thrown. Remembering the nonce and using it up is
up to the caller.
Verifies the key proof of a credential request (OpenID4VCI 1.0 section 8.2, appendix F.1) and returns the key that the credential is to be bound to.
The proof is a JWT with the exact
typopenid4vci-proof+jwt andalgES256, signed by the public key in itsjwkheader; the header has neitherkidnorx5c, and thejwkhas no private member. In the payloadaudequals (or contains)audience, thenonceis the expected one, andiatlies within[now - maxAgeSeconds, now + 60](maxAgeSecondsis 300 unless given).A nonce that differs is
invalid_nonce; every other failure, a missing nonce included (section 8.3.1.2), isinvalid_proof. Whatever is wrong withproofJwtis reported, never thrown. Remembering the nonce and using it up is up to the caller.