From 9f73191b82b4a7e792392fab0f08670e4a0cd78a Mon Sep 17 00:00:00 2001 From: Laia Soler Date: Mon, 22 Apr 2024 13:45:46 +0200 Subject: [PATCH] fix compute z --- src/blob-inner/blob-processor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blob-inner/blob-processor.js b/src/blob-inner/blob-processor.js index d6f321d0..7b4c4d3e 100644 --- a/src/blob-inner/blob-processor.js +++ b/src/blob-inner/blob-processor.js @@ -261,7 +261,7 @@ module.exports = class BlobProcessor { // compute kzg data this.kzgCommitment = this.kzg.blobToKzgCommitment(this.blobData); this.versionedHash = computeVersionedHash(this.kzgCommitment); - this.pointZ = await this.kzg.computePointZ(this.blobData, this.kzgCommitment); + this.pointZ = await this.kzg.computePointZ(this.kzgCommitment, this.blobData); const { proof, pointY } = this.kzg.computeKzgProof(this.blobData, this.pointZ); this.pointY = pointY; this.kzgProof = proof; @@ -272,7 +272,7 @@ module.exports = class BlobProcessor { // compute kzg data this.kzgCommitment = this.kzg.blobToKzgCommitment(this.blobData); this.versionedHash = computeVersionedHash(this.kzgCommitment); - this.pointZ = await this.kzg.computePointZ(this.blobData, this.kzgCommitment); + this.pointZ = await this.kzg.computePointZ(this.kzgCommitment, this.blobData); const { proof, pointY } = this.kzg.computeKzgProof(this.blobData, this.pointZ); this.pointY = pointY; this.kzgProof = proof;