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

[secp256k1] Add ability to recover public key from signature #108

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

gregnazario
Copy link
Contributor

Description

Adds ability to recover secp256k1 public key given authentication key and signature. Attempts to find the recovery bit by matching with the authentication key after hashing.

Note: This changes crypto libraries, as the ethereum crypto library didn't give many guarantees or make it easy to accomplish these tasks. Additionally, this new library provides malleability improvements which we needed anyways.

Test Plan

See tests, they test with or without the recovery id.

Related Links

Copy link
Contributor

@GhostWalker562 GhostWalker562 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔑

@gregnazario gregnazario merged commit b9a33be into main Nov 25, 2024
1 check passed
@gregnazario gregnazario deleted the add-secp256k1-recovery branch November 25, 2024 18:51
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

Successfully merging this pull request may close these issues.

2 participants