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

Open
0xivanov opened this issue Apr 23, 2024 · 0 comments
Open
Assignees
Labels
backlog enhancement New feature or request

Comments

@0xivanov
Copy link
Contributor

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

@0xivanov 0xivanov added the enhancement New feature or request label Apr 23, 2024
@0xivanov 0xivanov self-assigned this Apr 23, 2024
@Petyo-Lukanov Petyo-Lukanov modified the milestones: 2.38.0, 2.39.0 Apr 23, 2024
@SimiHunjan SimiHunjan modified the milestones: 2.37.0, 2.38.0 May 14, 2024
@SimiHunjan SimiHunjan modified the milestones: 2.38.0, 2.39.0 May 29, 2024
@SimiHunjan SimiHunjan removed this from the 2.39.0 milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants