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