mirror of
https://github.com/0xPARC/zkmessage.xyz.git
synced 2026-01-10 06:47:55 -05:00
16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
declare namespace snarkjs {
|
|
namespace groth16 {
|
|
async function fullProve(
|
|
input: Record<string, string>,
|
|
wasmPath: string,
|
|
zkeyPath: string
|
|
): Promise<{ publicSignals: string[]; proof: Object }>
|
|
|
|
async function verify(
|
|
verificationKey: any,
|
|
publicSignals: string[],
|
|
proof: Object
|
|
): Promise<boolean>
|
|
}
|
|
}
|