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

Method importPublicKey

src/client-API/client-api.js:324–326  ·  view source on GitHub ↗

* Asks the user if they want to import the public key. * @param {AsciiArmored} armored - public key to import * @returns {Promise. } 'IMPORTED' - key has been imported 'UPDATED' - key already in keyring, new key merged with existing ke

(armored)

Source from the content-addressed store, hash-verified

322 error.code = 'WRONG_ARMORED_TYPE'
323 */
324 importPublicKey(armored) {
325 return send('import-pub-key', {identifier: this.identifier, armored});
326 }
327
328 /**
329 * @typedef {Object} AutocryptMailHeaders

Callers

nothing calls this directly

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected