@provablehq/wasm 0.11.11 → 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 +17 -14
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +113 -106
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +113 -107
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +113 -106
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +29 -26
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +108 -101
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +108 -102
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +108 -101
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function runRayonThread(receiver: number): void;
|
|
4
|
+
export function install_panic_hook(): void;
|
|
4
5
|
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
5
6
|
/**
|
|
6
7
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
@@ -9,18 +10,6 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
9
10
|
* Values above 4 are clamped to debug.
|
|
10
11
|
*/
|
|
11
12
|
export function setWasmLogLevel(level: number): void;
|
|
12
|
-
/**
|
|
13
|
-
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
14
|
-
*
|
|
15
|
-
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
16
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
17
|
-
*
|
|
18
|
-
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
19
|
-
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
20
|
-
* @param {Proof} proof The batch proof to verify
|
|
21
|
-
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
22
|
-
*/
|
|
23
|
-
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
24
13
|
/**
|
|
25
14
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
26
15
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -35,11 +24,25 @@ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>,
|
|
|
35
24
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
36
25
|
*/
|
|
37
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;
|
|
38
39
|
/**
|
|
39
40
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
40
41
|
*
|
|
41
42
|
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
42
|
-
* It directly invokes the Varuna proof verification from snarkVM
|
|
43
|
+
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
|
|
44
|
+
* by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
|
|
45
|
+
* an older Varuna version will fail verification.
|
|
43
46
|
*
|
|
44
47
|
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
45
48
|
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
@@ -47,18 +50,6 @@ export function verifyFunctionExecution(execution: Execution, verifying_key: Ver
|
|
|
47
50
|
* @returns {boolean} True if the proof is valid, false otherwise
|
|
48
51
|
*/
|
|
49
52
|
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Returns the maximum number of imports allowed in a program by the
|
|
52
|
-
* snarkVM network implementation this SDK was built against.
|
|
53
|
-
*
|
|
54
|
-
* @returns {number} The maximum number of program imports.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
58
|
-
*
|
|
59
|
-
* const maxImports = getMaxProgramImports();
|
|
60
|
-
*/
|
|
61
|
-
export function getMaxProgramImports(): number;
|
|
62
53
|
/**
|
|
63
54
|
* Set test consensus version heights for testing.
|
|
64
55
|
*
|
|
@@ -68,10 +59,22 @@ export function getMaxProgramImports(): number;
|
|
|
68
59
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
69
60
|
*
|
|
70
61
|
* Set the consensus version heights.
|
|
71
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
|
62
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
|
|
72
63
|
*/
|
|
73
64
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
74
65
|
export function stringToField(string: string): Field;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the maximum number of imports allowed in a program by the
|
|
68
|
+
* snarkVM network implementation this SDK was built against.
|
|
69
|
+
*
|
|
70
|
+
* @returns {number} The maximum number of program imports.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
74
|
+
*
|
|
75
|
+
* const maxImports = getMaxProgramImports();
|
|
76
|
+
*/
|
|
77
|
+
export function getMaxProgramImports(): number;
|
|
75
78
|
/**
|
|
76
79
|
* Public address of an Aleo account
|
|
77
80
|
*/
|
|
Binary file
|
package/dist/testnet/index.cjs
CHANGED
|
@@ -292,6 +292,10 @@ function runRayonThread(receiver) {
|
|
|
292
292
|
wasm$1.runRayonThread(receiver);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
function install_panic_hook() {
|
|
296
|
+
wasm$1.install_panic_hook();
|
|
297
|
+
}
|
|
298
|
+
|
|
295
299
|
/**
|
|
296
300
|
* @param {URL} url
|
|
297
301
|
* @param {number} num_threads
|
|
@@ -320,38 +324,6 @@ function addBorrowedObject(obj) {
|
|
|
320
324
|
heap[--stack_pointer] = obj;
|
|
321
325
|
return stack_pointer;
|
|
322
326
|
}
|
|
323
|
-
/**
|
|
324
|
-
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
325
|
-
*
|
|
326
|
-
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
327
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
328
|
-
*
|
|
329
|
-
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
330
|
-
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
331
|
-
* @param {Proof} proof The batch proof to verify
|
|
332
|
-
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
333
|
-
* @param {Array<any>} verifying_keys
|
|
334
|
-
* @param {Array<any>} inputs
|
|
335
|
-
* @param {Proof} proof
|
|
336
|
-
* @returns {boolean}
|
|
337
|
-
*/
|
|
338
|
-
function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
339
|
-
try {
|
|
340
|
-
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
341
|
-
_assertClass(proof, Proof);
|
|
342
|
-
wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
|
|
343
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
344
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
345
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
346
|
-
if (r2) {
|
|
347
|
-
throw takeObject(r1);
|
|
348
|
-
}
|
|
349
|
-
return r0 !== 0;
|
|
350
|
-
} finally {
|
|
351
|
-
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
327
|
/**
|
|
356
328
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
357
329
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -400,11 +372,45 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
400
372
|
}
|
|
401
373
|
}
|
|
402
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
377
|
+
*
|
|
378
|
+
* This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
|
|
379
|
+
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
380
|
+
*
|
|
381
|
+
* @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
|
|
382
|
+
* @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
|
|
383
|
+
* @param {Proof} proof The batch proof to verify
|
|
384
|
+
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
385
|
+
* @param {Array<any>} verifying_keys
|
|
386
|
+
* @param {Array<any>} inputs
|
|
387
|
+
* @param {Proof} proof
|
|
388
|
+
* @returns {boolean}
|
|
389
|
+
*/
|
|
390
|
+
function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
391
|
+
try {
|
|
392
|
+
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
393
|
+
_assertClass(proof, Proof);
|
|
394
|
+
wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
|
|
395
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
396
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
397
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
398
|
+
if (r2) {
|
|
399
|
+
throw takeObject(r1);
|
|
400
|
+
}
|
|
401
|
+
return r0 !== 0;
|
|
402
|
+
} finally {
|
|
403
|
+
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
403
407
|
/**
|
|
404
408
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
405
409
|
*
|
|
406
410
|
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
407
|
-
* It directly invokes the Varuna proof verification from snarkVM
|
|
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.
|
|
408
414
|
*
|
|
409
415
|
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
410
416
|
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
@@ -433,23 +439,6 @@ function snarkVerify(verifying_key, inputs, proof) {
|
|
|
433
439
|
}
|
|
434
440
|
}
|
|
435
441
|
|
|
436
|
-
/**
|
|
437
|
-
* Returns the maximum number of imports allowed in a program by the
|
|
438
|
-
* snarkVM network implementation this SDK was built against.
|
|
439
|
-
*
|
|
440
|
-
* @returns {number} The maximum number of program imports.
|
|
441
|
-
*
|
|
442
|
-
* @example
|
|
443
|
-
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
444
|
-
*
|
|
445
|
-
* const maxImports = getMaxProgramImports();
|
|
446
|
-
* @returns {number}
|
|
447
|
-
*/
|
|
448
|
-
function getMaxProgramImports() {
|
|
449
|
-
const ret = wasm$1.getMaxProgramImports();
|
|
450
|
-
return ret >>> 0;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
442
|
/**
|
|
454
443
|
* Set test consensus version heights for testing.
|
|
455
444
|
*
|
|
@@ -459,7 +448,7 @@ function getMaxProgramImports() {
|
|
|
459
448
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
460
449
|
*
|
|
461
450
|
* Set the consensus version heights.
|
|
462
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
|
451
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
|
|
463
452
|
* @param {string | null} [heights]
|
|
464
453
|
* @returns {Array<any>}
|
|
465
454
|
*/
|
|
@@ -492,6 +481,23 @@ function stringToField(string) {
|
|
|
492
481
|
}
|
|
493
482
|
}
|
|
494
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Returns the maximum number of imports allowed in a program by the
|
|
486
|
+
* snarkVM network implementation this SDK was built against.
|
|
487
|
+
*
|
|
488
|
+
* @returns {number} The maximum number of program imports.
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* import { getMaxProgramImports } from '@provablehq/sdk';
|
|
492
|
+
*
|
|
493
|
+
* const maxImports = getMaxProgramImports();
|
|
494
|
+
* @returns {number}
|
|
495
|
+
*/
|
|
496
|
+
function getMaxProgramImports() {
|
|
497
|
+
const ret = wasm$1.getMaxProgramImports();
|
|
498
|
+
return ret >>> 0;
|
|
499
|
+
}
|
|
500
|
+
|
|
495
501
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
496
502
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
497
503
|
const mem = getDataViewMemory0();
|
|
@@ -511,16 +517,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
511
517
|
}
|
|
512
518
|
return result;
|
|
513
519
|
}
|
|
514
|
-
function
|
|
515
|
-
wasm$1.
|
|
520
|
+
function __wasm_bindgen_func_elem_9273(arg0, arg1, arg2) {
|
|
521
|
+
wasm$1.__wasm_bindgen_func_elem_9273(arg0, arg1, addHeapObject(arg2));
|
|
516
522
|
}
|
|
517
523
|
|
|
518
|
-
function
|
|
519
|
-
wasm$1.
|
|
524
|
+
function __wasm_bindgen_func_elem_7797(arg0, arg1) {
|
|
525
|
+
wasm$1.__wasm_bindgen_func_elem_7797(arg0, arg1);
|
|
520
526
|
}
|
|
521
527
|
|
|
522
|
-
function
|
|
523
|
-
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));
|
|
524
530
|
}
|
|
525
531
|
|
|
526
532
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -4903,7 +4909,7 @@ class Group {
|
|
|
4903
4909
|
* @returns {Boolean}
|
|
4904
4910
|
*/
|
|
4905
4911
|
toBooleanLossy() {
|
|
4906
|
-
const ret = wasm$1.
|
|
4912
|
+
const ret = wasm$1.group_toBooleanLossy(this.__wbg_ptr);
|
|
4907
4913
|
return Boolean.__wrap(ret);
|
|
4908
4914
|
}
|
|
4909
4915
|
/**
|
|
@@ -15805,7 +15811,7 @@ class U16 {
|
|
|
15805
15811
|
* @returns {Array<any>}
|
|
15806
15812
|
*/
|
|
15807
15813
|
toBitsLe() {
|
|
15808
|
-
const ret = wasm$1.
|
|
15814
|
+
const ret = wasm$1.u16_toBitsLe(this.__wbg_ptr);
|
|
15809
15815
|
return takeObject(ret);
|
|
15810
15816
|
}
|
|
15811
15817
|
/**
|
|
@@ -15942,7 +15948,7 @@ class U16 {
|
|
|
15942
15948
|
toI8Lossy() {
|
|
15943
15949
|
try {
|
|
15944
15950
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
15945
|
-
wasm$1.
|
|
15951
|
+
wasm$1.u16_toI8Lossy(retptr, this.__wbg_ptr);
|
|
15946
15952
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15947
15953
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15948
15954
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -15961,7 +15967,7 @@ class U16 {
|
|
|
15961
15967
|
toU8Lossy() {
|
|
15962
15968
|
try {
|
|
15963
15969
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
15964
|
-
wasm$1.
|
|
15970
|
+
wasm$1.u16_toI8Lossy(retptr, this.__wbg_ptr);
|
|
15965
15971
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15966
15972
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15967
15973
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16001,7 +16007,7 @@ class U16 {
|
|
|
16001
16007
|
toI16Lossy() {
|
|
16002
16008
|
try {
|
|
16003
16009
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16004
|
-
wasm$1.
|
|
16010
|
+
wasm$1.u16_toI16Lossy(retptr, this.__wbg_ptr);
|
|
16005
16011
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16006
16012
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16007
16013
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16020,7 +16026,7 @@ class U16 {
|
|
|
16020
16026
|
toI32Lossy() {
|
|
16021
16027
|
try {
|
|
16022
16028
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16023
|
-
wasm$1.
|
|
16029
|
+
wasm$1.u16_toI32Lossy(retptr, this.__wbg_ptr);
|
|
16024
16030
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16025
16031
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16026
16032
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16039,7 +16045,7 @@ class U16 {
|
|
|
16039
16045
|
toI64Lossy() {
|
|
16040
16046
|
try {
|
|
16041
16047
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16042
|
-
wasm$1.
|
|
16048
|
+
wasm$1.u16_toI64Lossy(retptr, this.__wbg_ptr);
|
|
16043
16049
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16044
16050
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16045
16051
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16066,7 +16072,7 @@ class U16 {
|
|
|
16066
16072
|
toU16Lossy() {
|
|
16067
16073
|
try {
|
|
16068
16074
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16069
|
-
wasm$1.
|
|
16075
|
+
wasm$1.u16_toI16Lossy(retptr, this.__wbg_ptr);
|
|
16070
16076
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16071
16077
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16072
16078
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16085,7 +16091,7 @@ class U16 {
|
|
|
16085
16091
|
toU32Lossy() {
|
|
16086
16092
|
try {
|
|
16087
16093
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16088
|
-
wasm$1.
|
|
16094
|
+
wasm$1.u16_toI32Lossy(retptr, this.__wbg_ptr);
|
|
16089
16095
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16090
16096
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16091
16097
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16104,7 +16110,7 @@ class U16 {
|
|
|
16104
16110
|
toU64Lossy() {
|
|
16105
16111
|
try {
|
|
16106
16112
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16107
|
-
wasm$1.
|
|
16113
|
+
wasm$1.u16_toI64Lossy(retptr, this.__wbg_ptr);
|
|
16108
16114
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16109
16115
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16110
16116
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16144,7 +16150,7 @@ class U16 {
|
|
|
16144
16150
|
toI128Lossy() {
|
|
16145
16151
|
try {
|
|
16146
16152
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16147
|
-
wasm$1.
|
|
16153
|
+
wasm$1.u16_toI128Lossy(retptr, this.__wbg_ptr);
|
|
16148
16154
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16149
16155
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16150
16156
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16163,7 +16169,7 @@ class U16 {
|
|
|
16163
16169
|
toU128Lossy() {
|
|
16164
16170
|
try {
|
|
16165
16171
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16166
|
-
wasm$1.
|
|
16172
|
+
wasm$1.u16_toI128Lossy(retptr, this.__wbg_ptr);
|
|
16167
16173
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16168
16174
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16169
16175
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16190,7 +16196,7 @@ class U16 {
|
|
|
16190
16196
|
* @returns {Boolean}
|
|
16191
16197
|
*/
|
|
16192
16198
|
toBooleanLossy() {
|
|
16193
|
-
const ret = wasm$1.
|
|
16199
|
+
const ret = wasm$1.u16_toBooleanLossy(this.__wbg_ptr);
|
|
16194
16200
|
return Boolean.__wrap(ret);
|
|
16195
16201
|
}
|
|
16196
16202
|
/**
|
|
@@ -16266,7 +16272,7 @@ class U16 {
|
|
|
16266
16272
|
toField() {
|
|
16267
16273
|
try {
|
|
16268
16274
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
16269
|
-
wasm$1.
|
|
16275
|
+
wasm$1.u16_toField(retptr, this.__wbg_ptr);
|
|
16270
16276
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16271
16277
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16272
16278
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16283,7 +16289,7 @@ class U16 {
|
|
|
16283
16289
|
* @returns {Scalar}
|
|
16284
16290
|
*/
|
|
16285
16291
|
toScalar() {
|
|
16286
|
-
const ret = wasm$1.
|
|
16292
|
+
const ret = wasm$1.u16_toScalar(this.__wbg_ptr);
|
|
16287
16293
|
return Scalar.__wrap(ret);
|
|
16288
16294
|
}
|
|
16289
16295
|
/**
|
|
@@ -17470,7 +17476,7 @@ class U8 {
|
|
|
17470
17476
|
* @returns {Array<any>}
|
|
17471
17477
|
*/
|
|
17472
17478
|
toBitsLe() {
|
|
17473
|
-
const ret = wasm$1.
|
|
17479
|
+
const ret = wasm$1.u8_toBitsLe(this.__wbg_ptr);
|
|
17474
17480
|
return takeObject(ret);
|
|
17475
17481
|
}
|
|
17476
17482
|
/**
|
|
@@ -17607,7 +17613,7 @@ class U8 {
|
|
|
17607
17613
|
toI8Lossy() {
|
|
17608
17614
|
try {
|
|
17609
17615
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17610
|
-
wasm$1.
|
|
17616
|
+
wasm$1.u8_toI8Lossy(retptr, this.__wbg_ptr);
|
|
17611
17617
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17612
17618
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17613
17619
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17626,7 +17632,7 @@ class U8 {
|
|
|
17626
17632
|
toU8Lossy() {
|
|
17627
17633
|
try {
|
|
17628
17634
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17629
|
-
wasm$1.
|
|
17635
|
+
wasm$1.u8_toI8Lossy(retptr, this.__wbg_ptr);
|
|
17630
17636
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17631
17637
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17632
17638
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17666,7 +17672,7 @@ class U8 {
|
|
|
17666
17672
|
toI16Lossy() {
|
|
17667
17673
|
try {
|
|
17668
17674
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17669
|
-
wasm$1.
|
|
17675
|
+
wasm$1.u8_toI16Lossy(retptr, this.__wbg_ptr);
|
|
17670
17676
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17671
17677
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17672
17678
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17685,7 +17691,7 @@ class U8 {
|
|
|
17685
17691
|
toI32Lossy() {
|
|
17686
17692
|
try {
|
|
17687
17693
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17688
|
-
wasm$1.
|
|
17694
|
+
wasm$1.u8_toI32Lossy(retptr, this.__wbg_ptr);
|
|
17689
17695
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17690
17696
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17691
17697
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17704,7 +17710,7 @@ class U8 {
|
|
|
17704
17710
|
toI64Lossy() {
|
|
17705
17711
|
try {
|
|
17706
17712
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17707
|
-
wasm$1.
|
|
17713
|
+
wasm$1.u8_toI64Lossy(retptr, this.__wbg_ptr);
|
|
17708
17714
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17709
17715
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17710
17716
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17731,7 +17737,7 @@ class U8 {
|
|
|
17731
17737
|
toU16Lossy() {
|
|
17732
17738
|
try {
|
|
17733
17739
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17734
|
-
wasm$1.
|
|
17740
|
+
wasm$1.u8_toI16Lossy(retptr, this.__wbg_ptr);
|
|
17735
17741
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17736
17742
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17737
17743
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17750,7 +17756,7 @@ class U8 {
|
|
|
17750
17756
|
toU32Lossy() {
|
|
17751
17757
|
try {
|
|
17752
17758
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17753
|
-
wasm$1.
|
|
17759
|
+
wasm$1.u8_toI32Lossy(retptr, this.__wbg_ptr);
|
|
17754
17760
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17755
17761
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17756
17762
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17769,7 +17775,7 @@ class U8 {
|
|
|
17769
17775
|
toU64Lossy() {
|
|
17770
17776
|
try {
|
|
17771
17777
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17772
|
-
wasm$1.
|
|
17778
|
+
wasm$1.u8_toI64Lossy(retptr, this.__wbg_ptr);
|
|
17773
17779
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17774
17780
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17775
17781
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17809,7 +17815,7 @@ class U8 {
|
|
|
17809
17815
|
toI128Lossy() {
|
|
17810
17816
|
try {
|
|
17811
17817
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17812
|
-
wasm$1.
|
|
17818
|
+
wasm$1.u8_toI128Lossy(retptr, this.__wbg_ptr);
|
|
17813
17819
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17814
17820
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17815
17821
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17828,7 +17834,7 @@ class U8 {
|
|
|
17828
17834
|
toU128Lossy() {
|
|
17829
17835
|
try {
|
|
17830
17836
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17831
|
-
wasm$1.
|
|
17837
|
+
wasm$1.u8_toI128Lossy(retptr, this.__wbg_ptr);
|
|
17832
17838
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17833
17839
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17834
17840
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17855,7 +17861,7 @@ class U8 {
|
|
|
17855
17861
|
* @returns {Boolean}
|
|
17856
17862
|
*/
|
|
17857
17863
|
toBooleanLossy() {
|
|
17858
|
-
const ret = wasm$1.
|
|
17864
|
+
const ret = wasm$1.u8_toBooleanLossy(this.__wbg_ptr);
|
|
17859
17865
|
return Boolean.__wrap(ret);
|
|
17860
17866
|
}
|
|
17861
17867
|
/**
|
|
@@ -17931,7 +17937,7 @@ class U8 {
|
|
|
17931
17937
|
toField() {
|
|
17932
17938
|
try {
|
|
17933
17939
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
17934
|
-
wasm$1.
|
|
17940
|
+
wasm$1.u8_toField(retptr, this.__wbg_ptr);
|
|
17935
17941
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17936
17942
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17937
17943
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17948,7 +17954,7 @@ class U8 {
|
|
|
17948
17954
|
* @returns {Scalar}
|
|
17949
17955
|
*/
|
|
17950
17956
|
toScalar() {
|
|
17951
|
-
const ret = wasm$1.
|
|
17957
|
+
const ret = wasm$1.u8_toScalar(this.__wbg_ptr);
|
|
17952
17958
|
return Scalar.__wrap(ret);
|
|
17953
17959
|
}
|
|
17954
17960
|
/**
|
|
@@ -19325,7 +19331,7 @@ function __wbg_get_imports(memory) {
|
|
|
19325
19331
|
const ret = getObject(arg0).length;
|
|
19326
19332
|
return ret;
|
|
19327
19333
|
};
|
|
19328
|
-
imports.wbg.
|
|
19334
|
+
imports.wbg.__wbg_log_8a97ac3e144f6f80 = function(arg0, arg1) {
|
|
19329
19335
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
19330
19336
|
};
|
|
19331
19337
|
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
@@ -19343,7 +19349,7 @@ function __wbg_get_imports(memory) {
|
|
|
19343
19349
|
const a = state0.a;
|
|
19344
19350
|
state0.a = 0;
|
|
19345
19351
|
try {
|
|
19346
|
-
return
|
|
19352
|
+
return __wasm_bindgen_func_elem_8072(a, state0.b, arg0, arg1);
|
|
19347
19353
|
} finally {
|
|
19348
19354
|
state0.a = a;
|
|
19349
19355
|
}
|
|
@@ -19515,7 +19521,7 @@ function __wbg_get_imports(memory) {
|
|
|
19515
19521
|
const ret = Signature.__wrap(arg0);
|
|
19516
19522
|
return addHeapObject(ret);
|
|
19517
19523
|
};
|
|
19518
|
-
imports.wbg.
|
|
19524
|
+
imports.wbg.__wbg_spawnWorker_81761455e1fee75f = function(arg0, arg1, arg2, arg3) {
|
|
19519
19525
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
19520
19526
|
return addHeapObject(ret);
|
|
19521
19527
|
};
|
|
@@ -19597,9 +19603,9 @@ function __wbg_get_imports(memory) {
|
|
|
19597
19603
|
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
19598
19604
|
return addHeapObject(ret);
|
|
19599
19605
|
};
|
|
19600
|
-
imports.wbg.
|
|
19601
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19602
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
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);
|
|
19603
19609
|
return addHeapObject(ret);
|
|
19604
19610
|
};
|
|
19605
19611
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -19612,6 +19618,11 @@ function __wbg_get_imports(memory) {
|
|
|
19612
19618
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
19613
19619
|
return addHeapObject(ret);
|
|
19614
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
|
+
};
|
|
19615
19626
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
19616
19627
|
// Cast intrinsic for `U64 -> Externref`.
|
|
19617
19628
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -19627,19 +19638,14 @@ function __wbg_get_imports(memory) {
|
|
|
19627
19638
|
const ret = arg0;
|
|
19628
19639
|
return addHeapObject(ret);
|
|
19629
19640
|
};
|
|
19630
|
-
imports.wbg.__wbindgen_cast_dc45e30c78fa2793 = function(arg0, arg1) {
|
|
19631
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19632
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_7556);
|
|
19633
|
-
return addHeapObject(ret);
|
|
19634
|
-
};
|
|
19635
19641
|
imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
|
|
19636
19642
|
// Cast intrinsic for `U128 -> Externref`.
|
|
19637
19643
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
19638
19644
|
return addHeapObject(ret);
|
|
19639
19645
|
};
|
|
19640
|
-
imports.wbg.
|
|
19641
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19642
|
-
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);
|
|
19643
19649
|
return addHeapObject(ret);
|
|
19644
19650
|
};
|
|
19645
19651
|
imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
|
|
@@ -19663,7 +19669,7 @@ function __wbg_get_imports(memory) {
|
|
|
19663
19669
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
19664
19670
|
takeObject(arg0);
|
|
19665
19671
|
};
|
|
19666
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({initial:
|
|
19672
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({initial:169,maximum:65536,shared:true});
|
|
19667
19673
|
|
|
19668
19674
|
return imports;
|
|
19669
19675
|
}
|
|
@@ -19788,6 +19794,7 @@ var exports$1$1 = /*#__PURE__*/Object.freeze({
|
|
|
19788
19794
|
getOrInitConsensusVersionTestHeights: getOrInitConsensusVersionTestHeights,
|
|
19789
19795
|
initSync: initSync$1,
|
|
19790
19796
|
initThreadPool: initThreadPool,
|
|
19797
|
+
install_panic_hook: install_panic_hook,
|
|
19791
19798
|
runRayonThread: runRayonThread,
|
|
19792
19799
|
setWasmLogLevel: setWasmLogLevel,
|
|
19793
19800
|
snarkVerify: snarkVerify,
|