# Kzg.from

Defines a KZG interface.

## Imports

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

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

## Examples

```ts twoslash
// @noErrors
import * as cKzg from 'c-kzg'
import { Kzg } from 'ox'
import { Paths } from 'ox/trusted-setups'

cKzg.loadTrustedSetup(Paths.mainnet)

const kzg = Kzg.from(cKzg)
```

## Definition

```ts
function from(
  value: Kzg,
): Kzg
```

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

## Parameters

### value

* **Type:** `Kzg`

The KZG object to convert.

#### value.cells

* **Type:** `readonly Uint8Array[]`

#### value.proofs

* **Type:** `readonly Uint8Array[]`

## Return Type

The KZG interface object.

`Kzg`
