I agree that it doesn’t need to follow the same interface, however, I imagine that any solution here should be interoperable with goals for precompiles for other curves. This would influence whether you create a bespoke ecrecover_r1
vs. some generic variant with an interface that allows for any curve where this would be applicable.
Without seeing the code I’m not quite sure I follow what you are describing as the solution here (a new ecrecover
that defaults to k1
and allows for parametrization of the curves and curve format?)