(unlockedKey)
| 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); |
nothing calls this directly
no test coverage detected