@provablehq/wasm 0.10.2 → 0.10.4
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 +7 -1
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +18883 -0
- package/dist/mainnet/index.cjs.map +1 -0
- package/dist/mainnet/index.d.cts +8 -0
- package/dist/mainnet/index.js +42 -32
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +42 -32
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +19 -13
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +18883 -0
- package/dist/testnet/index.cjs.map +1 -0
- package/dist/testnet/index.d.cts +8 -0
- package/dist/testnet/index.js +69 -59
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +69 -59
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +35 -7
|
@@ -40,6 +40,7 @@ export function verifyFunctionExecution(execution: Execution, verifying_key: Ver
|
|
|
40
40
|
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
41
41
|
*/
|
|
42
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
|
*/
|
|
@@ -2813,6 +2813,12 @@ export class Program {
|
|
|
2813
2813
|
* console.log(imports === expected_imports); // Output should be "true"
|
|
2814
2814
|
*/
|
|
2815
2815
|
getImports(): Array<any>;
|
|
2816
|
+
/**
|
|
2817
|
+
* Get the checksum of the program.
|
|
2818
|
+
*
|
|
2819
|
+
* @returns {Uint8Array} The checksum of the program as a 32-byte Uint8Array
|
|
2820
|
+
*/
|
|
2821
|
+
toChecksum(): Uint8Array;
|
|
2816
2822
|
/**
|
|
2817
2823
|
* Get a the list of a program's mappings and the names/types of their keys and values.
|
|
2818
2824
|
*
|
|
Binary file
|