Skip to content

integrate WKD public key search #296

@tomholub

Description

@tomholub

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)

  1. port Wkd class 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 )
  2. add tests for it independently of the rest of the codebase, merge the class unused. You can use robot@flowcrypt.com as a test-case that returns a public key. The public key is returned in binary format (unarmored) - I'm not sure if our Core class is able to process these yet. Try and see - let me know if not.
  3. 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions