diff --git a/js/package.json b/js/package.json index 3d779e1..ad67ef3 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "@mach-34/zkemail-nr", - "version": "1.1.0", + "version": "1.1.1", "main": "dist", "types": "dist", "license": "MIT", diff --git a/js/src/prover.ts b/js/src/prover.ts index 4eb8050..06f43a6 100644 --- a/js/src/prover.ts +++ b/js/src/prover.ts @@ -5,8 +5,7 @@ import { UltraHonkBackend, } from "@noir-lang/backend_barretenberg"; import { Noir } from "@noir-lang/noir_js"; -import { InputValue } from "@noir-lang/noirc_abi"; -import { CircuitInput } from "./index"; +import { InputValue, InputMap } from "@noir-lang/noirc_abi"; type ProvingBackend = "honk" | "plonk" | "all"; @@ -41,7 +40,7 @@ export class ZKEmailProver { * @returns - the witness for the input and the output of the circuit if satisfiable */ async simulateWitness( - input: CircuitInput + input: InputMap ): Promise<{ witness: Uint8Array; returnValue: InputValue }> { return this.noir.execute(input); } @@ -85,7 +84,7 @@ export class ZKEmailProver { * @returns proof of valid execution of the circuit */ async fullProve( - input: CircuitInput, + input: InputMap, provingBackend?: ProvingBackend ): Promise { const { witness } = await this.simulateWitness(input);