Files
zkmessage.xyz/snarkjs.d.ts
Joel Gustafson f26eec9057 stable demo
2021-12-14 14:09:14 -05:00

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>
}
}