Answers an OpenID4VP request: reads it as parseVpRequest does, presents the credential with the claims named
in disclose and posts the answer to the request's response_uri as a form (vp_token={"<query id>":["<presentation>"]}
and the state of the request), as OpenID4VP 1.0 sections 8.1 and 8.2 have it. The key-binding JWT is signed by
signer at now for the audience client_id (prefix included) with the nonce of the request, so the answer is good
for this request and this verifier only.
Nothing beyond the request is disclosed: a claim the credential query does not ask for, a credential of a type it does
not name, and a signer that is not the holder key of the credential are INVALID_ARGUMENT, before anything is sent. A
request the wallet does not take is as in parseVpRequest. fetch is the global fetch unless given; the post
asks not to follow redirects (redirect: 'error'), so with the global fetch the presentation goes to response_uri
and nowhere else; a post that fails is NETWORK. The result is the HTTP status of the verifier's answer, with
redirectUri when a successful answer asks the user agent to continue at an https address (or http on the local
machine).
Answers an OpenID4VP request: reads it as parseVpRequest does, presents the credential with the claims named in
discloseand posts the answer to the request'sresponse_urias a form (vp_token={"<query id>":["<presentation>"]}and thestateof the request), as OpenID4VP 1.0 sections 8.1 and 8.2 have it. The key-binding JWT is signed bysigneratnowfor the audienceclient_id(prefix included) with the nonce of the request, so the answer is good for this request and this verifier only.Nothing beyond the request is disclosed: a claim the credential query does not ask for, a credential of a type it does not name, and a signer that is not the holder key of the credential are INVALID_ARGUMENT, before anything is sent. A request the wallet does not take is as in parseVpRequest.
fetchis the globalfetchunless given; the post asks not to follow redirects (redirect: 'error'), so with the globalfetchthe presentation goes toresponse_uriand nowhere else; a post that fails is NETWORK. The result is the HTTP status of the verifier's answer, withredirectUriwhen a successful answer asks the user agent to continue at anhttpsaddress (orhttpon the local machine).