@provablehq/wasm 0.11.5 → 0.11.7
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 -15
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +74 -74
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +74 -74
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +74 -74
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +23 -23
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +82 -82
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +82 -82
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +82 -82
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function runRayonThread(receiver: number): void;
|
|
4
|
-
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
5
4
|
/**
|
|
6
5
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
7
6
|
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
@@ -9,6 +8,7 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
9
8
|
* Values above 4 are clamped to debug.
|
|
10
9
|
*/
|
|
11
10
|
export function setWasmLogLevel(level: number): void;
|
|
11
|
+
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
12
12
|
/**
|
|
13
13
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
14
14
|
*
|
|
@@ -21,6 +21,18 @@ export function setWasmLogLevel(level: number): void;
|
|
|
21
21
|
* @returns {boolean} True if the proof is valid, false otherwise
|
|
22
22
|
*/
|
|
23
23
|
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
26
|
+
*
|
|
27
|
+
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
28
|
+
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
29
|
+
*
|
|
30
|
+
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
31
|
+
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
32
|
+
* @param {Proof} proof The batch proof to verify
|
|
33
|
+
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
34
|
+
*/
|
|
35
|
+
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
24
36
|
/**
|
|
25
37
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
26
38
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -35,19 +47,19 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
|
|
|
35
47
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
36
48
|
*/
|
|
37
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;
|
|
38
51
|
/**
|
|
39
|
-
*
|
|
52
|
+
* Returns the maximum number of imports allowed in a program by the
|
|
53
|
+
* snarkVM network implementation this SDK was built against.
|
|
40
54
|
*
|
|
41
|
-
*
|
|
42
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
55
|
+
* @returns {number} The maximum number of program imports.
|
|
43
56
|
*
|
|
44
|
-
* @
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
57
|
+
* @example
|
|
58
|
+
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
59
|
+
*
|
|
60
|
+
* const maxImports = getMaxProgramImports();
|
|
48
61
|
*/
|
|
49
|
-
export function
|
|
50
|
-
export function stringToField(string: string): Field;
|
|
62
|
+
export function getMaxProgramImports(): number;
|
|
51
63
|
/**
|
|
52
64
|
* Set test consensus version heights for testing.
|
|
53
65
|
*
|
|
@@ -57,21 +69,9 @@ export function stringToField(string: string): Field;
|
|
|
57
69
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
58
70
|
*
|
|
59
71
|
* Set the consensus version heights.
|
|
60
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17");
|
|
72
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
|
|
61
73
|
*/
|
|
62
74
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
63
|
-
/**
|
|
64
|
-
* Returns the maximum number of imports allowed in a program by the
|
|
65
|
-
* snarkVM network implementation this SDK was built against.
|
|
66
|
-
*
|
|
67
|
-
* @returns {number} The maximum number of program imports.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
71
|
-
*
|
|
72
|
-
* const maxImports = getMaxProgramImports();
|
|
73
|
-
*/
|
|
74
|
-
export function getMaxProgramImports(): number;
|
|
75
75
|
/**
|
|
76
76
|
* Public address of an Aleo account
|
|
77
77
|
*/
|
|
Binary file
|
package/dist/testnet/index.cjs
CHANGED
|
@@ -292,16 +292,6 @@ function runRayonThread(receiver) {
|
|
|
292
292
|
wasm$1.runRayonThread(receiver);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
/**
|
|
296
|
-
* @param {URL} url
|
|
297
|
-
* @param {number} num_threads
|
|
298
|
-
* @returns {Promise<void>}
|
|
299
|
-
*/
|
|
300
|
-
function initThreadPool(url, num_threads) {
|
|
301
|
-
const ret = wasm$1.initThreadPool(addHeapObject(url), num_threads);
|
|
302
|
-
return takeObject(ret);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
295
|
/**
|
|
306
296
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
307
297
|
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
@@ -313,6 +303,16 @@ function setWasmLogLevel(level) {
|
|
|
313
303
|
wasm$1.setWasmLogLevel(level);
|
|
314
304
|
}
|
|
315
305
|
|
|
306
|
+
/**
|
|
307
|
+
* @param {URL} url
|
|
308
|
+
* @param {number} num_threads
|
|
309
|
+
* @returns {Promise<void>}
|
|
310
|
+
*/
|
|
311
|
+
function initThreadPool(url, num_threads) {
|
|
312
|
+
const ret = wasm$1.initThreadPool(addHeapObject(url), num_threads);
|
|
313
|
+
return takeObject(ret);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
316
|
let stack_pointer = 128;
|
|
317
317
|
|
|
318
318
|
function addBorrowedObject(obj) {
|
|
@@ -353,6 +353,38 @@ function snarkVerify(verifying_key, inputs, proof) {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
358
|
+
*
|
|
359
|
+
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
360
|
+
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
361
|
+
*
|
|
362
|
+
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
363
|
+
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
364
|
+
* @param {Proof} proof The batch proof to verify
|
|
365
|
+
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
366
|
+
* @param {Array<any>} verifying_keys
|
|
367
|
+
* @param {Array<any>} inputs
|
|
368
|
+
* @param {Proof} proof
|
|
369
|
+
* @returns {boolean}
|
|
370
|
+
*/
|
|
371
|
+
function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
372
|
+
try {
|
|
373
|
+
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
374
|
+
_assertClass(proof, Proof);
|
|
375
|
+
wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
|
|
376
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
377
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
378
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
379
|
+
if (r2) {
|
|
380
|
+
throw takeObject(r1);
|
|
381
|
+
}
|
|
382
|
+
return r0 !== 0;
|
|
383
|
+
} finally {
|
|
384
|
+
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
356
388
|
/**
|
|
357
389
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
358
390
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -401,38 +433,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
401
433
|
}
|
|
402
434
|
}
|
|
403
435
|
|
|
404
|
-
/**
|
|
405
|
-
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
406
|
-
*
|
|
407
|
-
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
408
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
409
|
-
*
|
|
410
|
-
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
411
|
-
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
412
|
-
* @param {Proof} proof The batch proof to verify
|
|
413
|
-
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
414
|
-
* @param {Array<any>} verifying_keys
|
|
415
|
-
* @param {Array<any>} inputs
|
|
416
|
-
* @param {Proof} proof
|
|
417
|
-
* @returns {boolean}
|
|
418
|
-
*/
|
|
419
|
-
function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
420
|
-
try {
|
|
421
|
-
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
422
|
-
_assertClass(proof, Proof);
|
|
423
|
-
wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
|
|
424
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
425
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
426
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
427
|
-
if (r2) {
|
|
428
|
-
throw takeObject(r1);
|
|
429
|
-
}
|
|
430
|
-
return r0 !== 0;
|
|
431
|
-
} finally {
|
|
432
|
-
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
436
|
/**
|
|
437
437
|
* @param {string} string
|
|
438
438
|
* @returns {Field}
|
|
@@ -455,6 +455,23 @@ function stringToField(string) {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Returns the maximum number of imports allowed in a program by the
|
|
460
|
+
* snarkVM network implementation this SDK was built against.
|
|
461
|
+
*
|
|
462
|
+
* @returns {number} The maximum number of program imports.
|
|
463
|
+
*
|
|
464
|
+
* @example
|
|
465
|
+
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
466
|
+
*
|
|
467
|
+
* const maxImports = getMaxProgramImports();
|
|
468
|
+
* @returns {number}
|
|
469
|
+
*/
|
|
470
|
+
function getMaxProgramImports() {
|
|
471
|
+
const ret = wasm$1.getMaxProgramImports();
|
|
472
|
+
return ret >>> 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
458
475
|
/**
|
|
459
476
|
* Set test consensus version heights for testing.
|
|
460
477
|
*
|
|
@@ -464,7 +481,7 @@ function stringToField(string) {
|
|
|
464
481
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
465
482
|
*
|
|
466
483
|
* Set the consensus version heights.
|
|
467
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17");
|
|
484
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
|
|
468
485
|
* @param {string | null} [heights]
|
|
469
486
|
* @returns {Array<any>}
|
|
470
487
|
*/
|
|
@@ -475,23 +492,6 @@ function getOrInitConsensusVersionTestHeights(heights) {
|
|
|
475
492
|
return takeObject(ret);
|
|
476
493
|
}
|
|
477
494
|
|
|
478
|
-
/**
|
|
479
|
-
* Returns the maximum number of imports allowed in a program by the
|
|
480
|
-
* snarkVM network implementation this SDK was built against.
|
|
481
|
-
*
|
|
482
|
-
* @returns {number} The maximum number of program imports.
|
|
483
|
-
*
|
|
484
|
-
* @example
|
|
485
|
-
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
486
|
-
*
|
|
487
|
-
* const maxImports = getMaxProgramImports();
|
|
488
|
-
* @returns {number}
|
|
489
|
-
*/
|
|
490
|
-
function getMaxProgramImports() {
|
|
491
|
-
const ret = wasm$1.getMaxProgramImports();
|
|
492
|
-
return ret >>> 0;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
495
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
496
496
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
497
497
|
const mem = getDataViewMemory0();
|
|
@@ -511,16 +511,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
511
511
|
}
|
|
512
512
|
return result;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
wasm$1.
|
|
514
|
+
function __wasm_bindgen_func_elem_8948(arg0, arg1, arg2) {
|
|
515
|
+
wasm$1.__wasm_bindgen_func_elem_8948(arg0, arg1, addHeapObject(arg2));
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
function
|
|
519
|
-
wasm$1.
|
|
518
|
+
function __wasm_bindgen_func_elem_7505(arg0, arg1) {
|
|
519
|
+
wasm$1.__wasm_bindgen_func_elem_7505(arg0, arg1);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
function
|
|
523
|
-
wasm$1.
|
|
522
|
+
function __wasm_bindgen_func_elem_7777(arg0, arg1, arg2, arg3) {
|
|
523
|
+
wasm$1.__wasm_bindgen_func_elem_7777(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -19325,7 +19325,7 @@ function __wbg_get_imports(memory) {
|
|
|
19325
19325
|
const ret = getObject(arg0).length;
|
|
19326
19326
|
return ret;
|
|
19327
19327
|
};
|
|
19328
|
-
imports.wbg.
|
|
19328
|
+
imports.wbg.__wbg_log_03049fa0ffffc089 = function(arg0, arg1) {
|
|
19329
19329
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
19330
19330
|
};
|
|
19331
19331
|
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
@@ -19343,7 +19343,7 @@ function __wbg_get_imports(memory) {
|
|
|
19343
19343
|
const a = state0.a;
|
|
19344
19344
|
state0.a = 0;
|
|
19345
19345
|
try {
|
|
19346
|
-
return
|
|
19346
|
+
return __wasm_bindgen_func_elem_7777(a, state0.b, arg0, arg1);
|
|
19347
19347
|
} finally {
|
|
19348
19348
|
state0.a = a;
|
|
19349
19349
|
}
|
|
@@ -19515,7 +19515,7 @@ function __wbg_get_imports(memory) {
|
|
|
19515
19515
|
const ret = Signature.__wrap(arg0);
|
|
19516
19516
|
return addHeapObject(ret);
|
|
19517
19517
|
};
|
|
19518
|
-
imports.wbg.
|
|
19518
|
+
imports.wbg.__wbg_spawnWorker_6984bbe776b8abdc = function(arg0, arg1, arg2, arg3) {
|
|
19519
19519
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
19520
19520
|
return addHeapObject(ret);
|
|
19521
19521
|
};
|
|
@@ -19597,6 +19597,11 @@ function __wbg_get_imports(memory) {
|
|
|
19597
19597
|
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
19598
19598
|
return addHeapObject(ret);
|
|
19599
19599
|
};
|
|
19600
|
+
imports.wbg.__wbindgen_cast_19cdf6e41653eb6c = function(arg0, arg1) {
|
|
19601
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [Externref], shim_idx: 398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19602
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7504, __wasm_bindgen_func_elem_8948);
|
|
19603
|
+
return addHeapObject(ret);
|
|
19604
|
+
};
|
|
19600
19605
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
19601
19606
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
19602
19607
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -19612,9 +19617,9 @@ function __wbg_get_imports(memory) {
|
|
|
19612
19617
|
const ret = BigInt.asUintN(64, arg0);
|
|
19613
19618
|
return addHeapObject(ret);
|
|
19614
19619
|
};
|
|
19615
|
-
imports.wbg.
|
|
19616
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19617
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19620
|
+
imports.wbg.__wbindgen_cast_601de75c058a35e1 = function(arg0, arg1) {
|
|
19621
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [], shim_idx: 528, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19622
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7504, __wasm_bindgen_func_elem_7505);
|
|
19618
19623
|
return addHeapObject(ret);
|
|
19619
19624
|
};
|
|
19620
19625
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -19622,26 +19627,21 @@ function __wbg_get_imports(memory) {
|
|
|
19622
19627
|
const ret = arg0;
|
|
19623
19628
|
return addHeapObject(ret);
|
|
19624
19629
|
};
|
|
19625
|
-
imports.wbg.__wbindgen_cast_b5deba2f813aede2 = function(arg0, arg1) {
|
|
19626
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19627
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7471, __wasm_bindgen_func_elem_8910);
|
|
19628
|
-
return addHeapObject(ret);
|
|
19629
|
-
};
|
|
19630
19630
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
19631
19631
|
// Cast intrinsic for `F64 -> Externref`.
|
|
19632
19632
|
const ret = arg0;
|
|
19633
19633
|
return addHeapObject(ret);
|
|
19634
19634
|
};
|
|
19635
|
-
imports.wbg.__wbindgen_cast_e15614d8168764d1 = function(arg0, arg1) {
|
|
19636
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [Externref], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19637
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7471, __wasm_bindgen_func_elem_8910);
|
|
19638
|
-
return addHeapObject(ret);
|
|
19639
|
-
};
|
|
19640
19635
|
imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
|
|
19641
19636
|
// Cast intrinsic for `U128 -> Externref`.
|
|
19642
19637
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
19643
19638
|
return addHeapObject(ret);
|
|
19644
19639
|
};
|
|
19640
|
+
imports.wbg.__wbindgen_cast_eb522c22a7f98ff2 = function(arg0, arg1) {
|
|
19641
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19642
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7504, __wasm_bindgen_func_elem_8948);
|
|
19643
|
+
return addHeapObject(ret);
|
|
19644
|
+
};
|
|
19645
19645
|
imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
|
|
19646
19646
|
const val = `onmessage = function (ev) {
|
|
19647
19647
|
let [ia, index, value] = ev.data;
|