proofs

Methods

# (async, inner) fetch(data, opts) → {Promise.<(object|string)>}

Delegate the proof request to the correct fetcher. This method uses the current environment (browser/node), certain values from the data parameter and the proxy policy set in the opts parameter to choose the right approach to fetch the proof. An error will be thrown if no approach is possible.

Parameters:
Name Type Description
data object

Data from a claim definition

opts object

Options to enable the request

Returns:
Type
Promise.<(object|string)>