From 825f31b420c602c0f6f6af8e9651187593532d2f Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Thu, 26 Mar 2020 18:40:52 +0100 Subject: [PATCH] deps and sanitycheck in tester --- package-lock.json | 6 +++--- package.json | 2 +- ports/wasm/tester.js | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a5d6277..040d4bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -221,9 +221,9 @@ "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=" }, "circom_runtime": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.2.tgz", - "integrity": "sha512-aJcQucUxrZ31O7JbY14l1oiP6ZlNAtPW+i8/CY4b9GAjgWPjts+D9pxtz/x2yC2Ei+ieaJY7LFjfCKFTOoHGDQ==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.3.tgz", + "integrity": "sha512-z4ypbs9cTQn7+2FHZNTnccMj6kQCcKT2agYqCrm2kdLBJh9LDoxU1JVu5mSnVuOtgc7BclQ7r0xclG0zP2rxhw==", "requires": { "big-integer": "^1.6.48", "fnv-plus": "^1.3.1" diff --git a/package.json b/package.json index d544156..ba11b2b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "big-integer": "^1.6.32", "chai": "^4.2.0", - "circom_runtime": "0.0.2", + "circom_runtime": "0.0.3", "ffiasm": "0.0.2", "ffjavascript": "0.0.3", "ffwasm": "0.0.5", diff --git a/ports/wasm/tester.js b/ports/wasm/tester.js index 8da1644..7f63755 100644 --- a/ports/wasm/tester.js +++ b/ports/wasm/tester.js @@ -55,9 +55,8 @@ class WasmTester { await this.dir.cleanup(); } - async calculateWitness(input) { - - return await this.witnessCalculator.calculateWitness(input); + async calculateWitness(input, sanityCheck) { + return await this.witnessCalculator.calculateWitness(input, sanityCheck); } async loadSymbols() {