import { getWASMFile as e, getZKeyFile as t } from "./getZKFiles.mjs";
import { WorkerVariant as n } from "../../webworker/worker.registry.mjs";
import { performTaskWithWorker as r } from "../../webworker/performTaskWithWorker.mjs";
import { SnarkJSWorkerActionType as i } from "../../webworker/snarkjsWorker/snarkjsWorker.types.mjs";
//#region libs/shared/common/src/functions/snarkjs/generateZkProofSelf.ts
var a = async (a, o, s) => {
	let c = e(o, a), l = t(o, a), { publicSignals: u, zkCallData: d } = await r({
		type: n.SnarkJS,
		payload: {
			type: i.FULL_PROVE,
			data: {
				input: s,
				chainId: a,
				wasmFilePath: c,
				zKeyFilePath: l
			}
		}
	});
	return {
		zkCallData: d,
		publicSignals: u
	};
};
//#endregion
export { a as generateZkProofSelf };
