# MlDsa44.getPublicKey

Computes the ML-DSA-44 public key from a provided private key.

## Imports

:::code-group
```ts [Named]
import { MlDsa44 } from 'ox'
```

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

## Examples

```ts twoslash
import { MlDsa44 } from 'ox'

const publicKey = MlDsa44.getPublicKey({
  privateKey: '0x...'
})
```

## Definition

```ts
function getPublicKey<as>(
  options: getPublicKey.Options<as>,
): getPublicKey.ReturnType<as>
```

**Source:** [src/core/MlDsa44.ts](https://github.com/wevm/ox/blob/main/src/core/MlDsa44.ts#L155)

## Parameters

### options

* **Type:** `getPublicKey.Options<as>`

The options to compute the public key.

#### options.as

* **Type:** `"Bytes" | "Hex" | as`
* **Optional**

Format of the returned public key.

#### options.privateKey

* **Type:** `0x${string} | Uint8Array`

Private key (32-byte seed) to compute the public key from.

## Return Type

The computed 1,312-byte public key.

`getPublicKey.ReturnType<as>`
