-
Notifications
You must be signed in to change notification settings - Fork 73
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
[BUG] EdDSA signer accepts a 64 bytes Uint8Array
while EdDSA private key is 32 Bytes
#289
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale, this is still a bug. |
mirceanis
added a commit
that referenced
this issue
Sep 27, 2023
Only the first 32 bytes are used as the actual key fixes #289
mirceanis
added a commit
that referenced
this issue
Sep 27, 2023
Only the first 32 bytes are used as the actual key fixes #289
🎉 This issue has been resolved in version 7.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
Currently if I go and try to create an EdDSA signer it expects a 64 Byte private key, while EdDSA private key is 32 bytes, I understand it wants to get a concatenated version of Private + Public, however in that case the variable naming seems misleading.
Expected Behavior
It asks for a 32 Byte key, or the name is more suggestive that you require a concatenated key with priv+public
Failure Information
Error: bad_key: Invalid private key format. Expecting 64 bytes, but got 32
Steps to Reproduce
Environment Details
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Alternatives you considered
I would be more than happy to add a pull request which makes it so that we can accept both 32 byte and 64, this way the current functionality doesn't break.
The text was updated successfully, but these errors were encountered: