Skip to content

Try to convert sign-keyPair to box-keyPair, and convert this back from box-keyPair. #9

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

username1565
Copy link

Hello, Dmitry!
Just for fun, in your free time, look at the source code of index.html, results of the tests and this commits changes username1565@e04888c username1565@26da676.

There is some problem with convert publicKey, there is one bit lost.

Maybe, you can fix this and optimize this code, which contains full explanation about differences between converted keys.

Best regards

@ghost
Copy link

ghost commented Feb 10, 2021

no idea if this is helpful, but I was also looking into converting between ed25519 and curve25519 bidirectionally.

according to my understanding of the linked thread, some private keys won't have bidirectional conversions, as the sign bit needs to be zero for bidirectional conversion. If you can change the private keys, this seems fixable, as you just negate the private key if it's a problem one and you get a new private key with the correct sign.

https://crypto.stackexchange.com/questions/13077/can-curve25519-keys-be-used-with-ed25519-keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant