mmcloughlin / ec3

Elliptic Curve Cryptography Compiler: an incomplete experiment in code-generation for elliptic curves in Go
BSD 3-Clause "New" or "Revised" License
56 stars 6 forks source link

gen/ec: investigate repeated doubling formulae #74

Open mmcloughlin opened 5 years ago

mmcloughlin commented 5 years ago

The main loop of windowed scalar multiplication involves computing 2^j P + Q. Typically this is just done with j doublings and an add. However it seems a somewhat obvious question to ask whether there are more efficient formulae that compute parts or all of this at once. For example, can 4P be computed faster than 2(2P)?

There seems to be some discussion of this in the literature.

Related #67 #73