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

Method importKeys

src/controller/app.controller.js:252–260  ·  view source on GitHub ↗
({keys, keyringId})

Source from the content-addressed store, hash-verified

250 }
251
252 async importKeys({keys, keyringId}) {
253 const keyring = await keyringById(keyringId);
254 const result = await keyring.importKeys(keys);
255 await this.sendKeyUpdate();
256 if (result.some(({type}) => type === 'success')) {
257 recordOnboardingStep(ADD_KEY, 'Import');
258 }
259 return result;
260 }
261
262 async sendKeyUpdate() {
263 (await getAllControllerByType('editor')).forEach(editorCntrl => editorCntrl.sendKeyUpdate());

Callers 6

onImportOkMethod · 0.45
updateKeyMethod · 0.45
keyLookupMethod · 0.45
onKeyLookupMethod · 0.45
downloadSyncMessageMethod · 0.45

Calls 2

sendKeyUpdateMethod · 0.95
recordOnboardingStepFunction · 0.90

Tested by

no test coverage detected