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

createSign not working consistently for non-RSA keys #307

Open
Fabian-Lobnig opened this issue May 8, 2024 · 0 comments
Open

createSign not working consistently for non-RSA keys #307

Fabian-Lobnig opened this issue May 8, 2024 · 0 comments

Comments

@Fabian-Lobnig
Copy link

Hi,

I tested createSign with secp256k1 and secp256r1 key input and it randomly produces incorrect signatures but sometimes correct ones - I cross tested this with NodeJS which gives me this error whenever there is an incorrect signature:

error: Signature without r or s
      at assert (node:crypto:2371:39)
      at new Signature (node:crypto:7569:45)
      at node:crypto:7699:75

(As temporary workaround I used @noble-curves)

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