constantine icon indicating copy to clipboard operation
constantine copied to clipboard

Strauss-Shamir trick: [a]P + [b]Q

Open mratsim opened this issue 5 years ago • 2 comments

It is often needed to compute scalar multiplication in parallel via

R <- [a]P + [b]Q

This is usually known as the Strauss-Shamir trick, see https://eprint.iacr.org/2003/257.pdf or https://stackoverflow.com/questions/50993471/ec-scalar-multiplication-with-strauss-shamir-method

image

image

Furthermore to reduce the number of point addition, the points P and Q can be recoded under the joint-sparse-form to minimize the total hamming weight.

mratsim avatar Jun 04 '20 21:06 mratsim

See https://gist.github.com/paulmillr/178042240169f0f531f8cc95e532f9db

It's slower if you use G precomputes, unfortunately.

paulmillr avatar Jan 25 '23 02:01 paulmillr