# X25519.engine

Creates a Node.js implementation of the [`X25519`](/api/X25519) engine slot, without installing it.

Random key generation remains on Ox's default implementation.

## Imports

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

```ts [Entrypoint]
import * as X25519 from 'ox/node/X25519'
```
:::

## Examples

```ts twoslash
// @noErrors
import { Engine } from 'ox'
import { X25519 } from 'ox/node'

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

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

## Definition

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

**Source:** [src/node/X25519.ts](https://github.com/wevm/ox/blob/main/src/node/X25519.ts#L29)

## Return Type

The raw `X25519` engine slot.

`Promise<engine.ReturnType>`
