Given two sets of EC points and , , calculate
If , , and , an addition operation on an elliptic curve in short Weierstrass form is defined as below [1],
We observe that each addition requires an inversion operation that is way more expensive than muliplication and addition [2].
Therefore, we want to reduce the number of inversions needed to caculate .
Consider n pair of points, We want to calculate Denote The product of all s left to yields Then, the product of all s right to is With the results above, we can calculate inversion as the following
Since does not change with and can be precomputed, the same inversion result can be shared across .
Therefore, we reduced the number of inversions required to calculate additions from to .
[1] https://crypto.stanford.edu/~dabo/cs255/lectures/ECC.pdf [2] https://www.notion.so/Known-Optimizations-for-MSM-13042f29196544938d98e83a19934305#9d8b79321f584477ac945a738042c396 [3]https://hackmd.io/@tazAymRSQCGXTUKkbh1BAg/Sk27liTW9#Optimization-1-Batch-Affine-for-Point-Addition
msm
zkp
public