-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add X25519 (Curve25519) pub key support #144
Conversation
5bd935c
to
588c331
Compare
(notification backlog, sorry) Out of curiosity, how are (were?) you planning on using this? Also note: this code is in the very limited one-byte range. Does it really need to just be one byte or could you deal with a two-byte code (we have quite a few more of those). |
It's being used to express X25519 public keys, typically in DID (Decentralized Identifier) Documents, that can be used to derive secret keys for secure communications with an entity, typically identified by a DID. (see: https://github.com/digitalbazaar/x25519-key-pair and https://github.com/digitalbazaar/did-method-key-js).
Hmm, I now see:
Originally we only saw the three step process for adding something to the table and glossed over this advice. We've been using ed25519 keys (directly related to x25519 keys) that use the memorable @dmitrizagidulin -- can you take a look at this and our existing code to see how difficult it would be to change this (and perhaps recommend another code)? |
@dlongley No problem. It's not a bad change, it's just a couple places in one file in https://github.com/digitalbazaar/x25519-key-pair repo. (Plus the ripple of package version updates.) As for suggesting a new code - I'm not fully clear on how the two-byte/varint encoding mechanism works, but let me take a look. |
This would be great to have. @dmitrizagidulin maybe change the code to |
@dmitrizagidulin, let's change this to 0xec (right next to 0xed which is for Edwards25519 and this is for Curve25519) to address the above issue and get the libraries patched. |
@dlongley Perfect, will do. |
588c331
to
dfa6b42
Compare
@Stebalien I've changed the X25519/Curve25519 entry to |
Co-Authored-By: Dave Longley <dlongley@digitalbazaar.com>
🎉 |
Add support for X25519 public keys (for use with Key Agreement Keys etc).