-
Notifications
You must be signed in to change notification settings - Fork 122
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
Computing recovery id for ECDSA signature #82
Comments
My bad, I just saw |
@tmpfs I was able to get the value of v and send tx-
but I got another error - Invalid Signature: s-values greater than secp256k1n/2 are considered invalid https://eips.ethereum.org/EIPS/eip-2 - paragraph 2 |
the value of v has been changed in the MarshalBinary function: |
The type
ecdsa.Signature
includedR
andS
but no recovery id (orv
) value which would be required for ethereum-style recoverable signatures.If memory serves correctly
v
is just whether the y co-ordinate for the point is negative but looking at thePoint
type I can't see any way to compute this easily.Any advice on how we could compute the recovery id for
ecdsa.Signature
please?The text was updated successfully, but these errors were encountered: