({keyringId, email, rotation})
| 166 | * and therefore newly discovered key could possibly be a key rotation event |
| 167 | */ |
| 168 | export async function lookupKey({keyringId, email, rotation}) { |
| 169 | const result = await keyRegistry.lookup({query: {email}, identity: keyringId}); |
| 170 | if (result) { |
| 171 | try { |
| 172 | await (await createController('importKeyDialog')).importKey(keyringId, result.armored, rotation); |
| 173 | } catch (e) { |
| 174 | console.log('Key import after auto locate failed', e); |
| 175 | } |
| 176 | } |
| 177 | } |
no test coverage detected