> **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.fromPrf

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

Derives an ML-DSA-44 private key from a 32-byte WebAuthn PRF output.

The permanent derivation contract uses the PRF output as the HMAC-SHA256 key. Its message is the UTF-8 bytes of `ox.mldsa44.fromPrf.v1` followed by a 32-bit big-endian counter set to zero.

## Imports

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

## Examples

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

const privateKey = MlDsa44.fromPrf(
  '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f'
)
```

## Definition

```ts
function fromPrf<as>(
  value: Hex.Hex | Bytes.Bytes,
  options?: fromPrf.Options<as>,
): fromPrf.ReturnType<as>
```

## Parameters

### value

* **Type:** `Hex.Hex | Bytes.Bytes`

A 32-byte WebAuthn PRF output.

### options

* **Type:** `fromPrf.Options<as>`
* **Optional**

Options.

#### options.as

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

Format of the returned private key.

## Return Type

An ML-DSA-44 private key (32-byte seed).

`fromPrf.ReturnType<as>`
