Skip to content

createMockKzg

createMockKzg(): MockKzg

Returns a mock kzg object that always trusts never verifies The real kzg commitmenet is over 500kb added to bundle size so this is useful alternative for smaller bundles and the default

Returns

MockKzg

Throws

Example

import { createCommon, createMockKzg, mainnet } from 'tevm/common'
const common = createCommon({
...mainnet,
customCrypto: {
kzg: createMockKzg(),
},
})

See

createCommon

Defined in

packages/common/src/createMockKzg.js:22