Skip to content

Commit

Permalink
Fix requires circomlibjs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaylina committed Oct 6, 2021
1 parent 9048d32 commit 31d892d
Show file tree
Hide file tree
Showing 23 changed files with 8,388 additions and 1,033 deletions.
8,782 changes: 8,371 additions & 411 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"devDependencies": {
"chai": "^4.3.4",
"circom_tester": "0.0.5",
"circomlibjs": "^0.0.6",
"circomlibjs": "^0.0.7",
"eslint": "^6.8.0",
"ganache-cli": "^6.12.1",
"mocha": "^7.1.1",
Expand Down
170 changes: 0 additions & 170 deletions test/babyjub_js.js

This file was deleted.

4 changes: 2 additions & 2 deletions test/eddsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const path = require("path");

const tester = require("circom").tester;

const eddsa = require("../src/eddsa.js");
const babyJub = require("../src/babyjub.js");
const eddsa = require("circomlibjs").eddsa;
const babyJub = require("circomlibjs").babyjub;

const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
Expand Down
88 changes: 0 additions & 88 deletions test/eddsa_js.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/eddsamimc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chai = require("chai");
const path = require("path");
const tester = require("circom").tester;

const eddsa = require("../src/eddsa.js");
const eddsa = require("circomlibjs").eddsa;
const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
exports.p = Scalar.fromString("21888242871839275222246405745257275088548364400416034343698204186575808495617");
Expand Down
2 changes: 1 addition & 1 deletion test/eddsaposeidon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chai = require("chai");
const path = require("path");
const tester = require("circom").tester;

const eddsa = require("../src/eddsa.js");
const eddsa = require("circomlibjs").eddsa;
const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
exports.p = Scalar.fromString("21888242871839275222246405745257275088548364400416034343698204186575808495617");
Expand Down
2 changes: 1 addition & 1 deletion test/escalarmul.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const chai = require("chai");
const path = require("path");
const tester = require("circom").tester;
const babyJub = require("../src/babyjub.js");
const babyJub = require("circomlibjs").babyjub;

const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
Expand Down
2 changes: 1 addition & 1 deletion test/escalarmulfix.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const chai = require("chai");
const path = require("path");
const tester = require("circom").tester;
const babyjub = require("../src/babyjub");
const babyjub = require("circomlibjs").babyjub;
const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
exports.p = Scalar.fromString("21888242871839275222246405745257275088548364400416034343698204186575808495617");
Expand Down
2 changes: 1 addition & 1 deletion test/mimccircuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chai = require("chai");
const path = require("path");
const tester = require("circom").tester;

const mimcjs = require("../src/mimc7.js");
const mimcjs = require("circomlibjs").mimc7;

describe("MiMC Circuit test", function () {
let circuit;
Expand Down
48 changes: 0 additions & 48 deletions test/mimccontract.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/mimcspongecircuit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");
const tester = require("circom").tester;

const mimcjs = require("../src/mimcsponge.js");
const mimcjs = require("circomlibjs").mimcsponge;


describe("MiMC Sponge Circuit test", function () {
Expand Down
Loading

0 comments on commit 31d892d

Please sign in to comment.