Decides on the response to a request made by createVpRequest: body is the form the wallet posted (vp_token
and state), nonce and state are those of the request and audience is its client_id, prefix included. The
presentation goes through the nine steps with channel oid4vp: its key-binding JWT must carry that audience and nonce
and be at most 120 seconds old, the nonce is accepted once (the id vp:<nonce> in replay; without a replay store
nothing is remembered), the issuer must be one of trusted, and status lists come only from fetchStatusList, once for
each address and held to the policy's maximum age. The policy is DEFAULT_POLICIES.login_oid4vp unless given, and the
claims it names in requestedClaims must be disclosed; they are the claims the DCQL query of the request asks for.
A body with no vp_token, more or fewer than one query id or presentation, or a state that differs, is MALFORMED,
and so is a missing nonce or audience. The function never throws; the result has exactly one reason.
Decides on the response to a request made by createVpRequest:
bodyis the form the wallet posted (vp_tokenandstate),nonceandstateare those of the request andaudienceis itsclient_id, prefix included. The presentation goes through the nine steps with channeloid4vp: its key-binding JWT must carry that audience and nonce and be at most 120 seconds old, the nonce is accepted once (the idvp:<nonce>inreplay; without areplaystore nothing is remembered), the issuer must be one oftrusted, and status lists come only fromfetchStatusList, once for each address and held to the policy's maximum age. The policy isDEFAULT_POLICIES.login_oid4vpunless given, and the claims it names inrequestedClaimsmust be disclosed; they are the claims the DCQL query of the request asks for.A body with no
vp_token, more or fewer than one query id or presentation, or astatethat differs, is MALFORMED, and so is a missing nonce or audience. The function never throws; the result has exactly one reason.