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

Method revokeKey

src/controller/app.controller.js:134–140  ·  view source on GitHub ↗
({fingerprint, keyringId})

Source from the content-addressed store, hash-verified

132 }
133
134 async revokeKey({fingerprint, keyringId}) {
135 const keyring = await keyringById(keyringId);
136 const privateKey = keyring.getPrivateKeyByFpr(fingerprint);
137 const unlockedKey = await this.unlockKey({key: privateKey, reason: 'PWD_DIALOG_REASON_REVOKE'});
138 await keyring.revokeKey(unlockedKey);
139 await this.sendKeyUpdate();
140 }
141
142 async reloadKeystore({keyringId}) {
143 const keyring = await keyringById(keyringId);

Callers

nothing calls this directly

Calls 3

unlockKeyMethod · 0.95
sendKeyUpdateMethod · 0.95
getPrivateKeyByFprMethod · 0.80

Tested by

no test coverage detected