MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / readArmoredPrivate

Function readArmoredPrivate

src/modules/KeyStoreGPG.js:85–93  ·  view source on GitHub ↗
(armored)

Source from the content-addressed store, hash-verified

83}
84
85async function readArmoredPrivate(armored) {
86 try {
87 const publicKey = await readKey({armoredKey: armored});
88 const privateKey = new PrivateKeyGPG(publicKey.toPacketList());
89 return {publicKey, privateKey};
90 } catch (e) {
91 console.log('Parsing armored key from GnuPG failed', e);
92 }
93}

Callers 1

generateKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected