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

Method onArmoredKey

src/controller/import.controller.js:42–47  ·  view source on GitHub ↗
({data})

Source from the content-addressed store, hash-verified

40 }
41
42 onArmoredKey({data}) {
43 const slotId = getUUID();
44 this.keyringId = getActiveKeyringId();
45 setAppDataSlot(slotId, data);
46 mvelo.tabs.loadAppTab(`?krid=${encodeURIComponent(this.keyringId)}&slotId=${slotId}#/keyring/import/push`);
47 }
48
49 async onImportOk() {
50 const [importResult] = await this.keyring.importKeys([{type: 'public', armored: this.armored}]);

Callers

nothing calls this directly

Calls 3

getUUIDFunction · 0.90
getActiveKeyringIdFunction · 0.90
setAppDataSlotFunction · 0.90

Tested by

no test coverage detected