UNPKG

zk-expo

Version:

Expo Module to create Zero-Knowledge Proofs for Groth16, Halo2 & Noir on iOS and Android.

19 lines 807 B
export declare function groth16Prove(wasm_path: string, zkey_path: string, inputs: string): Promise<{ proof: any; publicSignals: any; }>; export declare function groth16ProveV2(graph_path: string, zkey_path: string, inputs: string): Promise<{ proof: any; publicSignals: any; }>; export declare function halo2Prove(wasmPath: string, publicInputs: number[]): Promise<string>; export declare function noirProve(dataPath: string, witnessJson: string, type?: "scheme" | "bytecodeJson"): Promise<{ success: true; proof: string; vk: string; } | { success: false; }>; export declare function addToCache(functionName: "groth16_prove_v2" | undefined, path1: string, path2: string): Promise<void>; export declare function clearCache(): Promise<void>; //# sourceMappingURL=index.d.ts.map