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

Method keyLookup

src/controller/app.controller.js:404–415  ·  view source on GitHub ↗
({query, keyringId, importKey, latest, externalOnly})

Source from the content-addressed store, hash-verified

402 }
403
404 async keyLookup({query, keyringId, importKey, latest, externalOnly}) {
405 const result = await keyRegistry.lookup({query, identity: keyringId, latest, externalOnly});
406 if (!result) {
407 return;
408 }
409 if (importKey) {
410 const keyring = await keyringById(keyringId);
411 await keyring.importKeys([{type: 'public', armored: result.armored}]);
412 } else {
413 return result;
414 }
415 }
416
417 async unlockKey(options) {
418 const pwdControl = await createController('pwdDialog');

Callers 5

onPublicKeyUseridsFunction · 0.80
handleChangeRecipientsFunction · 0.80
handleChangeRecipientsCcFunction · 0.80
handleChangeRecipientsFunction · 0.80

Calls 1

importKeysMethod · 0.45

Tested by

no test coverage detected