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

Method revokeKey

src/modules/KeyringLocal.js:216–223  ·  view source on GitHub ↗
(unlockedKey)

Source from the content-addressed store, hash-verified

214 }
215
216 async revokeKey(unlockedKey) {
217 const {privateKey: revokedKey} = await revokeKey({key: unlockedKey, format: 'object'});
218 const defaultKeyFpr = await this.keystore.getDefaultKeyFpr();
219 if (defaultKeyFpr === revokedKey.getFingerprint()) {
220 await this.setDefaultKey('');
221 }
222 await this.updateKey({srcKey: revokedKey});
223 }
224
225 async removeUser(privateKey, userId) {
226 const index = privateKey.users.findIndex(({userID: {userID}}) => userID === userId);

Callers

nothing calls this directly

Calls 3

updateKeyMethod · 0.95
getDefaultKeyFprMethod · 0.45
setDefaultKeyMethod · 0.45

Tested by

no test coverage detected