digitalbazaar / did-method-key

A did-io driver for the DID "key" method
Other
25 stars 10 forks source link

Initial did-method-key implementation. #1

Closed dmitrizagidulin closed 5 years ago

dlongley commented 5 years ago

Some partial code to help with this PR:

https://gist.github.com/dlongley/4548cfa6d512df3c7d5d7740689cdb43

dlongley commented 5 years ago

We should also add keyAgreement to the dynamically generated keys and auto-produce an X25519KeyAgreementKey from the ed25519 key.

dlongley commented 5 years ago

This library can be used to convert a public ed25519 key to an x25519 key: https://github.com/dchest/ed2curve-js

dlongley commented 5 years ago

@dmitrizagidulin -- status update here? Do you think you could you get this working today?

dmitrizagidulin commented 5 years ago

keyAgreement seems to be working, adding tests...

dmitrizagidulin commented 5 years ago

Changed to use browser-only libs. Remaining steps:

dmitrizagidulin commented 5 years ago

@dlongley @davidlehn first draft ready to review.

dlongley commented 5 years ago

LGTM for release, @davidlehn? Need to keep any branches around until we've updated dependencies.