UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

11 lines 684 B
/** * Optionally sanity-check that the KZG commitments match the versioned hashes in the transactions * https://github.com/ethereum/consensus-specs/blob/11a037fd9227e29ee809c9397b09f8cc3383a8c0/specs/eip4844/validator.md#blob-kzg-commitments */ export function validateBlobsAndKzgCommitments(_payload, blobsBundle) { // sanity-check that the KZG commitments match the blobs (as produced by the execution engine) if (blobsBundle.blobs.length !== blobsBundle.commitments.length) { throw Error(`Blobs bundle blobs len ${blobsBundle.blobs.length} != commitments len ${blobsBundle.commitments.length}`); } } //# sourceMappingURL=validateBlobsAndKzgCommitments.js.map