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 #684

Open
Petyo-Lukanov opened this issue Apr 23, 2024 · 0 comments
Open
Assignees

Comments

@Petyo-Lukanov
Copy link

Problem

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

Solution

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.

Alternatives

No response

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