# ecNeg

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / 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[​](#parameters "Direct link to Parameters")

### a[​](#a "Direct link to a")

[`JubjubPoint`](https://docs.midnight.network/api-reference/compact-runtime/interfaces/JubjubPoint.md)

## Returns[​](#returns "Direct link to Returns")

[`JubjubPoint`](https://docs.midnight.network/api-reference/compact-runtime/interfaces/JubjubPoint.md)
