ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / blobsToProofs

Function: blobsToProofs()

blobsToProofs(kzg, blobs, commitments): `0x${string}`[]

Defined in: packages/util/src/blobs.ts:111

EIP-4844: Computes KZG proofs for each blob/commitment pair.

Parameters

kzg

KZG

KZG implementation used to compute proofs

blobs

`0x${string}`[]

Array of blob data as hex-prefixed strings

commitments

`0x${string}`[]

Array of corresponding blob commitments

Returns

`0x${string}`[]

Array of lowercase hex-prefixed proofs (aligned with input order)