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

s of ECDSA sign value is not meet EIP-2 valid range (0 < s < secp256k1n / 2 + 1) #263

Open
stevenchiu7311 opened this issue Aug 31, 2023 · 0 comments
Assignees

Comments

@stevenchiu7311
Copy link

stevenchiu7311 commented Aug 31, 2023

I tried using ECDSA entry sample to sign transaction but sometimes get s value not accepted by go-ethereum crypto.ValidateSignatureValues check.
The problem seems s value is not meet EIP-2 specification which define s value should be in range (0 < s < secp256k1n / 2 + 1).

Except resigning, could you kindly provide some advise to avoid this wrong signed result from signing flow (or convert non-EIP-2 signature to a valid EIP-2 one)?

@yycen yycen self-assigned this Sep 20, 2023
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

2 participants