asp

Description:
  • Functions related to Ariadne Signature Profiles

Source:

Functions related to Ariadne Signature Profiles

Methods

(static) computeJwkFingerprint(key) → {Promise.<string>}

Description:
  • Compute the fingerprint for JWK keys

Source:
Parameters:
Name Type Description
key module:jose~JWK

The JWK public key for which to compute the fingerprint

Returns:

The computed fingerprint

Type
Promise.<string>

(static) fetchASPE(uri) → {Promise.<Profile>}

Description:
  • Fetch a public key using Web Key Directory

Source:
Example
const key = await doip.aspe.fetchASPE('aspe:domain.example:1234567890');
Parameters:
Name Type Description
uri string

ASPE URI

Returns:

The fetched profile

Type
Promise.<Profile>

(static) parseProfileJws(profileJws, uri) → {Promise.<Profile>}

Description:
  • Parse a JWS and extract the profile it contains

Source:
Example
const key = await doip.aspe.parseProfileJws('...', 'aspe:domain.example:123');
Parameters:
Name Type Description
profileJws string

Compact-Serialized profile JWS

uri string

The ASPE URI associated with the profile

Returns:

The extracted profile

Type
Promise.<Profile>