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

Add recovery id calculation when signing ethereum call transactions #2269

Open
Petyo-Lukanov opened this issue Apr 23, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Petyo-Lukanov
Copy link

Problem

Currently there is no way to calculate recovery id (v) when we sign ethereum transactions from java SDK.

The recovery ID is an index from 0 to 3, which indicates which of the 4 possible public keys is the correct one. Because the key recovery operation yields multiple potential public keys, the correct key must either be stored alongside the signature or you must be willing to try each recovery ID in turn until you find one that outputs the key you are expecting.

Recovery operation is described in SEC1v2, section 4.1.6.

Solution

Add the recovery ID calculation

Alternatives

No response

@Petyo-Lukanov Petyo-Lukanov added the enhancement New feature or request label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant