# Secp256k1.engine

Compiles WASM implementations of deterministic [`Secp256k1`](/api/Secp256k1) primitives, without installing them.

Random key generation remains on Ox's host-backed default implementation.

## Imports

:::code-group
```ts [Named]
import { Secp256k1 } from 'ox/wasm'
```

```ts [Entrypoint]
import * as Secp256k1 from 'ox/wasm/Secp256k1'
```
:::

## Examples

```ts twoslash
// @noErrors
import { Engine } from 'ox'
import { Secp256k1 } from 'ox/wasm'

await Engine.install({ Secp256k1: Secp256k1.engine() })

Secp256k1.getPublicKey({ privateKey: '0x...' })
```

## Definition

```ts
function engine(): Promise<engine.ReturnType>
```

**Source:** [src/wasm/Secp256k1.ts](https://github.com/wevm/ox/blob/main/src/wasm/Secp256k1.ts#L35)

## Return Type

The WASM implementation of the deterministic `Secp256k1` primitives.

`Promise<engine.ReturnType>`
