# Ed25519.engine

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

Public-key conversion and random key generation remain on Ox's default implementation. The public conversion is omitted because Monocypher does not reproduce Ox's invalid-point validation.

## Imports

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

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

## Examples

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

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

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

## Definition

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

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

## Return Type

The WASM implementation of part of the `Ed25519` slot.

`Promise<engine.ReturnType>`
