For certain operations - especially verification of ZK proofs - being able to compute linear combinations (ala lincomb from k256) of points as quickly as possible is important, and as the inputs are anyway public it is safe to use variable time computation.
Any interest in adding support for eg lincomb_vartime to the relevant traits? The baseline version could of course just call the constant time code. For actually optimized implementations, I'm primarily interested in k256 and to a lesser extent p256. I could start working on PRs if there is some chance of acceptance.
Obviously it's a footgun, but I'd personally argue if you're working directly with elliptic curve points you are already well into you-better-know-what-you-are-doing territory.
For certain operations - especially verification of ZK proofs - being able to compute linear combinations (ala
lincombfrom k256) of points as quickly as possible is important, and as the inputs are anyway public it is safe to use variable time computation.Any interest in adding support for eg
lincomb_vartimeto the relevant traits? The baseline version could of course just call the constant time code. For actually optimized implementations, I'm primarily interested ink256and to a lesser extentp256. I could start working on PRs if there is some chance of acceptance.Obviously it's a footgun, but I'd personally argue if you're working directly with elliptic curve points you are already well into you-better-know-what-you-are-doing territory.