Closed pcaversaccio closed 3 months ago
I'd love to work on this :)
I'd love to work on this :)
Assigned
Quick question: Does this need to be here https://github.com/foundry-rs/foundry/blob/0b03a58b4a42b149a27e0b6cc1ff9559306f3603/crates/cheatcodes/src/utils.rs#L19 or in the forge crate? If it belongs in the forge crate, where should it be placed? @yash-atreya
Hi @protocolwhisper how is it going? Do you need any pointers or have any questions?
Hi @zerosnacks, it's going well I've just submitted the pull requests + tests :) ; (Update) I need to modify the test
Can you please add the function to the vm
interface in forge-std
, otherwise hard to use 🙃
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 thesecp256r1
curve from a randomuint256
private key: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.