Skip to content

Instantly share code, notes, and snippets.

// 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);