The created recoverable ECDSA signature differs from the results of other libraries. #4993
Replies: 1 comment
-
It looks like the signature you are getting from Python is using a non-standard signature format. The final byte (last 2 nibbles) should be either As a quick background, the recovery parameter is an artifact that a signature can be in either the "top" or "bottom" half of the elliptic curve, so it is used to indicate which to choose. The standard uses So, I think to convert the Python to be standards compliant, you can use the following Python code to convert your python signature: Or to convert the output of Ethers to match the output of Python: Let me know if that helps. (Moving to discussions) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
6.12.0
Search Terms
No response
Describe the Problem
The result generated when creating the recoverable ECDSA signature is different from the result generated using Python. Is there a way to generate the same result?
Code Snippet
Contract ABI
Errors
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions