Skip to content

Commit

Permalink
Merge pull request #168 from 0xPolygonHermez/feature/fix-computez
Browse files Browse the repository at this point in the history
fix compute z
  • Loading branch information
krlosMata authored Apr 23, 2024
2 parents 0477bab + 9f73191 commit b64c875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blob-inner/blob-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b64c875

Please sign in to comment.