-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
part of #275
trust it more than results on Attester (search first on WKD, then on Attester only if WKD doesn't return public key)
- port
Wkdclass from browser extension https://github.com/FlowCrypt/flowcrypt-browser/blob/83047917fc3ef6853ef5323340a64d4b3703a9d3/extension/js/common/api/key-server/wkd.ts (parts of it already done in constructing WKD urls #314 ) - add tests for it independently of the rest of the codebase, merge the class unused. You can use
robot@flowcrypt.comas a test-case that returns a public key. The public key is returned in binary format (unarmored) - I'm not sure if ourCoreclass is able to process these yet. Try and see - let me know if not. - another PR once the step 2 is merged - to start using this class during public key lookups. For each new recipient, search on WKD first (with a 3 second timeout). Only if public key not found on WKD, then search on Attester (the currently implemented lookup method).
Reactions are currently unavailable