@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
|
@@ -14,18 +14,6 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
14
14
|
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
15
15
|
*/
|
|
16
16
|
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Verify a SNARK proof against a verifying key and public inputs.
|
|
19
|
-
*
|
|
20
|
-
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
21
|
-
* It directly invokes the Varuna proof verification from snarkVM.
|
|
22
|
-
*
|
|
23
|
-
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
24
|
-
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
25
|
-
* @param {Proof} proof The proof to verify
|
|
26
|
-
* @returns {boolean} True if the proof is valid, false otherwise
|
|
27
|
-
*/
|
|
28
|
-
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
29
17
|
/**
|
|
30
18
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
31
19
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -40,6 +28,19 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
|
|
|
40
28
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
41
29
|
*/
|
|
42
30
|
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 SNARK proof against a verifying key and public inputs.
|
|
33
|
+
*
|
|
34
|
+
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
35
|
+
* It directly invokes the Varuna proof verification from snarkVM.
|
|
36
|
+
*
|
|
37
|
+
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
38
|
+
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
39
|
+
* @param {Proof} proof The proof to verify
|
|
40
|
+
* @returns {boolean} True if the proof is valid, false otherwise
|
|
41
|
+
*/
|
|
42
|
+
export function snarkVerify(verifying_key: VerifyingKey, 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 verifyFunctionExecution(execution: Execution, verifying_key: Ver
|
|
|
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
|