Use the Challenge class to correlate separate requests, or to expire a request after a certain time. For example, a new compatible wallet app session is created when a client calls the requestShare method to request another client to share data. When the receiving client sends the data back, the client should send the same Challenge object. The SDK instance on the recipient’s end will check the expiration time passed in the challenge (if any), and terminate any further communication on the expired challenge.

The Challenge class looks like this:

class Challenge {
  UUID id;
  Instant expiresAt;

Data model

Property Description
id The UUID for the Challenge object.
expiresAt An Instant object containing the UNIX timestamp.