@provablehq/sdk
Version:
A Software Development Kit (SDK) for Zero-Knowledge Transactions
10 lines (9 loc) • 322 B
TypeScript
import "./polyfill/shared.js";
import { PrivateKey } from "./browser.js";
export interface WorkerAPI {
run: (localProgram: string, aleoFunction: string, inputs: string[], privateKey: string) => Promise<{
outputs: any;
execution: string;
} | string>;
getPrivateKey: () => Promise<PrivateKey>;
}