Skip to main content

ecNeg

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.19.0


@midnight-ntwrk/compact-runtime / ecNeg

Function: ecNeg()

function ecNeg(a): JubjubPoint;

The Compact builtin ecNeg function

This function negates an elliptic curve point. On the JubJub twisted Edwards curve, the negation of (x, y) is (-x, y).

Parameters

a

JubjubPoint

Returns

JubjubPoint