> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# MlDsa44.getPublicKey

:::info
`MlDsa44.getPublicKey` is a re-export of ox's [`MlDsa44.getPublicKey`](https://oxlib.sh/api/MlDsa44/getPublicKey). Refer to the ox documentation for the full reference.
:::

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

## Imports

```ts
import { MlDsa44 } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { MlDsa44 } from 'viem/utils'

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

## Definition

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

## 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>`
