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

P256 Public Key Generator #7908

Open
pcaversaccio opened this issue May 11, 2024 · 2 comments
Open

P256 Public Key Generator #7908

pcaversaccio opened this issue May 11, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers T-feature Type: feature

Comments

@pcaversaccio
Copy link
Contributor

pcaversaccio commented May 11, 2024

Component

Forge

Describe the feature you would like

It would be very useful for testing of P256 signatures to have a forge function that can generate / derive the public key coordinates based on the secp256r1 curve from a random uint256 private key:

function generatePublicKeyP256(uint256 privateKey) external pure returns (uint256 publicKeyX, uint256 publicKeyY)

Maybe, we can think this further, and add an Enum for the elliptic curve used (e.g. secp256k1, secp256r1 etc.) to have the possibility to add further curves without breaking the API.

@pcaversaccio pcaversaccio added the T-feature Type: feature label May 11, 2024
@mattsse mattsse added the good first issue Good for newcomers label May 15, 2024
@protocolwhisper
Copy link

I'd love to work on this :)

@yash-atreya
Copy link
Collaborator

I'd love to work on this :)

Assigned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

4 participants