MCPcopy
hub / github.com/mailvelope/mailvelope / addKey

Method addKey

src/modules/KeyringBase.js:298–305  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

296 }
297
298 addKey(key) {
299 if (key.isPrivate()) {
300 this.keystore.privateKeys.push(key);
301 } else {
302 this.keystore.publicKeys.push(key);
303 }
304 return key;
305 }
306
307 /**
308 * Generate a new PGP keypair and optionally upload the public key to the

Callers 3

removeUserMethod · 0.80
updateKeyMethod · 0.80
setKeyPwdMethod · 0.80

Calls 2

isPrivateMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected