You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(uint256privateKey) externalpurereturns (uint256publicKeyX, uint256publicKeyY)
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: