-
Notifications
You must be signed in to change notification settings - Fork 23
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
Import ecies keys from ecdsa keys #16
Comments
You have to use the same elliptic curve, which is secp256k1, and import it with hex string or bytes |
I see that there are helper functions to import ecies keys from bytes. But how to properly export ecdsa keys to bytes? |
You can check the documentation of ecdsa. It's just a big int, you can convert it to bytes. |
Well, sure I can add the helper function that accepts I hope library user SHOULD understand how it works and be able to write such a function himself. |
In my specific case, the ecdsa key is P256:
Can I just export its big Int D data as []byte and feed It into NewPrivateKeyFromBytes() ? |
@udhos well, currently this library set does NOT support We already discuss it here: ecies/py#81 |
Hi,
How can I import ecies keys from existing ecdsa keys?
ecdsa: https://golang.org/pkg/crypto/ecdsa/
ecies: https://github.com/ecies/go
Thanks,
Everton
The text was updated successfully, but these errors were encountered: