Closed dmitrizagidulin closed 5 years ago
We should also add keyAgreement
to the dynamically generated keys and auto-produce an X25519KeyAgreementKey
from the ed25519 key.
This library can be used to convert a public ed25519 key to an x25519 key: https://github.com/dchest/ed2curve-js
@dmitrizagidulin -- status update here? Do you think you could you get this working today?
keyAgreement
seems to be working, adding tests...
Changed to use browser-only libs. Remaining steps:
@dlongley @davidlehn first draft ready to review.
LGTM for release, @davidlehn? Need to keep any branches around until we've updated dependencies.
Some partial code to help with this PR:
https://gist.github.com/dlongley/4548cfa6d512df3c7d5d7740689cdb43