Fix toJacobian

This commit is contained in:
Jordi Baylina 2020-09-09 09:03:41 +02:00
parent 72d8e25909
commit c75690a2a5
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
7 changed files with 30 additions and 36 deletions

@ -3888,7 +3888,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
await writePTauHeader(fdNew, curve, power);
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
const fdTmp = await createOverride({type: "bigMem"});
await copySection(fdOld, sections, fdNew, 2);
await copySection(fdOld, sections, fdNew, 3);
@ -3904,7 +3903,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
await fdOld.close();
await fdNew.close();
await fdTmp.close();
// await fs.promises.unlink(newPTauFilename+ ".tmp");
@ -3934,9 +3932,7 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
async function processSectionPower(p) {
const nPoints = 2 ** p;
const G = curve[Gstr];
const Fr = curve.Fr;
const sGin = G.F.n8*2;
const sGmid = G.F.n8*3;
let buff;
buff = new ffjavascript.BigBuffer(nPoints*sGin);

@ -3678,7 +3678,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
await writePTauHeader(fdNew, curve, power);
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
const fdTmp = await createOverride({type: "bigMem"});
await copySection(fdOld, sections, fdNew, 2);
await copySection(fdOld, sections, fdNew, 3);
@ -3694,7 +3693,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
await fdOld.close();
await fdNew.close();
await fdTmp.close();
// await fs.promises.unlink(newPTauFilename+ ".tmp");
@ -3724,9 +3722,7 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
async function processSectionPower(p) {
const nPoints = 2 ** p;
const G = curve[Gstr];
const Fr = curve.Fr;
const sGin = G.F.n8*2;
const sGmid = G.F.n8*3;
let buff;
buff = new ffjavascript.BigBuffer(nPoints*sGin);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

14
package-lock.json generated

@ -672,19 +672,19 @@
"integrity": "sha512-LwvI75nCVs83EsuKpT+cL7M7T3VNdY4O50nLi4jnVZcxvqbWWqX43dM2GDrNHeD5uaX+ug0Di5RcvnTTI+hEAQ=="
},
"ffjavascript": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.16.tgz",
"integrity": "sha512-U7kmhXkQjvn4v8hx4h3MYCRI0Za+nu4utoPag3zVBNEOALiDprWhT4Hv3nfxpBZLieQZoUJhtZBLoKAWZu0g2w==",
"version": "0.2.18",
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.18.tgz",
"integrity": "sha512-FFQHf5QiP+MfeCk6k6T4rYMS+53gkuhJoBpsH89c8fsNJi4EqhRiYxJa5F9aTktBZzGKj9e51Nb0ABsQcLdLaw==",
"requires": {
"big-integer": "^1.6.48",
"wasmcurves": "0.0.8",
"wasmcurves": "0.0.10",
"worker-threads": "^1.0.0"
},
"dependencies": {
"wasmcurves": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.0.8.tgz",
"integrity": "sha512-CYCPh8K2LhPaGy3fvI+yinL1U53XBlJFVKznICS+JeKVv61Lx0gpWNe2NnHSD25YfTihv1HcUeSe+wxgFLIjYw==",
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.0.10.tgz",
"integrity": "sha512-bCIZni6RzeQrgt3Hri+KiblRJJq9s7a2F0bGIpa9Eaj+V9jDxscMH6wDWbIYMTuVMW4dqO8eL8gUI/nm/p2SeA==",
"requires": {
"big-integer": "^1.6.42",
"blakejs": "^1.1.0"

@ -41,7 +41,7 @@
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
"circom_runtime": "0.1.5",
"fastfile": "0.0.15",
"ffjavascript": "0.2.16",
"ffjavascript": "0.2.18",
"logplease": "^1.2.15",
"r1csfile": "0.0.12"
},

@ -12,7 +12,6 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
await utils.writePTauHeader(fdNew, curve, power);
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
const fdTmp = await fastFile.createOverride({type: "bigMem"});
await binFileUtils.copySection(fdOld, sections, fdNew, 2);
await binFileUtils.copySection(fdOld, sections, fdNew, 3);
@ -28,7 +27,6 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
await fdOld.close();
await fdNew.close();
await fdTmp.close();
// await fs.promises.unlink(newPTauFilename+ ".tmp");
@ -58,9 +56,7 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
async function processSectionPower(p) {
const nPoints = 2 ** p;
const G = curve[Gstr];
const Fr = curve.Fr;
const sGin = G.F.n8*2;
const sGmid = G.F.n8*3;
let buff;
buff = new BigBuffer(nPoints*sGin);