Fix toJacobian
This commit is contained in:
parent
72d8e25909
commit
c75690a2a5
@ -3888,7 +3888,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
await writePTauHeader(fdNew, curve, power);
|
await writePTauHeader(fdNew, curve, power);
|
||||||
|
|
||||||
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
|
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
|
||||||
const fdTmp = await createOverride({type: "bigMem"});
|
|
||||||
|
|
||||||
await copySection(fdOld, sections, fdNew, 2);
|
await copySection(fdOld, sections, fdNew, 2);
|
||||||
await copySection(fdOld, sections, fdNew, 3);
|
await copySection(fdOld, sections, fdNew, 3);
|
||||||
@ -3904,7 +3903,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
|
|
||||||
await fdOld.close();
|
await fdOld.close();
|
||||||
await fdNew.close();
|
await fdNew.close();
|
||||||
await fdTmp.close();
|
|
||||||
|
|
||||||
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
||||||
|
|
||||||
@ -3934,9 +3932,7 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
async function processSectionPower(p) {
|
async function processSectionPower(p) {
|
||||||
const nPoints = 2 ** p;
|
const nPoints = 2 ** p;
|
||||||
const G = curve[Gstr];
|
const G = curve[Gstr];
|
||||||
const Fr = curve.Fr;
|
|
||||||
const sGin = G.F.n8*2;
|
const sGin = G.F.n8*2;
|
||||||
const sGmid = G.F.n8*3;
|
|
||||||
|
|
||||||
let buff;
|
let buff;
|
||||||
buff = new ffjavascript.BigBuffer(nPoints*sGin);
|
buff = new ffjavascript.BigBuffer(nPoints*sGin);
|
||||||
|
@ -3678,7 +3678,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
await writePTauHeader(fdNew, curve, power);
|
await writePTauHeader(fdNew, curve, power);
|
||||||
|
|
||||||
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
|
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
|
||||||
const fdTmp = await createOverride({type: "bigMem"});
|
|
||||||
|
|
||||||
await copySection(fdOld, sections, fdNew, 2);
|
await copySection(fdOld, sections, fdNew, 2);
|
||||||
await copySection(fdOld, sections, fdNew, 3);
|
await copySection(fdOld, sections, fdNew, 3);
|
||||||
@ -3694,7 +3693,6 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
|
|
||||||
await fdOld.close();
|
await fdOld.close();
|
||||||
await fdNew.close();
|
await fdNew.close();
|
||||||
await fdTmp.close();
|
|
||||||
|
|
||||||
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
||||||
|
|
||||||
@ -3724,9 +3722,7 @@ async function convert(oldPtauFilename, newPTauFilename, logger) {
|
|||||||
async function processSectionPower(p) {
|
async function processSectionPower(p) {
|
||||||
const nPoints = 2 ** p;
|
const nPoints = 2 ** p;
|
||||||
const G = curve[Gstr];
|
const G = curve[Gstr];
|
||||||
const Fr = curve.Fr;
|
|
||||||
const sGin = G.F.n8*2;
|
const sGin = G.F.n8*2;
|
||||||
const sGmid = G.F.n8*3;
|
|
||||||
|
|
||||||
let buff;
|
let buff;
|
||||||
buff = new ffjavascript.BigBuffer(nPoints*sGin);
|
buff = new ffjavascript.BigBuffer(nPoints*sGin);
|
||||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
14
package-lock.json
generated
14
package-lock.json
generated
@ -672,19 +672,19 @@
|
|||||||
"integrity": "sha512-LwvI75nCVs83EsuKpT+cL7M7T3VNdY4O50nLi4jnVZcxvqbWWqX43dM2GDrNHeD5uaX+ug0Di5RcvnTTI+hEAQ=="
|
"integrity": "sha512-LwvI75nCVs83EsuKpT+cL7M7T3VNdY4O50nLi4jnVZcxvqbWWqX43dM2GDrNHeD5uaX+ug0Di5RcvnTTI+hEAQ=="
|
||||||
},
|
},
|
||||||
"ffjavascript": {
|
"ffjavascript": {
|
||||||
"version": "0.2.16",
|
"version": "0.2.18",
|
||||||
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.16.tgz",
|
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.18.tgz",
|
||||||
"integrity": "sha512-U7kmhXkQjvn4v8hx4h3MYCRI0Za+nu4utoPag3zVBNEOALiDprWhT4Hv3nfxpBZLieQZoUJhtZBLoKAWZu0g2w==",
|
"integrity": "sha512-FFQHf5QiP+MfeCk6k6T4rYMS+53gkuhJoBpsH89c8fsNJi4EqhRiYxJa5F9aTktBZzGKj9e51Nb0ABsQcLdLaw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"big-integer": "^1.6.48",
|
"big-integer": "^1.6.48",
|
||||||
"wasmcurves": "0.0.8",
|
"wasmcurves": "0.0.10",
|
||||||
"worker-threads": "^1.0.0"
|
"worker-threads": "^1.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"wasmcurves": {
|
"wasmcurves": {
|
||||||
"version": "0.0.8",
|
"version": "0.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.0.10.tgz",
|
||||||
"integrity": "sha512-CYCPh8K2LhPaGy3fvI+yinL1U53XBlJFVKznICS+JeKVv61Lx0gpWNe2NnHSD25YfTihv1HcUeSe+wxgFLIjYw==",
|
"integrity": "sha512-bCIZni6RzeQrgt3Hri+KiblRJJq9s7a2F0bGIpa9Eaj+V9jDxscMH6wDWbIYMTuVMW4dqO8eL8gUI/nm/p2SeA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"big-integer": "^1.6.42",
|
"big-integer": "^1.6.42",
|
||||||
"blakejs": "^1.1.0"
|
"blakejs": "^1.1.0"
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
|
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
|
||||||
"circom_runtime": "0.1.5",
|
"circom_runtime": "0.1.5",
|
||||||
"fastfile": "0.0.15",
|
"fastfile": "0.0.15",
|
||||||
"ffjavascript": "0.2.16",
|
"ffjavascript": "0.2.18",
|
||||||
"logplease": "^1.2.15",
|
"logplease": "^1.2.15",
|
||||||
"r1csfile": "0.0.12"
|
"r1csfile": "0.0.12"
|
||||||
},
|
},
|
||||||
|
@ -12,7 +12,6 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
|
|||||||
await utils.writePTauHeader(fdNew, curve, power);
|
await utils.writePTauHeader(fdNew, curve, power);
|
||||||
|
|
||||||
// const fdTmp = await fastFile.createOverride(newPTauFilename+ ".tmp");
|
// 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, 2);
|
||||||
await binFileUtils.copySection(fdOld, sections, fdNew, 3);
|
await binFileUtils.copySection(fdOld, sections, fdNew, 3);
|
||||||
@ -28,7 +27,6 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
|
|||||||
|
|
||||||
await fdOld.close();
|
await fdOld.close();
|
||||||
await fdNew.close();
|
await fdNew.close();
|
||||||
await fdTmp.close();
|
|
||||||
|
|
||||||
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
// await fs.promises.unlink(newPTauFilename+ ".tmp");
|
||||||
|
|
||||||
@ -58,9 +56,7 @@ export default async function convert(oldPtauFilename, newPTauFilename, logger)
|
|||||||
async function processSectionPower(p) {
|
async function processSectionPower(p) {
|
||||||
const nPoints = 2 ** p;
|
const nPoints = 2 ** p;
|
||||||
const G = curve[Gstr];
|
const G = curve[Gstr];
|
||||||
const Fr = curve.Fr;
|
|
||||||
const sGin = G.F.n8*2;
|
const sGin = G.F.n8*2;
|
||||||
const sGmid = G.F.n8*3;
|
|
||||||
|
|
||||||
let buff;
|
let buff;
|
||||||
buff = new BigBuffer(nPoints*sGin);
|
buff = new BigBuffer(nPoints*sGin);
|
||||||
|
Loading…
Reference in New Issue
Block a user