pre 0.5 all working

This commit is contained in:
Jordi Baylina
2020-03-26 19:24:20 +01:00
parent 273ab79665
commit e240605642
28 changed files with 2982 additions and 3500 deletions

View File

@@ -1,5 +1,5 @@
const bigInt = require("big-integer");
const ZqField = require("fflib").ZqField;
const ZqField = require("ffjavascript").ZqField;
const utils = require("./utils.js");
exports.addPoint = addPoint;

View File

@@ -1,5 +1,5 @@
const bigInt = require("big-integer");
const ZqField = require("fflib").ZqField;
const ZqField = require("ffjavascript").ZqField;
const Web3Utils = require("web3-utils");
const F = new ZqField(bigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617"));

View File

@@ -1,6 +1,6 @@
const bigInt = require("big-integer");
const Web3Utils = require("web3-utils");
const ZqField = require("fflib").ZqField;
const ZqField = require("ffjavascript").ZqField;
const F = new ZqField(bigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617"));
const SEED = "mimcsponge";

View File

@@ -1,7 +1,7 @@
const bigInt = require("big-integer");
const blake2b = require("blake2b");
const assert = require("assert");
const ZqField = require("fflib").ZqField;
const ZqField = require("ffjavascript").ZqField;
const utils = require("./utils");
const F = new ZqField(bigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617"));