Functions related to Ariadne Signature Profiles
Methods
(static) computeJwkFingerprint(key) → {Promise.<string>}
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>}
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>}
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>