Class: WKD

wkd~WKD()

new WKD()

Initialize the WKD client

Source:

Methods

(async) lookup() → {Promise.<(Uint8Array|{keys: Array.<module:key.Key>, err: (Array.<Error>|null)})>}

Search for a public key using Web Key Directory protocol.

Parameters:
Name Type Description
options.email String

User's email.

options.rawBytes Boolean

Returns Uint8Array instead of parsed key.

Source:
Returns:

The public key.

Type
Promise.<(Uint8Array|{keys: Array.<module:key.Key>, err: (Array.<Error>|null)})>