Merge pull request #81 from phated/phated/circom_runtime

fix: new import style from circom_runtime
This commit is contained in:
Jordi Baylina 2021-01-21 19:23:47 +01:00 committed by GitHub
commit f26f7b70f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

@ -1,10 +1,8 @@
import * as fastFile from "fastfile"; import * as fastFile from "fastfile";
import circomRuntime from "circom_runtime"; import { WitnessCalculatorBuilder } from "circom_runtime";
import * as wtnsUtils from "./wtns_utils.js"; import * as wtnsUtils from "./wtns_utils.js";
import * as binFileUtils from "@iden3/binfileutils"; import * as binFileUtils from "@iden3/binfileutils";
const { WitnessCalculatorBuilder } = circomRuntime;
export default async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) { export default async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) {
const fdWasm = await fastFile.readExisting(wasmFileName); const fdWasm = await fastFile.readExisting(wasmFileName);

@ -1,11 +1,9 @@
import * as fastFile from "fastfile"; import * as fastFile from "fastfile";
import circomRuntime from "circom_runtime"; import { WitnessCalculatorBuilder } from "circom_runtime";
import * as wtnsUtils from "./wtns_utils.js"; import * as wtnsUtils from "./wtns_utils.js";
import * as binFileUtils from "@iden3/binfileutils"; import * as binFileUtils from "@iden3/binfileutils";
import loadSyms from "./loadsyms.js"; import loadSyms from "./loadsyms.js";
const { WitnessCalculatorBuilder } = circomRuntime;
export default async function wtnsDebug(input, wasmFileName, wtnsFileName, symName, options, logger) { export default async function wtnsDebug(input, wasmFileName, wtnsFileName, symName, options, logger) {
const fdWasm = await fastFile.readExisting(wasmFileName); const fdWasm = await fastFile.readExisting(wasmFileName);