Comparing version 0.6.6 to 0.6.7
{ | ||
"name": "snarkjs", | ||
"type": "module", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "zkSNARKs implementation in JavaScript", | ||
@@ -6,0 +6,0 @@ "main": "./build/main.cjs", |
@@ -865,2 +865,3 @@ /* | ||
const transcript = new Keccak256Transcript(curve); | ||
transcript.addScalar(challenges.gamma); | ||
transcript.addPolCommitment(proof.getPolynomial("C2")); | ||
@@ -871,4 +872,4 @@ | ||
// we compute xi = xi_seeder^12, h1 = xi_seeder^3, h2 = xi_seeder^4 and h3 = xi_seeder^6 | ||
const xiSeed = transcript.getChallenge(); | ||
const xiSeed2 = Fr.square(xiSeed); | ||
challenges.xiSeed = transcript.getChallenge(); | ||
const xiSeed2 = Fr.square(challenges.xiSeed); | ||
@@ -896,3 +897,3 @@ // Compute omega8, omega4 and omega3 | ||
roots.S0.h0w8 = []; | ||
roots.S0.h0w8[0] = Fr.mul(xiSeed2, xiSeed); | ||
roots.S0.h0w8[0] = Fr.mul(xiSeed2, challenges.xiSeed); | ||
for (let i = 1; i < 8; i++) { | ||
@@ -968,2 +969,3 @@ roots.S0.h0w8[i] = Fr.mul(roots.S0.h0w8[0], roots.w8[i]); | ||
const transcript = new Keccak256Transcript(curve); | ||
transcript.addScalar(challenges.xiSeed); | ||
transcript.addScalar(proof.getEvaluation("ql")); | ||
@@ -1096,2 +1098,3 @@ transcript.addScalar(proof.getEvaluation("qr")); | ||
const transcript = new Keccak256Transcript(curve); | ||
transcript.addScalar(challenges.alpha); | ||
transcript.addPolCommitment(proof.getPolynomial("W1")); | ||
@@ -1098,0 +1101,0 @@ |
@@ -177,2 +177,3 @@ /* | ||
transcript.reset(); | ||
transcript.addScalar(challenges.gamma); | ||
transcript.addPolCommitment(proof.polynomials.C2); | ||
@@ -243,2 +244,3 @@ const xiSeed = transcript.getChallenge(); | ||
transcript.reset(); | ||
transcript.addScalar(xiSeed); | ||
transcript.addScalar(proof.evaluations.ql); | ||
@@ -262,2 +264,3 @@ transcript.addScalar(proof.evaluations.qr); | ||
transcript.reset(); | ||
transcript.addScalar(challenges.alpha); | ||
transcript.addPolCommitment(proof.polynomials.W1); | ||
@@ -264,0 +267,0 @@ challenges.y = transcript.getChallenge(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44183988
67701