Browse Source

Fix simplification on one

wasm
Jordi Baylina 6 years ago
parent
commit
14e6c291fd
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
3 changed files with 8 additions and 8 deletions
  1. +5
    -5
      package-lock.json
  2. +2
    -2
      package.json
  3. +1
    -1
      src/lcalgebra.js

+ 5
- 5
package-lock.json

@ -1,6 +1,6 @@
{
"name": "jaz",
"version": "0.0.1",
"name": "circom",
"version": "0.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -1470,9 +1470,9 @@
}
},
"zksnark": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/zksnark/-/zksnark-0.0.1.tgz",
"integrity": "sha512-DppjGsfSwcd4M0tBP3DsxnUcWjLsvyXSQWm1Pexpcxdu6J7mgFjrMPskC/NgkOUBJda1Eyd4RKKm752nP69Njg==",
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/zksnark/-/zksnark-0.0.2.tgz",
"integrity": "sha512-+MYducXidMTCRRuxSLLNXBEQRIzi8nA7us2jDzlf8d+yySFRymK56z7tQUics97nl1+AoGH40GhtNlWgTFBbig==",
"dev": true,
"requires": {
"big-integer": "^1.6.34",

+ 2
- 2
package.json

@ -1,6 +1,6 @@
{
"name": "circom",
"version": "0.0.2",
"version": "0.0.3",
"description": "Language to generate logica circuits",
"main": "index.js",
"directories": {
@ -37,6 +37,6 @@
"eslint": "^5.0.1",
"eslint-plugin-mocha": "^5.0.0",
"jison": "^0.4.18",
"zksnark": "0.0.2"
"zksnark": "0.0.3"
}
}

+ 1
- 1
src/lcalgebra.js

@ -437,7 +437,7 @@ function canonize(ctx, a) {
for (let k in a.values) {
let s = k;
while (ctx.signals[s].equivalence) s= ctx.signals[s].equivalence;
if (typeof(ctx.signals[s].value) != "undefined") {
if ((typeof(ctx.signals[s].value) != "undefined")&&(k != "one")) {
const v = a.values[k].times(ctx.signals[s].value).mod(__P__);
if (!a.values["one"]) {
a.values["one"]=v;

Loading…
Cancel
Save