Fast Elliptic Curve Arithmetic and Improved WEIL Pairing Evaluation
This explains https://arxiv.org/abs/math/0208038.
Motivation
Compute without the intermediate results and given , where ,
: 1 multiplication, 2 squarings and 1 division. If , is computed as follows:
: 1 multiplication, 1 squaring and 1 division. If and , is computed as follows:
Naive : 2 multiplications, 3 squarings and 2 divisions
How can we improve this?
Algorithm
Suppose and are distinct points on , with . The sum has coordinates , where:
Now suppose we want to add to . To do this, we add to using the same addition rule. Assuming , the resulting coordinates are , where
We can omit the explicit computation of since it is used only to calculate . Instead, can be computed directly as:
Which means you can compute using and .
Additionally, you can compute using and .
This trick can also be applied when computing . Thus, saves 2 multiplicaitons.

Conclusion
The cost of this algorithm is as follows:
Optimized : 1 multiplication, 2 squarings and 2 divisions (+ 1 squaring when )
Idea: instead of and -coordinate is not computed when computing ⇒ This saves a field multiplication
if
2 * (1 multiplication, 2 squarings and 1 division) - 1 multiplication
otherwise
2 * (1 multiplication, 1 squaring and 1 division) - 1 multiplication
Last updated