MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / lookupKey

Function lookupKey

src/controller/import.controller.js:168–177  ·  view source on GitHub ↗
({keyringId, email, rotation})

Source from the content-addressed store, hash-verified

166 * and therefore newly discovered key could possibly be a key rotation event
167 */
168export async function lookupKey({keyringId, email, rotation}) {
169 const result = await keyRegistry.lookup({query: {email}, identity: keyringId});
170 if (result) {
171 try {
172 await (await createController('importKeyDialog')).importKey(keyringId, result.armored, rotation);
173 } catch (e) {
174 console.log('Key import after auto locate failed', e);
175 }
176 }
177}

Callers 5

validateSignatureMethod · 0.90
verifyMethod · 0.90
onArmoredMessageMethod · 0.90
lookupMissingKeysMethod · 0.90
decryptMethod · 0.90

Calls 2

createControllerFunction · 0.90
importKeyMethod · 0.45

Tested by

no test coverage detected