@iden3/react-native-rapidsnark
Version:
React-native wrapper for rapidsnark
17 lines • 776 B
TypeScript
export declare const DEFAULT_PROOF_BUFFER_SIZE = 1024;
export declare const DEFAULT_ERROR_BUFFER_SIZE = 256;
export declare function groth16Prove(zkeyPath: string, witness: string, { proofBufferSize, publicBufferSize, errorBufferSize, }?: {
proofBufferSize?: number;
publicBufferSize?: number | undefined;
errorBufferSize?: number;
}): Promise<{
proof: string;
pub_signals: string;
}>;
export declare function groth16Verify(proof: string, inputs: string, verificationKey: string, { errorBufferSize, }?: {
errorBufferSize: number | undefined;
}): Promise<boolean>;
export declare function groth16PublicBufferSize(zkeyPath: string, { errorBufferSize, }?: {
errorBufferSize: number | undefined;
}): Promise<number>;
//# sourceMappingURL=index.d.ts.map