utils

Methods

# (inner) generateClaim(fingerprint, format) → {string}

Generate the string that must be found in the proof to verify a claim

Parameters:
Name Type Description
fingerprint string

The fingerprint of the claim

format number

The claim's format (see enums.ClaimFormat)

Returns:
Type
string

# (inner) generateProxyURL(type, data, opts) → {string}

Generate an URL to request data from a proxy server

Parameters:
Name Type Description
type string

The name of the fetcher the proxy must use

data object

The data the proxy must provide to the fetcher

opts object

Options to enable the request

Properties
Name Type Description
proxy.hostname object

The hostname of the proxy server

Returns:
Type
string