@provablehq/wasm 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +596 -0
- package/README.md +63 -0
- package/dist/assets/aleo_wasm.wasm +0 -0
- package/dist/crates/aleo_wasm.d.ts +1684 -0
- package/dist/crates/aleo_wasm_init.d.ts +17 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +4583 -0
- package/dist/index.js.map +1 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +4579 -0
- package/dist/worker.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2
|
+
|
|
3
|
+
export type InitOutput = typeof import("./aleo_wasm");
|
|
4
|
+
|
|
5
|
+
export interface InitOptions {
|
|
6
|
+
serverPath?: string;
|
|
7
|
+
|
|
8
|
+
importHook?: (path: string) => InitInput | Promise<InitInput>;
|
|
9
|
+
|
|
10
|
+
initializeHook?: (
|
|
11
|
+
init: (path: InitInput | Promise<InitInput>, memory?: WebAssembly.Memory) => void,
|
|
12
|
+
path: InitInput | Promise<InitInput>,
|
|
13
|
+
) => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const init: (options?: InitOptions) => Promise<InitOutput>;
|
|
17
|
+
export default init;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initializes a thread pool of Workers. This enables multi-threading, which significantly improves performance.
|
|
3
|
+
*
|
|
4
|
+
* @param {number | undefined} threads Number of threads to spawn. If not specified, uses the number of available cores.
|
|
5
|
+
*/
|
|
6
|
+
export function initThreadPool(threads?: number): Promise<void>;
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
Address,
|
|
10
|
+
Execution,
|
|
11
|
+
ExecutionResponse,
|
|
12
|
+
Field,
|
|
13
|
+
Metadata,
|
|
14
|
+
OfflineQuery,
|
|
15
|
+
PrivateKey,
|
|
16
|
+
PrivateKeyCiphertext,
|
|
17
|
+
Program,
|
|
18
|
+
ProvingKey,
|
|
19
|
+
RecordCiphertext,
|
|
20
|
+
RecordPlaintext,
|
|
21
|
+
ProgramManager,
|
|
22
|
+
Signature,
|
|
23
|
+
Transaction,
|
|
24
|
+
ViewKey,
|
|
25
|
+
VerifyingKey,
|
|
26
|
+
verifyFunctionExecution,
|
|
27
|
+
} from "./crates/aleo_wasm";
|