-
Notifications
You must be signed in to change notification settings - Fork 143
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
jsthemis: Secure Message failed to verify signature: failure. #464
Comments
Hi @5sWind Please double check keys. Key you are using to verify signature should be a public key from the same keypair as private key you used to sign message. Basically, to sign and to verify message you are operating with the same keypair. Private key is used to sign message, public key is used to verify message signed with that private key. This is example I've done just now using jsthemis 0.11.0 in command line on macOS:
|
You can also test your message and keys with Themis data simulator: This is a web simulator that runs Themis and allows you to enter your keys (base64) and your data, and sign/verify it. |
Oh, I forget to receive the object as I returned two fields (privateKey and publicKey). |
Sure, no worries! :) |
@5sWind, just letting you know, that thank to you opening this issue, we've improved few things:
Thank you for asking question and paying attention! Our goal is to make Themis easy to use and hard to misuse, so we are happy to improve unclear bits :) |
Thanks @vixentael :). |
I have:
Issue description
Failed to verify signature using jsthemis.
Part of the verify signature code:
And the console:
Environment info
OS: macOS Mojave 10.14.4
Themis version: 0.11.1 (latest)
Installation way:
Crypto provider: I don't know
Link to example project
https://github.com/5sWind/nodejs-crypto-lab
The text was updated successfully, but these errors were encountered: