blobsToCommitments
Compute commitments from a list of blobs.
Import
import { } from 'viem'Usage
import { , } from 'viem'
import { } from './kzg'
const = ({ : '0x1234' })
const = ({ , }) Returns
Hex[] | ByteArray[]
List of commitments corresponding to the input blobs.
Parameters
blobs
- Type:
Hex[] | ByteArray[]
List of blobs to transform into commitments.
import { , } from 'viem'
const = ({
: ({ : '0x1234' }),
,
}) kzg
- Type:
KZG
KZG implementation. See setupKzg for more information.
import * as from 'c-kzg'
import { , , } from 'viem'
import { } from 'viem/node'
const = (, )
const = ({
: ({ : '0x1234' }),
,
}) to
- Type:
"bytes" | "hex"
The output type.
import { , } from 'viem'
const = ({
: ({ : '0x1234' }),
,
: 'bytes',
})