Class: WKD

WKD()

This class implements a client for the Web Key Directory (WKD) protocol in order to lookup keys on designated servers.

Constructor

new WKD()

Initialize the WKD client

Source:
See:

Methods

(async) lookup() → {Promise.<(Uint8Array|{keys: Array.<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.<Key>, err: (Array.<Error>|null)})>