Precompute point multiplication results in pedersen#380
Precompute point multiplication results in pedersen#380yelhousni merged 1 commit intoConsensys:developfrom omerfirmak:elim-pedersen-alloc
Conversation
|
@yelhousni, any chance we get an eye on this? |
So the point is instead of computing |
Yeah, pretty much. 16 values are precomputed for each nibble in highPart and lowPart. Then according to values of each nibble one of those values is selected per nibble and they are all summed up for the end result. So we are replacing 2 scalar multiplications with multiple point additions. |
|
Right! I remember proposing something in these lines: #327 (comment) |
|
Thanks! Anything I can help with to get this merged? |
Provides 5x performance improvement