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

how do I calculate recover_id from signature #86

Closed
yxy opened this issue Aug 6, 2022 · 1 comment
Closed

how do I calculate recover_id from signature #86

yxy opened this issue Aug 6, 2022 · 1 comment

Comments

@yxy
Copy link

yxy commented Aug 6, 2022

I want to get the pubkey recover id from signature, but I couldn't found any method to do it, anyone knowns how to do it ?

thanks advance

ref: https://github.com/starkbank/ecdsa-python/blob/209eab454f1e071c5893cc6cbdb8aaa0c1a85801/ellipticcurve/ecdsa.py#L23

@AntonKueltz
Copy link
Owner

I believe recovery id is a bitcoin / cryptocurrency specific (based on this source), in which case it is out of scope for this library. It seems that requires changing the sign interface from returning (int, int) to returning (Point, int) (in other words, making r a point rather than an integer) which I can fairly confidently say would be a breaking change and also not compliant with the most common / accepted ECDSA spec(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants