# Ed25519

Ox's Ed25519 API and its supported Node.js engine primitives.

## Examples

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

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

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

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`Ed25519.createKeyPair`](/node/crypto/Ed25519/createKeyPair) | Creates a new Ed25519 key pair consisting of a private key and its corresponding public key. |
| [`Ed25519.engine`](/node/crypto/Ed25519/engine) | Creates a Node.js implementation of the [`Ed25519`](/api/Ed25519) engine slot, without installing it. |
| [`Ed25519.getPublicKey`](/node/crypto/Ed25519/getPublicKey) | Computes the Ed25519 public key from a provided private key. |
| [`Ed25519.randomPrivateKey`](/node/crypto/Ed25519/randomPrivateKey) | Generates a random Ed25519 private key. |
| [`Ed25519.sign`](/node/crypto/Ed25519/sign) | Signs the payload with the provided private key and returns an Ed25519 signature. |
| [`Ed25519.toX25519PrivateKey`](/node/crypto/Ed25519/toX25519PrivateKey) | Converts an Ed25519 private key to an X25519 private key. |
| [`Ed25519.toX25519PublicKey`](/node/crypto/Ed25519/toX25519PublicKey) | Converts an Ed25519 public key to an X25519 public key. |
| [`Ed25519.verify`](/node/crypto/Ed25519/verify) | Verifies a payload was signed by the provided public key. |
