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

Improve point size calculation in toWebCryptoSignature method #69

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

microshine
Copy link
Contributor

The toWebCryptoSignature method now calculates the point size based on the length of the r and s values. If the length is less than or equal to 32, the point size is set to 256. If the length is between 33 and 48, the point size is set to 384. Otherwise, the point size is set to 521. This ensures that the correct point size is used when encoding the ECDSA signature in X9.62 format.

@microshine microshine merged commit e3868b0 into master Oct 8, 2024
5 checks passed
@microshine microshine deleted the fix-ec-signature branch October 8, 2024 20:36
Copy link

github-actions bot commented Oct 8, 2024

NPM package v1.8.1 has been published 🎉

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

Successfully merging this pull request may close these issues.

1 participant