Merge pull request #81 from phated/phated/circom_runtime
fix: new import style from circom_runtime
This commit is contained in:
commit
f26f7b70f5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user