This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on https://gist.github.com/CodesInChaos/ef914909941ce7caf514 | |
// Uses libsodium library | |
// Not storing array, simply printing out | |
void cached_to_precomp(ge_precomp* preComp, ge_cached* cached) | |
{ | |
fe inverse; | |
fe_invert(inverse, cached->Z); | |
fe_mul(preComp->yminusx, cached->YminusX, inverse); | |
fe_mul(preComp->yplusx, cached->YplusX, inverse); |