diff --git a/src/snarkjs.ts b/src/snarkjs.ts index d309153..ac13c31 100644 --- a/src/snarkjs.ts +++ b/src/snarkjs.ts @@ -31,6 +31,12 @@ const wrappedSnark = { ): Promise { return snarkjs.groth16.verify(vk_verifier, publicSignals, proof, logger); }, + exportSolidityCallData: async function groth16ExportSolidityCallData( + proof: unknown, + publicInputs: unknown + ): Promise { + return snarkjs.groth16.exportSolidityCallData(proof, publicInputs); + }, }, plonk: { fullProve: async function plonkFullProve( @@ -64,6 +70,12 @@ const wrappedSnark = { ): Promise { return snarkjs.plonk.verify(vk_verifier, publicSignals, proof, logger); }, + exportSolidityCallData: async function plonkExportSolidityCallData( + proof: unknown, + publicInputs: unknown + ): Promise { + return snarkjs.plonk.exportSolidityCallData(proof, publicInputs); + }, }, powersOfTau: { newAccumulator: async function newAccumulator(