Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snarkjs

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snarkjs - npm Package Compare versions

Comparing version 0.6.6 to 0.6.7

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc