@provablehq/wasm 0.10.2 → 0.10.3
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/dist/mainnet/aleo_wasm.d.ts +13 -13
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +18873 -0
- package/dist/mainnet/index.cjs.map +1 -0
- package/dist/mainnet/index.d.cts +8 -0
- package/dist/mainnet/index.js +51 -51
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +51 -51
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +13 -13
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +18873 -0
- package/dist/testnet/index.cjs.map +1 -0
- package/dist/testnet/index.d.cts +8 -0
- package/dist/testnet/index.js +59 -59
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +59 -59
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +35 -7
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function runRayonThread(receiver: number): void;
|
|
4
4
|
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
7
|
+
*
|
|
8
|
+
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
9
|
+
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
10
|
+
*
|
|
11
|
+
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
12
|
+
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
13
|
+
* @param {Proof} proof The batch proof to verify
|
|
14
|
+
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
15
|
+
*/
|
|
16
|
+
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
5
17
|
/**
|
|
6
18
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
7
19
|
*
|
|
@@ -28,18 +40,7 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
|
|
|
28
40
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
29
41
|
*/
|
|
30
42
|
export function verifyFunctionExecution(execution: Execution, verifying_key: VerifyingKey, program: Program, function_id: string, imports: object | null | undefined, imported_verifying_keys: object | null | undefined, block_height: number): boolean;
|
|
31
|
-
|
|
32
|
-
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
33
|
-
*
|
|
34
|
-
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
35
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
36
|
-
*
|
|
37
|
-
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
38
|
-
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
39
|
-
* @param {Proof} proof The batch proof to verify
|
|
40
|
-
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
41
|
-
*/
|
|
42
|
-
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
43
|
+
export function stringToField(string: string): Field;
|
|
43
44
|
/**
|
|
44
45
|
* Set test consensus version heights for testing.
|
|
45
46
|
*
|
|
@@ -52,7 +53,6 @@ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>,
|
|
|
52
53
|
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13");
|
|
53
54
|
*/
|
|
54
55
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
55
|
-
export function stringToField(string: string): Field;
|
|
56
56
|
/**
|
|
57
57
|
* Public address of an Aleo account
|
|
58
58
|
*/
|
|
Binary file
|