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

secp256r1 sign cheat code #6782

Closed
wilsoncusack opened this issue Jan 13, 2024 · 0 comments · Fixed by #6797
Closed

secp256r1 sign cheat code #6782

wilsoncusack opened this issue Jan 13, 2024 · 0 comments · Fixed by #6797
Labels
T-feature Type: feature

Comments

@wilsoncusack
Copy link
Contributor

wilsoncusack commented Jan 13, 2024

Component

Forge

Describe the feature you would like

With the finalization of RIP-7212 and the progress of EIP-7212, more forge users will want a way to test signing using the secp256r1 curve.

I propose a new cheat code

function signP256(uint256 privateKey, bytes32 digest) external returns (bytes32 r, bytes32 s);

Additional context

P256 is the general abbreviation for this signing curve, though maybe a more verbose name would be more clear, given Ethereum uses secp256k1. Open to ideas.

@wilsoncusack wilsoncusack added the T-feature Type: feature label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant