blobsToProofs
Compute the proofs for a list of blobs and their commitments.
Import
import { } from 'viem'Usage
import { , , } from 'viem'
import { } from './kzg'
const = ({ : '0x...' })
const = ({ , })
const = ({ , , }) Returns
Hex[] | ByteArray[]
Proofs from the input blobs and commitments.
Parameters
blobs
- Type:
Hex[] | ByteArray[]
Blobs to transform into proofs.
import { , , } from 'viem'
import { } from './kzg'
const = ({ : '0x...' })
const = ({ , })
const = ({
,
,
})commitments
- Type:
Hex[] | ByteArray[]
Commitments corresponding to the input blobs.
import { , , } from 'viem'
import { } from './kzg'
const = ({ : '0x...' })
const = ({ , })
const = ({
,
,
})kzg
- Type:
KZG
KZG implementation. See setupKzg for more information.
import * as from 'c-kzg'
import { , } from 'viem'
import { } from 'viem/node'
const = toBlobs({ : '0x...' })
const = (, )
const = blobsToCommitments({ , })
const = ({
,
,
,
})