verifyNonce

open suspend override fun verifyNonce(nonce: ByteString)

Verifies that the presentation was bound to the expected nonce.

NB: nonce is only used for certain request types, specifically DC API and OpenID4VP requests.

Parameters

nonce

the expected nonce (e.g. the one returned by PaymentProcessor.createTransaction).

Throws

if the nonce does not match.