# isValidSecp256k1Point

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

# Function: isValidSecp256k1Point()

```
function isValidSecp256k1Point(p): p is Secp256k1Point;
```

Check whether a value is a valid `Secp256k1Point`: an object whose `x` and `y` are bigints in the base field and whose `identity` is a boolean. A point that is not the identity must also lie on the curve.

## Parameters[​](#parameters "Direct link to Parameters")

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

`unknown`

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

`p is Secp256k1Point`
