UNPKG

@iden3/react-native-rapidsnark

Version:
12 lines 657 B
import type { TurboModule } from "react-native"; export interface Spec extends TurboModule { groth16Prove: (zkey_path: string, witness: string, proofBufferSize: number | null, publicBufferSize: number | null, errorBufferSize: number | null) => Promise<{ proof: string; pub_signals: string; }>; groth16Verify: (proof: string, publicSignals: string, verificationKey: string, errorBufferSize: number | null) => Promise<boolean>; groth16PublicBufferSize: (zkeyPath: string, errorBufferSize: number | null) => Promise<number>; } declare const _default: Spec; export default _default; //# sourceMappingURL=NativeRapidsnark.d.ts.map