(defaultKey)
| 214 | } |
| 215 | |
| 216 | async validateDefaultKey(defaultKey) { |
| 217 | try { |
| 218 | return await defaultKey.getEncryptionKey() && |
| 219 | await defaultKey.getSigningKey() && |
| 220 | !await trustKey.isKeyPseudoRevoked(this.id, defaultKey); |
| 221 | } catch (e) { |
| 222 | return false; |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | getPrivateKeyByFpr(keyFpr) { |
| 227 | return this.keystore.privateKeys.getForId(keyFpr); |
no outgoing calls
no test coverage detected