Skip to content

Kzg.from

Defines a KZG interface.

Imports

Named
import { Kzg } from 'ox'

Examples

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

function from(
  value: Kzg,
): Kzg

Source: src/Kzg.ts

Parameters

value

  • Type: Kzg

The KZG object to convert.

Return Type

The KZG interface object.

Kzg