Socket
Socket
Sign inDemoInstall

r1csfile

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r1csfile - npm Package Compare versions

Comparing version 0.0.36 to 0.0.37

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "0.0.36",
"version": "0.0.37",
"description": "r1cs file format parser",

@@ -11,0 +11,0 @@ "main": "./build/main.cjs",

@@ -1,2 +0,2 @@

import {getCurveFromR} from "ffjavascript";
import {F1Field, getCurveFromR} from "ffjavascript";
import BigArray from "@iden3/bigarray";

@@ -35,3 +35,3 @@ import * as binFileUtils from "@iden3/binfileutils";

} else if (options.getFieldFromPrime) {
res.F = await options.getCurveFromPrime(res.prime, options.singleThread);
res.F = await options.getFieldFromPrime(res.prime, options.singleThread);
} else if (options.getCurveFromPrime) {

@@ -41,4 +41,8 @@ res.curve = await options.getCurveFromPrime(res.prime, options.singleThread);

} else {
res.curve = await getCurveFromR(res.prime, options.singleThread);
res.F = res.curve.Fr;
try {
res.curve = await getCurveFromR(res.prime, options.singleThread);
res.F = res.curve.Fr;
} catch (err) {
res.F = new F1Field(res.prime);
}
}

@@ -197,4 +201,4 @@

if (res.useCustomGates) {
res.customGates = await readCustomGatesListSection(fd, sections);
res.customGatesUses = await readCustomGatesUsesSection(fd, sections);
res.customGates = await readCustomGatesListSection(fd, sections, options);
res.customGatesUses = await readCustomGatesUsesSection(fd, sections, options);
} else {

@@ -201,0 +205,0 @@ res.customGates = [];

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