({keyringId, recipients})
| 47 | } |
| 48 | |
| 49 | async queryValidKey({keyringId, recipients}) { |
| 50 | const keyMap = await getKeyByAddress(keyringId, recipients); |
| 51 | for (const email in keyMap) { |
| 52 | if (keyMap[email]) { |
| 53 | keyMap[email] = { |
| 54 | keys: keyMap[email].map(key => ({ |
| 55 | fingerprint: key.getFingerprint(), |
| 56 | lastModified: getLastModifiedDate(key).toISOString(), |
| 57 | source: 'LOC' // local keyring |
| 58 | })) |
| 59 | }; |
| 60 | } else { |
| 61 | const found = await keyRegistry.lookup({query: {email}, identity: keyringId}); |
| 62 | if (found) { |
| 63 | keyMap[email] = { |
| 64 | keys: [found] |
| 65 | }; |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | return keyMap; |
| 70 | } |
| 71 | |
| 72 | async exportOwnPubKey({keyringId, emailAddr}) { |
| 73 | const keyring = await keyringById(keyringId); |
nothing calls this directly
no test coverage detected