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

feat: recover public key (1.2.0) #16

Open
enitrat opened this issue Jun 5, 2023 · 3 comments
Open

feat: recover public key (1.2.0) #16

enitrat opened this issue Jun 5, 2023 · 3 comments

Comments

@enitrat
Copy link
Collaborator

enitrat commented Jun 5, 2023

In this example, we will demonstrate how to recover the public key from a signature and the signed message hash using recover_public_key_u32.

@HansBhatia
Copy link
Contributor

I'll take this on!

@HansBhatia
Copy link
Contributor

@enitrat do I use the secp256r1 or secp256k1 curve? Also I'm not entirely sure how to import the function. I tried -

use starknet::secp256_trait:: recover_public_key_u32;
use starknet::secp256k1::{Secp256k1Point, Secp256k1PointImpl};

Identifier not found: secp256_trait, Secp256k1Point, Secp256k1PointImpl.

@enitrat
Copy link
Collaborator Author

enitrat commented Jun 30, 2023

@HansBhatia I think you will need to upgrade Cairo to v2.x for this one

@HansBhatia HansBhatia removed their assignment Jul 18, 2023
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