From 85d129af77bd153b7272b9ed6a14c5cea61de61a Mon Sep 17 00:00:00 2001 From: Ali Cherry <32630359+alichry@users.noreply.github.com> Date: Tue, 20 Jul 2021 11:54:29 +0300 Subject: [PATCH] Export Subkey class (#1381) --- src/index.js | 2 +- src/key/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 977db10b..75b320a8 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,7 @@ export { generateSessionKey, encryptSessionKey, decryptSessionKeys } from './openpgp'; -export { PrivateKey, PublicKey, readKey, readKeys, readPrivateKey, readPrivateKeys } from './key'; +export { PrivateKey, PublicKey, Subkey, readKey, readKeys, readPrivateKey, readPrivateKeys } from './key'; export { Signature, readSignature } from './signature'; diff --git a/src/key/index.js b/src/key/index.js index a77d5d79..a7758294 100644 --- a/src/key/index.js +++ b/src/key/index.js @@ -16,6 +16,7 @@ import { import PrivateKey from './private_key.js'; import PublicKey from './public_key.js'; +import Subkey from './subkey.js'; export { readKey, @@ -29,5 +30,6 @@ export { getPreferredHashAlgo, createSignaturePacket, PrivateKey, - PublicKey + PublicKey, + Subkey };