@provablehq/wasm 0.11.1 → 0.11.2
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 +54 -54
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +54 -54
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +54 -54
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +1 -1
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +30 -30
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +30 -30
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +30 -30
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
|
|
|
47
47
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
48
48
|
*/
|
|
49
49
|
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, program_imports?: ProgramImports | null): boolean;
|
|
50
|
+
export function stringToField(string: string): Field;
|
|
50
51
|
/**
|
|
51
52
|
* Set test consensus version heights for testing.
|
|
52
53
|
*
|
|
@@ -59,7 +60,6 @@ export function verifyFunctionExecution(execution: Execution, verifying_key: Ver
|
|
|
59
60
|
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
60
61
|
*/
|
|
61
62
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
62
|
-
export function stringToField(string: string): Field;
|
|
63
63
|
/**
|
|
64
64
|
* Public address of an Aleo account
|
|
65
65
|
*/
|
|
Binary file
|
package/dist/testnet/index.cjs
CHANGED
|
@@ -433,26 +433,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
/**
|
|
437
|
-
* Set test consensus version heights for testing.
|
|
438
|
-
*
|
|
439
|
-
* @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
|
|
440
|
-
*
|
|
441
|
-
* @example
|
|
442
|
-
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
443
|
-
*
|
|
444
|
-
* Set the consensus version heights.
|
|
445
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
446
|
-
* @param {string | null} [heights]
|
|
447
|
-
* @returns {Array<any>}
|
|
448
|
-
*/
|
|
449
|
-
function getOrInitConsensusVersionTestHeights(heights) {
|
|
450
|
-
var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
451
|
-
var len0 = WASM_VECTOR_LEN;
|
|
452
|
-
const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
|
|
453
|
-
return takeObject(ret);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
436
|
/**
|
|
457
437
|
* @param {string} string
|
|
458
438
|
* @returns {Field}
|
|
@@ -475,6 +455,26 @@ function stringToField(string) {
|
|
|
475
455
|
}
|
|
476
456
|
}
|
|
477
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Set test consensus version heights for testing.
|
|
460
|
+
*
|
|
461
|
+
* @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
|
|
462
|
+
*
|
|
463
|
+
* @example
|
|
464
|
+
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
465
|
+
*
|
|
466
|
+
* Set the consensus version heights.
|
|
467
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
468
|
+
* @param {string | null} [heights]
|
|
469
|
+
* @returns {Array<any>}
|
|
470
|
+
*/
|
|
471
|
+
function getOrInitConsensusVersionTestHeights(heights) {
|
|
472
|
+
var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
473
|
+
var len0 = WASM_VECTOR_LEN;
|
|
474
|
+
const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
|
|
475
|
+
return takeObject(ret);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
478
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
479
479
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
480
480
|
const mem = getDataViewMemory0();
|
|
@@ -494,16 +494,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
494
494
|
}
|
|
495
495
|
return result;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
wasm$1.
|
|
497
|
+
function __wasm_bindgen_func_elem_7389(arg0, arg1) {
|
|
498
|
+
wasm$1.__wasm_bindgen_func_elem_7389(arg0, arg1);
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
function
|
|
502
|
-
wasm$1.
|
|
501
|
+
function __wasm_bindgen_func_elem_8758(arg0, arg1, arg2) {
|
|
502
|
+
wasm$1.__wasm_bindgen_func_elem_8758(arg0, arg1, addHeapObject(arg2));
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
function
|
|
506
|
-
wasm$1.
|
|
505
|
+
function __wasm_bindgen_func_elem_7660(arg0, arg1, arg2, arg3) {
|
|
506
|
+
wasm$1.__wasm_bindgen_func_elem_7660(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -19256,7 +19256,7 @@ function __wbg_get_imports(memory) {
|
|
|
19256
19256
|
const a = state0.a;
|
|
19257
19257
|
state0.a = 0;
|
|
19258
19258
|
try {
|
|
19259
|
-
return
|
|
19259
|
+
return __wasm_bindgen_func_elem_7660(a, state0.b, arg0, arg1);
|
|
19260
19260
|
} finally {
|
|
19261
19261
|
state0.a = a;
|
|
19262
19262
|
}
|
|
@@ -19512,7 +19512,7 @@ function __wbg_get_imports(memory) {
|
|
|
19512
19512
|
};
|
|
19513
19513
|
imports.wbg.__wbindgen_cast_073ddd2b87fab8ab = function(arg0, arg1) {
|
|
19514
19514
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19515
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19515
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_7389);
|
|
19516
19516
|
return addHeapObject(ret);
|
|
19517
19517
|
};
|
|
19518
19518
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -19522,7 +19522,7 @@ function __wbg_get_imports(memory) {
|
|
|
19522
19522
|
};
|
|
19523
19523
|
imports.wbg.__wbindgen_cast_263b62405be3c669 = function(arg0, arg1) {
|
|
19524
19524
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19525
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19525
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_8758);
|
|
19526
19526
|
return addHeapObject(ret);
|
|
19527
19527
|
};
|
|
19528
19528
|
imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
|
|
@@ -19537,7 +19537,7 @@ function __wbg_get_imports(memory) {
|
|
|
19537
19537
|
};
|
|
19538
19538
|
imports.wbg.__wbindgen_cast_5cd376b701f56c0e = function(arg0, arg1) {
|
|
19539
19539
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [Externref], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19540
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19540
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_8758);
|
|
19541
19541
|
return addHeapObject(ret);
|
|
19542
19542
|
};
|
|
19543
19543
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|