ffjavascript
Advanced tools
Comparing version 0.2.51 to 0.2.52
@@ -18,4 +18,16 @@ { | ||
] | ||
}, | ||
{ | ||
"type": "pwa-node", | ||
"request": "launch", | ||
"name": "Test Algebra", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"${workspaceFolder}/test/algebra.js" | ||
] | ||
} | ||
] | ||
} |
{ | ||
"name": "ffjavascript", | ||
"type": "module", | ||
"version": "0.2.51", | ||
"version": "0.2.52", | ||
"description": "Finite Field Library in Javascript", | ||
@@ -6,0 +6,0 @@ "main": "./build/main.cjs", |
@@ -33,4 +33,4 @@ /* | ||
let rem = F.sqrt_t; | ||
let s = F.sqrt_s; | ||
let rem = F.sqrt_t || F.t; | ||
let s = F.sqrt_s || F.s; | ||
@@ -67,3 +67,3 @@ let nqr = F.one; | ||
*/ | ||
this._setRoots(15); | ||
this._setRoots(Math.min(s, 15)); | ||
} | ||
@@ -70,0 +70,0 @@ |
@@ -19,2 +19,3 @@ import assert from "assert"; | ||
bn128 = await buildBn128(); | ||
console.log(bn128.Fr.toString(bn128.Fr.w[28])); | ||
}); | ||
@@ -21,0 +22,0 @@ after( async() => { |
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
450498
12239