0.0.4 • Published 2 years ago

@openpgp/wkd-client v0.0.4

Weekly downloads
-
License
LGPL-3.0+
Repository
github
Last release
2 years ago

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
  });
})();