utils

Source:

Methods

(static) generateClaim(fingerprint, format) → {string}

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

Source:
Parameters:
Name Type Description
fingerprint string

The fingerprint of the claim

format ClaimFormat

The claim's format

Returns:

Generate claim

Type
string

(static) generateProxyURL(type, data, opts) → {string}

Description:
  • Generate an URL to request data from a proxy server

Source:
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 module:types~VerificationConfig

Options to enable the request

Returns:

Generated proxy URL

Type
string

(static) getUriFromString(text) → {Array.<string>}

Description:
  • Get the URIs from a string and return them as an array

Source:
Parameters:
Name Type Description
text string

The text that may contain URIs

Returns:

List of URIs extracted from input

Type
Array.<string>