@provablehq/wasm 0.12.0 → 0.12.1
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 +15 -14
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +92 -87
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +92 -88
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +92 -87
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +15 -14
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +108 -103
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +108 -104
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +108 -103
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function runRayonThread(receiver: number): void;
|
|
4
|
+
export function install_panic_hook(): void;
|
|
5
|
+
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
4
6
|
/**
|
|
5
7
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
6
8
|
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
@@ -8,7 +10,6 @@ export function runRayonThread(receiver: number): void;
|
|
|
8
10
|
* Values above 4 are clamped to debug.
|
|
9
11
|
*/
|
|
10
12
|
export function setWasmLogLevel(level: number): void;
|
|
11
|
-
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
12
13
|
/**
|
|
13
14
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
14
15
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -23,6 +24,18 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
23
24
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
24
25
|
*/
|
|
25
26
|
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;
|
|
27
|
+
/**
|
|
28
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
29
|
+
*
|
|
30
|
+
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
31
|
+
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
32
|
+
*
|
|
33
|
+
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
34
|
+
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
35
|
+
* @param {Proof} proof The batch proof to verify
|
|
36
|
+
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
37
|
+
*/
|
|
38
|
+
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
26
39
|
/**
|
|
27
40
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
28
41
|
*
|
|
@@ -37,19 +50,6 @@ export function verifyFunctionExecution(execution: Execution, verifying_key: Ver
|
|
|
37
50
|
* @returns {boolean} True if the proof is valid, false otherwise
|
|
38
51
|
*/
|
|
39
52
|
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
42
|
-
*
|
|
43
|
-
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
44
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
45
|
-
*
|
|
46
|
-
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
47
|
-
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
48
|
-
* @param {Proof} proof The batch proof to verify
|
|
49
|
-
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
50
|
-
*/
|
|
51
|
-
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
52
|
-
export function stringToField(string: string): Field;
|
|
53
53
|
/**
|
|
54
54
|
* Set test consensus version heights for testing.
|
|
55
55
|
*
|
|
@@ -62,6 +62,7 @@ export function stringToField(string: string): Field;
|
|
|
62
62
|
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
|
|
63
63
|
*/
|
|
64
64
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
65
|
+
export function stringToField(string: string): Field;
|
|
65
66
|
/**
|
|
66
67
|
* Returns the maximum number of imports allowed in a program by the
|
|
67
68
|
* snarkVM network implementation this SDK was built against.
|
|
Binary file
|
package/dist/testnet/index.cjs
CHANGED
|
@@ -292,15 +292,8 @@ function runRayonThread(receiver) {
|
|
|
292
292
|
wasm$1.runRayonThread(receiver);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
298
|
-
* Levels: 0=silent, 1=error, 2=warn, 3=info (default), 4=debug.
|
|
299
|
-
* Values above 4 are clamped to debug.
|
|
300
|
-
* @param {number} level
|
|
301
|
-
*/
|
|
302
|
-
function setWasmLogLevel(level) {
|
|
303
|
-
wasm$1.setWasmLogLevel(level);
|
|
295
|
+
function install_panic_hook() {
|
|
296
|
+
wasm$1.install_panic_hook();
|
|
304
297
|
}
|
|
305
298
|
|
|
306
299
|
/**
|
|
@@ -313,6 +306,17 @@ function initThreadPool(url, num_threads) {
|
|
|
313
306
|
return takeObject(ret);
|
|
314
307
|
}
|
|
315
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
311
|
+
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
312
|
+
* Levels: 0=silent, 1=error, 2=warn, 3=info (default), 4=debug.
|
|
313
|
+
* Values above 4 are clamped to debug.
|
|
314
|
+
* @param {number} level
|
|
315
|
+
*/
|
|
316
|
+
function setWasmLogLevel(level) {
|
|
317
|
+
wasm$1.setWasmLogLevel(level);
|
|
318
|
+
}
|
|
319
|
+
|
|
316
320
|
let stack_pointer = 128;
|
|
317
321
|
|
|
318
322
|
function addBorrowedObject(obj) {
|
|
@@ -368,41 +372,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
368
372
|
}
|
|
369
373
|
}
|
|
370
374
|
|
|
371
|
-
/**
|
|
372
|
-
* Verify a SNARK proof against a verifying key and public inputs.
|
|
373
|
-
*
|
|
374
|
-
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
375
|
-
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
|
|
376
|
-
* by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
|
|
377
|
-
* an older Varuna version will fail verification.
|
|
378
|
-
*
|
|
379
|
-
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
380
|
-
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
381
|
-
* @param {Proof} proof The proof to verify
|
|
382
|
-
* @returns {boolean} True if the proof is valid, false otherwise
|
|
383
|
-
* @param {VerifyingKey} verifying_key
|
|
384
|
-
* @param {Array<any>} inputs
|
|
385
|
-
* @param {Proof} proof
|
|
386
|
-
* @returns {boolean}
|
|
387
|
-
*/
|
|
388
|
-
function snarkVerify(verifying_key, inputs, proof) {
|
|
389
|
-
try {
|
|
390
|
-
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
391
|
-
_assertClass(verifying_key, VerifyingKey);
|
|
392
|
-
_assertClass(proof, Proof);
|
|
393
|
-
wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
|
|
394
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
395
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
396
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
397
|
-
if (r2) {
|
|
398
|
-
throw takeObject(r1);
|
|
399
|
-
}
|
|
400
|
-
return r0 !== 0;
|
|
401
|
-
} finally {
|
|
402
|
-
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
375
|
/**
|
|
407
376
|
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
408
377
|
*
|
|
@@ -436,22 +405,35 @@ function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
|
436
405
|
}
|
|
437
406
|
|
|
438
407
|
/**
|
|
439
|
-
*
|
|
440
|
-
*
|
|
408
|
+
* Verify a SNARK proof against a verifying key and public inputs.
|
|
409
|
+
*
|
|
410
|
+
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
411
|
+
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
|
|
412
|
+
* by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
|
|
413
|
+
* an older Varuna version will fail verification.
|
|
414
|
+
*
|
|
415
|
+
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
416
|
+
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
417
|
+
* @param {Proof} proof The proof to verify
|
|
418
|
+
* @returns {boolean} True if the proof is valid, false otherwise
|
|
419
|
+
* @param {VerifyingKey} verifying_key
|
|
420
|
+
* @param {Array<any>} inputs
|
|
421
|
+
* @param {Proof} proof
|
|
422
|
+
* @returns {boolean}
|
|
441
423
|
*/
|
|
442
|
-
function
|
|
424
|
+
function snarkVerify(verifying_key, inputs, proof) {
|
|
443
425
|
try {
|
|
444
426
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
wasm$1.
|
|
427
|
+
_assertClass(verifying_key, VerifyingKey);
|
|
428
|
+
_assertClass(proof, Proof);
|
|
429
|
+
wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
|
|
448
430
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
449
431
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
450
432
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
451
433
|
if (r2) {
|
|
452
434
|
throw takeObject(r1);
|
|
453
435
|
}
|
|
454
|
-
return
|
|
436
|
+
return r0 !== 0;
|
|
455
437
|
} finally {
|
|
456
438
|
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
457
439
|
}
|
|
@@ -477,6 +459,28 @@ function getOrInitConsensusVersionTestHeights(heights) {
|
|
|
477
459
|
return takeObject(ret);
|
|
478
460
|
}
|
|
479
461
|
|
|
462
|
+
/**
|
|
463
|
+
* @param {string} string
|
|
464
|
+
* @returns {Field}
|
|
465
|
+
*/
|
|
466
|
+
function stringToField(string) {
|
|
467
|
+
try {
|
|
468
|
+
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
469
|
+
const ptr0 = passStringToWasm0(string, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
470
|
+
const len0 = WASM_VECTOR_LEN;
|
|
471
|
+
wasm$1.stringToField(retptr, ptr0, len0);
|
|
472
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
473
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
474
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
475
|
+
if (r2) {
|
|
476
|
+
throw takeObject(r1);
|
|
477
|
+
}
|
|
478
|
+
return Field.__wrap(r0);
|
|
479
|
+
} finally {
|
|
480
|
+
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
480
484
|
/**
|
|
481
485
|
* Returns the maximum number of imports allowed in a program by the
|
|
482
486
|
* snarkVM network implementation this SDK was built against.
|
|
@@ -513,16 +517,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
513
517
|
}
|
|
514
518
|
return result;
|
|
515
519
|
}
|
|
516
|
-
function
|
|
517
|
-
wasm$1.
|
|
520
|
+
function __wasm_bindgen_func_elem_9273(arg0, arg1, arg2) {
|
|
521
|
+
wasm$1.__wasm_bindgen_func_elem_9273(arg0, arg1, addHeapObject(arg2));
|
|
518
522
|
}
|
|
519
523
|
|
|
520
|
-
function
|
|
521
|
-
wasm$1.
|
|
524
|
+
function __wasm_bindgen_func_elem_7797(arg0, arg1) {
|
|
525
|
+
wasm$1.__wasm_bindgen_func_elem_7797(arg0, arg1);
|
|
522
526
|
}
|
|
523
527
|
|
|
524
|
-
function
|
|
525
|
-
wasm$1.
|
|
528
|
+
function __wasm_bindgen_func_elem_8072(arg0, arg1, arg2, arg3) {
|
|
529
|
+
wasm$1.__wasm_bindgen_func_elem_8072(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
526
530
|
}
|
|
527
531
|
|
|
528
532
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -4905,7 +4909,7 @@ class Group {
|
|
|
4905
4909
|
* @returns {Boolean}
|
|
4906
4910
|
*/
|
|
4907
4911
|
toBooleanLossy() {
|
|
4908
|
-
const ret = wasm$1.
|
|
4912
|
+
const ret = wasm$1.group_toBooleanLossy(this.__wbg_ptr);
|
|
4909
4913
|
return Boolean.__wrap(ret);
|
|
4910
4914
|
}
|
|
4911
4915
|
/**
|
|
@@ -15807,7 +15811,7 @@ class U16 {
|
|
|
15807
15811
|
* @returns {Array<any>}
|
|
15808
15812
|
*/
|
|
15809
15813
|
toBitsLe() {
|
|
15810
|
-
const ret = wasm$1.
|
|
15814
|
+
const ret = wasm$1.u16_toBitsLe(this.__wbg_ptr);
|
|
15811
15815
|
return takeObject(ret);
|
|
15812
15816
|
}
|
|
15813
15817
|
/**
|
|
@@ -15944,7 +15948,7 @@ class U16 {
|
|
|
15944
15948
|
toI8Lossy() {
|
|
15945
15949
|
try {
|
|
15946
15950
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
15947
|
-
wasm$1.
|
|
15951
|
+
wasm$1.u16_toI8Lossy(retptr, this.__wbg_ptr);
|
|
15948
15952
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15949
15953
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15950
15954
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -15963,7 +15967,7 @@ class U16 {
|
|
|
15963
15967
|
toU8Lossy() {
|
|
15964
15968
|
try {
|
|
15965
15969
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
15966
|
-
wasm$1.
|
|
15970
|
+
wasm$1.u16_toI8Lossy(retptr, this.__wbg_ptr);
|
|
15967
15971
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15968
15972
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15969
15973
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16003,7 +16007,7 @@ class U16 {
|
|
|
16003
16007
|
toI16Lossy() {
|
|
16004
16008
|
try {
|
|
16005
16009
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16006
|
-
wasm$1.
|
|
16010
|
+
wasm$1.u16_toI16Lossy(retptr, this.__wbg_ptr);
|
|
16007
16011
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16008
16012
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16009
16013
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16022,7 +16026,7 @@ class U16 {
|
|
|
16022
16026
|
toI32Lossy() {
|
|
16023
16027
|
try {
|
|
16024
16028
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16025
|
-
wasm$1.
|
|
16029
|
+
wasm$1.u16_toI32Lossy(retptr, this.__wbg_ptr);
|
|
16026
16030
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16027
16031
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16028
16032
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16041,7 +16045,7 @@ class U16 {
|
|
|
16041
16045
|
toI64Lossy() {
|
|
16042
16046
|
try {
|
|
16043
16047
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16044
|
-
wasm$1.
|
|
16048
|
+
wasm$1.u16_toI64Lossy(retptr, this.__wbg_ptr);
|
|
16045
16049
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16046
16050
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16047
16051
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16068,7 +16072,7 @@ class U16 {
|
|
|
16068
16072
|
toU16Lossy() {
|
|
16069
16073
|
try {
|
|
16070
16074
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16071
|
-
wasm$1.
|
|
16075
|
+
wasm$1.u16_toI16Lossy(retptr, this.__wbg_ptr);
|
|
16072
16076
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16073
16077
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16074
16078
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16087,7 +16091,7 @@ class U16 {
|
|
|
16087
16091
|
toU32Lossy() {
|
|
16088
16092
|
try {
|
|
16089
16093
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16090
|
-
wasm$1.
|
|
16094
|
+
wasm$1.u16_toI32Lossy(retptr, this.__wbg_ptr);
|
|
16091
16095
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16092
16096
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16093
16097
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16106,7 +16110,7 @@ class U16 {
|
|
|
16106
16110
|
toU64Lossy() {
|
|
16107
16111
|
try {
|
|
16108
16112
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16109
|
-
wasm$1.
|
|
16113
|
+
wasm$1.u16_toI64Lossy(retptr, this.__wbg_ptr);
|
|
16110
16114
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16111
16115
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16112
16116
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16146,7 +16150,7 @@ class U16 {
|
|
|
16146
16150
|
toI128Lossy() {
|
|
16147
16151
|
try {
|
|
16148
16152
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16149
|
-
wasm$1.
|
|
16153
|
+
wasm$1.u16_toI128Lossy(retptr, this.__wbg_ptr);
|
|
16150
16154
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16151
16155
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16152
16156
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16165,7 +16169,7 @@ class U16 {
|
|
|
16165
16169
|
toU128Lossy() {
|
|
16166
16170
|
try {
|
|
16167
16171
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16168
|
-
wasm$1.
|
|
16172
|
+
wasm$1.u16_toI128Lossy(retptr, this.__wbg_ptr);
|
|
16169
16173
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16170
16174
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16171
16175
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16192,7 +16196,7 @@ class U16 {
|
|
|
16192
16196
|
* @returns {Boolean}
|
|
16193
16197
|
*/
|
|
16194
16198
|
toBooleanLossy() {
|
|
16195
|
-
const ret = wasm$1.
|
|
16199
|
+
const ret = wasm$1.u16_toBooleanLossy(this.__wbg_ptr);
|
|
16196
16200
|
return Boolean.__wrap(ret);
|
|
16197
16201
|
}
|
|
16198
16202
|
/**
|
|
@@ -16268,7 +16272,7 @@ class U16 {
|
|
|
16268
16272
|
toField() {
|
|
16269
16273
|
try {
|
|
16270
16274
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16271
|
-
wasm$1.
|
|
16275
|
+
wasm$1.u16_toField(retptr, this.__wbg_ptr);
|
|
16272
16276
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16273
16277
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16274
16278
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16285,7 +16289,7 @@ class U16 {
|
|
|
16285
16289
|
* @returns {Scalar}
|
|
16286
16290
|
*/
|
|
16287
16291
|
toScalar() {
|
|
16288
|
-
const ret = wasm$1.
|
|
16292
|
+
const ret = wasm$1.u16_toScalar(this.__wbg_ptr);
|
|
16289
16293
|
return Scalar.__wrap(ret);
|
|
16290
16294
|
}
|
|
16291
16295
|
/**
|
|
@@ -17472,7 +17476,7 @@ class U8 {
|
|
|
17472
17476
|
* @returns {Array<any>}
|
|
17473
17477
|
*/
|
|
17474
17478
|
toBitsLe() {
|
|
17475
|
-
const ret = wasm$1.
|
|
17479
|
+
const ret = wasm$1.u8_toBitsLe(this.__wbg_ptr);
|
|
17476
17480
|
return takeObject(ret);
|
|
17477
17481
|
}
|
|
17478
17482
|
/**
|
|
@@ -17609,7 +17613,7 @@ class U8 {
|
|
|
17609
17613
|
toI8Lossy() {
|
|
17610
17614
|
try {
|
|
17611
17615
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17612
|
-
wasm$1.
|
|
17616
|
+
wasm$1.u8_toI8Lossy(retptr, this.__wbg_ptr);
|
|
17613
17617
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17614
17618
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17615
17619
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17628,7 +17632,7 @@ class U8 {
|
|
|
17628
17632
|
toU8Lossy() {
|
|
17629
17633
|
try {
|
|
17630
17634
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17631
|
-
wasm$1.
|
|
17635
|
+
wasm$1.u8_toI8Lossy(retptr, this.__wbg_ptr);
|
|
17632
17636
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17633
17637
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17634
17638
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17668,7 +17672,7 @@ class U8 {
|
|
|
17668
17672
|
toI16Lossy() {
|
|
17669
17673
|
try {
|
|
17670
17674
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17671
|
-
wasm$1.
|
|
17675
|
+
wasm$1.u8_toI16Lossy(retptr, this.__wbg_ptr);
|
|
17672
17676
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17673
17677
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17674
17678
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17687,7 +17691,7 @@ class U8 {
|
|
|
17687
17691
|
toI32Lossy() {
|
|
17688
17692
|
try {
|
|
17689
17693
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17690
|
-
wasm$1.
|
|
17694
|
+
wasm$1.u8_toI32Lossy(retptr, this.__wbg_ptr);
|
|
17691
17695
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17692
17696
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17693
17697
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17706,7 +17710,7 @@ class U8 {
|
|
|
17706
17710
|
toI64Lossy() {
|
|
17707
17711
|
try {
|
|
17708
17712
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17709
|
-
wasm$1.
|
|
17713
|
+
wasm$1.u8_toI64Lossy(retptr, this.__wbg_ptr);
|
|
17710
17714
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17711
17715
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17712
17716
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17733,7 +17737,7 @@ class U8 {
|
|
|
17733
17737
|
toU16Lossy() {
|
|
17734
17738
|
try {
|
|
17735
17739
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17736
|
-
wasm$1.
|
|
17740
|
+
wasm$1.u8_toI16Lossy(retptr, this.__wbg_ptr);
|
|
17737
17741
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17738
17742
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17739
17743
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17752,7 +17756,7 @@ class U8 {
|
|
|
17752
17756
|
toU32Lossy() {
|
|
17753
17757
|
try {
|
|
17754
17758
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17755
|
-
wasm$1.
|
|
17759
|
+
wasm$1.u8_toI32Lossy(retptr, this.__wbg_ptr);
|
|
17756
17760
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17757
17761
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17758
17762
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17771,7 +17775,7 @@ class U8 {
|
|
|
17771
17775
|
toU64Lossy() {
|
|
17772
17776
|
try {
|
|
17773
17777
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17774
|
-
wasm$1.
|
|
17778
|
+
wasm$1.u8_toI64Lossy(retptr, this.__wbg_ptr);
|
|
17775
17779
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17776
17780
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17777
17781
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17811,7 +17815,7 @@ class U8 {
|
|
|
17811
17815
|
toI128Lossy() {
|
|
17812
17816
|
try {
|
|
17813
17817
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17814
|
-
wasm$1.
|
|
17818
|
+
wasm$1.u8_toI128Lossy(retptr, this.__wbg_ptr);
|
|
17815
17819
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17816
17820
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17817
17821
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17830,7 +17834,7 @@ class U8 {
|
|
|
17830
17834
|
toU128Lossy() {
|
|
17831
17835
|
try {
|
|
17832
17836
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17833
|
-
wasm$1.
|
|
17837
|
+
wasm$1.u8_toI128Lossy(retptr, this.__wbg_ptr);
|
|
17834
17838
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17835
17839
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17836
17840
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17857,7 +17861,7 @@ class U8 {
|
|
|
17857
17861
|
* @returns {Boolean}
|
|
17858
17862
|
*/
|
|
17859
17863
|
toBooleanLossy() {
|
|
17860
|
-
const ret = wasm$1.
|
|
17864
|
+
const ret = wasm$1.u8_toBooleanLossy(this.__wbg_ptr);
|
|
17861
17865
|
return Boolean.__wrap(ret);
|
|
17862
17866
|
}
|
|
17863
17867
|
/**
|
|
@@ -17933,7 +17937,7 @@ class U8 {
|
|
|
17933
17937
|
toField() {
|
|
17934
17938
|
try {
|
|
17935
17939
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17936
|
-
wasm$1.
|
|
17940
|
+
wasm$1.u8_toField(retptr, this.__wbg_ptr);
|
|
17937
17941
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17938
17942
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17939
17943
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17950,7 +17954,7 @@ class U8 {
|
|
|
17950
17954
|
* @returns {Scalar}
|
|
17951
17955
|
*/
|
|
17952
17956
|
toScalar() {
|
|
17953
|
-
const ret = wasm$1.
|
|
17957
|
+
const ret = wasm$1.u8_toScalar(this.__wbg_ptr);
|
|
17954
17958
|
return Scalar.__wrap(ret);
|
|
17955
17959
|
}
|
|
17956
17960
|
/**
|
|
@@ -19327,7 +19331,7 @@ function __wbg_get_imports(memory) {
|
|
|
19327
19331
|
const ret = getObject(arg0).length;
|
|
19328
19332
|
return ret;
|
|
19329
19333
|
};
|
|
19330
|
-
imports.wbg.
|
|
19334
|
+
imports.wbg.__wbg_log_8a97ac3e144f6f80 = function(arg0, arg1) {
|
|
19331
19335
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
19332
19336
|
};
|
|
19333
19337
|
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
@@ -19345,7 +19349,7 @@ function __wbg_get_imports(memory) {
|
|
|
19345
19349
|
const a = state0.a;
|
|
19346
19350
|
state0.a = 0;
|
|
19347
19351
|
try {
|
|
19348
|
-
return
|
|
19352
|
+
return __wasm_bindgen_func_elem_8072(a, state0.b, arg0, arg1);
|
|
19349
19353
|
} finally {
|
|
19350
19354
|
state0.a = a;
|
|
19351
19355
|
}
|
|
@@ -19517,7 +19521,7 @@ function __wbg_get_imports(memory) {
|
|
|
19517
19521
|
const ret = Signature.__wrap(arg0);
|
|
19518
19522
|
return addHeapObject(ret);
|
|
19519
19523
|
};
|
|
19520
|
-
imports.wbg.
|
|
19524
|
+
imports.wbg.__wbg_spawnWorker_81761455e1fee75f = function(arg0, arg1, arg2, arg3) {
|
|
19521
19525
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
19522
19526
|
return addHeapObject(ret);
|
|
19523
19527
|
};
|
|
@@ -19599,6 +19603,11 @@ function __wbg_get_imports(memory) {
|
|
|
19599
19603
|
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
19600
19604
|
return addHeapObject(ret);
|
|
19601
19605
|
};
|
|
19606
|
+
imports.wbg.__wbindgen_cast_135e7c4dddfc5e2a = function(arg0, arg1) {
|
|
19607
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [Externref], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19608
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_9273);
|
|
19609
|
+
return addHeapObject(ret);
|
|
19610
|
+
};
|
|
19602
19611
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
19603
19612
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
19604
19613
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -19609,21 +19618,16 @@ function __wbg_get_imports(memory) {
|
|
|
19609
19618
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
19610
19619
|
return addHeapObject(ret);
|
|
19611
19620
|
};
|
|
19621
|
+
imports.wbg.__wbindgen_cast_3137da7ea92f83db = function(arg0, arg1) {
|
|
19622
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19623
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_7797);
|
|
19624
|
+
return addHeapObject(ret);
|
|
19625
|
+
};
|
|
19612
19626
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
19613
19627
|
// Cast intrinsic for `U64 -> Externref`.
|
|
19614
19628
|
const ret = BigInt.asUintN(64, arg0);
|
|
19615
19629
|
return addHeapObject(ret);
|
|
19616
19630
|
};
|
|
19617
|
-
imports.wbg.__wbindgen_cast_4a4bdde4030a89e7 = function(arg0, arg1) {
|
|
19618
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 398, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19619
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7562, __wasm_bindgen_func_elem_7563);
|
|
19620
|
-
return addHeapObject(ret);
|
|
19621
|
-
};
|
|
19622
|
-
imports.wbg.__wbindgen_cast_994af091adc907b6 = function(arg0, arg1) {
|
|
19623
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 398, function: Function { arguments: [Externref], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19624
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7562, __wasm_bindgen_func_elem_9005);
|
|
19625
|
-
return addHeapObject(ret);
|
|
19626
|
-
};
|
|
19627
19631
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
19628
19632
|
// Cast intrinsic for `I64 -> Externref`.
|
|
19629
19633
|
const ret = arg0;
|
|
@@ -19639,9 +19643,9 @@ function __wbg_get_imports(memory) {
|
|
|
19639
19643
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
19640
19644
|
return addHeapObject(ret);
|
|
19641
19645
|
};
|
|
19642
|
-
imports.wbg.
|
|
19643
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19644
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19646
|
+
imports.wbg.__wbindgen_cast_f678a9aa90162cb1 = function(arg0, arg1) {
|
|
19647
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19648
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_9273);
|
|
19645
19649
|
return addHeapObject(ret);
|
|
19646
19650
|
};
|
|
19647
19651
|
imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
|
|
@@ -19665,7 +19669,7 @@ function __wbg_get_imports(memory) {
|
|
|
19665
19669
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
19666
19670
|
takeObject(arg0);
|
|
19667
19671
|
};
|
|
19668
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({initial:
|
|
19672
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({initial:169,maximum:65536,shared:true});
|
|
19669
19673
|
|
|
19670
19674
|
return imports;
|
|
19671
19675
|
}
|
|
@@ -19790,6 +19794,7 @@ var exports$1$1 = /*#__PURE__*/Object.freeze({
|
|
|
19790
19794
|
getOrInitConsensusVersionTestHeights: getOrInitConsensusVersionTestHeights,
|
|
19791
19795
|
initSync: initSync$1,
|
|
19792
19796
|
initThreadPool: initThreadPool,
|
|
19797
|
+
install_panic_hook: install_panic_hook,
|
|
19793
19798
|
runRayonThread: runRayonThread,
|
|
19794
19799
|
setWasmLogLevel: setWasmLogLevel,
|
|
19795
19800
|
snarkVerify: snarkVerify,
|