Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 461 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 461 Bytes

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: '[email protected]'
  });
  const publicKey = await readKey({
    binaryKey: publicKeyBytes
  });
})();