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

Method setDefaultKey

src/modules/KeyStoreLocal.js:80–82  ·  view source on GitHub ↗
(fpr)

Source from the content-addressed store, hash-verified

78 }
79
80 async setDefaultKey(fpr) {
81 await setKeyringAttr(this.id, {default_key: fpr});
82 }
83
84 async generateKey({keyAlgo, userIds, passphrase, numBits, keyExpirationTime}) {
85 const curve = keyAlgo === 'ecc' ? 'curve25519' : undefined;

Callers 1

getDefaultKeyFprMethod · 0.95

Calls 1

setKeyringAttrFunction · 0.90

Tested by

no test coverage detected