Skip to content

KzgLibraryLike

type KzgLibraryLike =
| KzgLibrary
| {
blobToKZGCommitment: (blob) => string;
computeBlobKZGProof: (blob, commitment) => string;
}
| {
blobToKzgCommitment: (blob) =>
| string
| Uint8Array;
computeBlobProof: (blob, commitment) =>
| string
| Uint8Array;
};

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:132

A KZG Library with any of the various API configurations. As the library is still experimental and the API is not stable, depending on the version used the method names and signatures are still in flux.

This allows any of the versions to be passed into Transaction while providing a stable external API.