Poseidon in SMT

This commit is contained in:
Jordi Baylina
2019-06-04 17:32:28 +02:00
parent 590d62a07c
commit c4490b2ce9
9 changed files with 98 additions and 20 deletions

View File

@@ -46,12 +46,12 @@ describe("Poseidon Smart contract test", () => {
const res = await mimc.methods.poseidon([1,2]).call();
console.log("Cir: " + bigInt(res.toString(16)).toString(16));
// console.log("Cir: " + bigInt(res.toString(16)).toString(16));
const hash = Poseidon.createHash(6, 8, 57);
const res2 = hash([1,2]);
console.log("Ref: " + bigInt(res2).toString(16));
// console.log("Ref: " + bigInt(res2).toString(16));
assert.equal(res.toString(), res2.toString());
});

View File

@@ -84,7 +84,7 @@ describe("SMT test", function () {
let circuit;
let tree;
this.timeout(100000);
this.timeout(10000000);
before( async () => {
const cirDef = await compiler(path.join(__dirname, "circuits", "smtprocessor10_test.circom"));