-
Notifications
You must be signed in to change notification settings - Fork 85
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
getKeyDataFromString hash validation fail #166
Comments
What do you mean by "the hex file being loaded"? Can you share a code snippet and a random throw-away example key that reproduces the same issue? Typically when we see this error, someone thought they could just (In reality, you're supposed to generate them within Halite, which produces a key in the form of |
Interesting. So if I already have a key pair, how do I encode them to be 'halite compatible'? |
Lines 769 to 778 in 7596d5c
|
OK thank you. |
I made a small helper as below and exported the new file to disk but it now says it's invalid (must be CRYPTO_SIGN_PUBLICKEYBYTES long). I'm trying to load exported file as follows
I have attached a sample public key output from the function. What am I doing wrong?
|
You cannot use RSA keys with Halite. Please generate a new keypair within Halite and use that instead. |
OK thank you. I am not familiar with the key format generated by sodium. Assuming I want to use base64 form, is it safe to save rawkey file and encode using However I noticed there's already a function to save/export in KeyFactory class Also the documentation to generate a signature keypair references the |
Yep, the documentation for |
I've double-checked the hex file being loaded but still getKeyDataFromString always throws
Checksum validation fail
.Is this some sort of OS encoding issue? What could be the issue?
The text was updated successfully, but these errors were encountered: