mirror of
https://github.com/arnaucube/circomlib.git
synced 2026-02-06 18:56:43 +01:00
Poseidon in SMT
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user