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 great to have such methods in vm since in rollups we could see more complex smart contracts that use secp256k1 / secp256r1 elliptic-curves. Intended use case - multi-signature schemes, ECDH on-chain, etc.
Additional context
Mul is marked with a question mark because we already have vm.createWallet(uint256 privateKey) and vm.publicKeyP256(uint256 privateKey), but we don't have any generic method like add/mul that returns struct PublicKey { uint256 x, y; }.