@openpgp/wkd-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

WKD Client

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

Example: lookup public key using WKD

import WKD from '@openpgp/wkd-client';
import { readKey } from 'openpgp';

(async () => {
  const wkd = new WKD();
  const publicKeyBytes = await wkd.lookup({
    email: 'alice@example.com'
  });
  const publicKey = await readKey({
    binaryKey: publicKeyBytes
  });
})();

Readme

Keywords

Package Sidebar

Install

npm i @openpgp/wkd-client

Weekly Downloads

13,589

Version

0.0.4

License

LGPL-3.0+

Unpacked Size

13.9 kB

Total Files

6

Last publish

Collaborators

  • larabr
  • twiss
  • bartbutler