Browse Source

Big array in r1cs labels

master
Jordi Baylina 4 years ago
parent
commit
cbb0b229bc
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/r1csfile.js

+ 2
- 1
src/r1csfile.js

@ -1,6 +1,7 @@
const fastFile = require("fastfile"); const fastFile = require("fastfile");
const assert = require("assert"); const assert = require("assert");
const BigArray = require("./bigarray");
module.exports.buildR1cs = buildR1cs; module.exports.buildR1cs = buildR1cs;
@ -70,7 +71,7 @@ async function buildR1cs(ctx, fileName) {
await fd.writeULE64(0); // Temporally set to 0 length await fd.writeULE64(0); // Temporally set to 0 length
const arr = new Array(NWires);
const arr = new BigArray(NWires);
for (let i=0; i<ctx.signals.length; i++) { for (let i=0; i<ctx.signals.length; i++) {
const outIdx = ctx.signals[i].id; const outIdx = ctx.signals[i].id;
if (ctx.signals[i].e>=0) continue; // If has an alias, continue.. if (ctx.signals[i].e>=0) continue; // If has an alias, continue..

Loading…
Cancel
Save