Skip to content
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

ECDSA signature verification failed #179

Open
alexandermaceasa opened this issue Apr 26, 2019 · 0 comments
Open

ECDSA signature verification failed #179

alexandermaceasa opened this issue Apr 26, 2019 · 0 comments

Comments

@alexandermaceasa
Copy link

I want to verify a signature made on java, but it fails. I use the secp256k1 curve.

pbKey = "04F5FC7E75B48B2701DF9487F963A3D516E6D0121717CA2AA26BEC08940002D3D6C32798AC2F9A4D2765661CF9A01951A88401F9664E14D05866F3862C71290A7F";
hash = "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b";
var signature = "3046022100ACEDFAA93DA5FECB612CB551ECECB3BFDEBEA5E2B75B306F80DB78A22016B11D022100A74D576D85025705593CDF6DC6A6F9552CA30BFABCCA2F21E42E6982169271E2";
const myKey = ec.keyFromPublic(pbKey, 'hex');
const ver = myKey.verify(hash,signature);//it is always false

Any opinions?

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

No branches or pull requests

1 participant