@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
|
@@ -8,7 +8,22 @@ export function runRayonThread(receiver: number): void;
|
|
|
8
8
|
* Values above 4 are clamped to debug.
|
|
9
9
|
*/
|
|
10
10
|
export function setWasmLogLevel(level: number): void;
|
|
11
|
+
export function install_panic_hook(): void;
|
|
11
12
|
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Verify a SNARK proof against a verifying key and public inputs.
|
|
15
|
+
*
|
|
16
|
+
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
17
|
+
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
|
|
18
|
+
* by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
|
|
19
|
+
* an older Varuna version will fail verification.
|
|
20
|
+
*
|
|
21
|
+
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
22
|
+
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
23
|
+
* @param {Proof} proof The proof to verify
|
|
24
|
+
* @returns {boolean} True if the proof is valid, false otherwise
|
|
25
|
+
*/
|
|
26
|
+
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
12
27
|
/**
|
|
13
28
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
14
29
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -23,18 +38,6 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
23
38
|
* @returns {boolean} True if the execution is valid, false otherwise
|
|
24
39
|
*/
|
|
25
40
|
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;
|
|
26
|
-
/**
|
|
27
|
-
* Verify a SNARK proof against a verifying key and public inputs.
|
|
28
|
-
*
|
|
29
|
-
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
30
|
-
* It directly invokes the Varuna proof verification from snarkVM.
|
|
31
|
-
*
|
|
32
|
-
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
33
|
-
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
34
|
-
* @param {Proof} proof The proof to verify
|
|
35
|
-
* @returns {boolean} True if the proof is valid, false otherwise
|
|
36
|
-
*/
|
|
37
|
-
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
38
41
|
/**
|
|
39
42
|
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
40
43
|
*
|
|
@@ -47,7 +50,6 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
|
|
|
47
50
|
* @returns {boolean} True if the batch proof is valid, false otherwise
|
|
48
51
|
*/
|
|
49
52
|
export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
|
|
50
|
-
export function stringToField(string: string): Field;
|
|
51
53
|
/**
|
|
52
54
|
* Set test consensus version heights for testing.
|
|
53
55
|
*
|
|
@@ -57,7 +59,7 @@ export function stringToField(string: string): Field;
|
|
|
57
59
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
58
60
|
*
|
|
59
61
|
* 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,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");
|
|
61
63
|
*/
|
|
62
64
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
63
65
|
/**
|
|
@@ -72,6 +74,7 @@ export function getOrInitConsensusVersionTestHeights(heights?: string | null): A
|
|
|
72
74
|
* const maxImports = getMaxProgramImports();
|
|
73
75
|
*/
|
|
74
76
|
export function getMaxProgramImports(): number;
|
|
77
|
+
export function stringToField(string: string): Field;
|
|
75
78
|
/**
|
|
76
79
|
* Public address of an Aleo account
|
|
77
80
|
*/
|
|
Binary file
|
package/dist/mainnet/index.cjs
CHANGED
|
@@ -303,6 +303,10 @@ function setWasmLogLevel(level) {
|
|
|
303
303
|
wasm$1.setWasmLogLevel(level);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
function install_panic_hook() {
|
|
307
|
+
wasm$1.install_panic_hook();
|
|
308
|
+
}
|
|
309
|
+
|
|
306
310
|
/**
|
|
307
311
|
* @param {URL} url
|
|
308
312
|
* @param {number} num_threads
|
|
@@ -320,6 +324,41 @@ function addBorrowedObject(obj) {
|
|
|
320
324
|
heap[--stack_pointer] = obj;
|
|
321
325
|
return stack_pointer;
|
|
322
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Verify a SNARK proof against a verifying key and public inputs.
|
|
329
|
+
*
|
|
330
|
+
* This function verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
331
|
+
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
|
|
332
|
+
* by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
|
|
333
|
+
* an older Varuna version will fail verification.
|
|
334
|
+
*
|
|
335
|
+
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
336
|
+
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
337
|
+
* @param {Proof} proof The proof to verify
|
|
338
|
+
* @returns {boolean} True if the proof is valid, false otherwise
|
|
339
|
+
* @param {VerifyingKey} verifying_key
|
|
340
|
+
* @param {Array<any>} inputs
|
|
341
|
+
* @param {Proof} proof
|
|
342
|
+
* @returns {boolean}
|
|
343
|
+
*/
|
|
344
|
+
function snarkVerify(verifying_key, inputs, proof) {
|
|
345
|
+
try {
|
|
346
|
+
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
347
|
+
_assertClass(verifying_key, VerifyingKey);
|
|
348
|
+
_assertClass(proof, Proof);
|
|
349
|
+
wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
|
|
350
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
351
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
352
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
353
|
+
if (r2) {
|
|
354
|
+
throw takeObject(r1);
|
|
355
|
+
}
|
|
356
|
+
return r0 !== 0;
|
|
357
|
+
} finally {
|
|
358
|
+
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
323
362
|
/**
|
|
324
363
|
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
325
364
|
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
@@ -368,39 +407,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
368
407
|
}
|
|
369
408
|
}
|
|
370
409
|
|
|
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.
|
|
376
|
-
*
|
|
377
|
-
* @param {VerifyingKey} verifying_key The verifying key for the circuit
|
|
378
|
-
* @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
|
|
379
|
-
* @param {Proof} proof The proof to verify
|
|
380
|
-
* @returns {boolean} True if the proof is valid, false otherwise
|
|
381
|
-
* @param {VerifyingKey} verifying_key
|
|
382
|
-
* @param {Array<any>} inputs
|
|
383
|
-
* @param {Proof} proof
|
|
384
|
-
* @returns {boolean}
|
|
385
|
-
*/
|
|
386
|
-
function snarkVerify(verifying_key, inputs, proof) {
|
|
387
|
-
try {
|
|
388
|
-
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
389
|
-
_assertClass(verifying_key, VerifyingKey);
|
|
390
|
-
_assertClass(proof, Proof);
|
|
391
|
-
wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
|
|
392
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
393
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
394
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
395
|
-
if (r2) {
|
|
396
|
-
throw takeObject(r1);
|
|
397
|
-
}
|
|
398
|
-
return r0 !== 0;
|
|
399
|
-
} finally {
|
|
400
|
-
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
410
|
/**
|
|
405
411
|
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
406
412
|
*
|
|
@@ -433,28 +439,6 @@ function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
|
433
439
|
}
|
|
434
440
|
}
|
|
435
441
|
|
|
436
|
-
/**
|
|
437
|
-
* @param {string} string
|
|
438
|
-
* @returns {Field}
|
|
439
|
-
*/
|
|
440
|
-
function stringToField(string) {
|
|
441
|
-
try {
|
|
442
|
-
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
443
|
-
const ptr0 = passStringToWasm0(string, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
444
|
-
const len0 = WASM_VECTOR_LEN;
|
|
445
|
-
wasm$1.stringToField(retptr, ptr0, len0);
|
|
446
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
447
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
448
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
449
|
-
if (r2) {
|
|
450
|
-
throw takeObject(r1);
|
|
451
|
-
}
|
|
452
|
-
return Field.__wrap(r0);
|
|
453
|
-
} finally {
|
|
454
|
-
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
442
|
/**
|
|
459
443
|
* Set test consensus version heights for testing.
|
|
460
444
|
*
|
|
@@ -464,7 +448,7 @@ function stringToField(string) {
|
|
|
464
448
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
465
449
|
*
|
|
466
450
|
* 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,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");
|
|
468
452
|
* @param {string | null} [heights]
|
|
469
453
|
* @returns {Array<any>}
|
|
470
454
|
*/
|
|
@@ -492,6 +476,28 @@ function getMaxProgramImports() {
|
|
|
492
476
|
return ret >>> 0;
|
|
493
477
|
}
|
|
494
478
|
|
|
479
|
+
/**
|
|
480
|
+
* @param {string} string
|
|
481
|
+
* @returns {Field}
|
|
482
|
+
*/
|
|
483
|
+
function stringToField(string) {
|
|
484
|
+
try {
|
|
485
|
+
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
486
|
+
const ptr0 = passStringToWasm0(string, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
488
|
+
wasm$1.stringToField(retptr, ptr0, len0);
|
|
489
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
490
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
491
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
492
|
+
if (r2) {
|
|
493
|
+
throw takeObject(r1);
|
|
494
|
+
}
|
|
495
|
+
return Field.__wrap(r0);
|
|
496
|
+
} finally {
|
|
497
|
+
wasm$1.__wbindgen_add_to_stack_pointer(16);
|
|
498
|
+
}
|
|
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_7790(arg0, arg1) {
|
|
525
|
+
wasm$1.__wasm_bindgen_func_elem_7790(arg0, arg1);
|
|
520
526
|
}
|
|
521
527
|
|
|
522
|
-
function
|
|
523
|
-
wasm$1.
|
|
528
|
+
function __wasm_bindgen_func_elem_8065(arg0, arg1, arg2, arg3) {
|
|
529
|
+
wasm$1.__wasm_bindgen_func_elem_8065(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_8065(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
|
};
|
|
@@ -19612,9 +19618,14 @@ function __wbg_get_imports(memory) {
|
|
|
19612
19618
|
const ret = BigInt.asUintN(64, arg0);
|
|
19613
19619
|
return addHeapObject(ret);
|
|
19614
19620
|
};
|
|
19615
|
-
imports.wbg.
|
|
19616
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19617
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19621
|
+
imports.wbg.__wbindgen_cast_4cba6e9a0ab97f0f = function(arg0, arg1) {
|
|
19622
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 419, function: Function { arguments: [], shim_idx: 598, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19623
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_7790);
|
|
19624
|
+
return addHeapObject(ret);
|
|
19625
|
+
};
|
|
19626
|
+
imports.wbg.__wbindgen_cast_73759e167f0d7d98 = function(arg0, arg1) {
|
|
19627
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 419, function: Function { arguments: [Externref], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19628
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_9273);
|
|
19618
19629
|
return addHeapObject(ret);
|
|
19619
19630
|
};
|
|
19620
19631
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -19622,9 +19633,9 @@ function __wbg_get_imports(memory) {
|
|
|
19622
19633
|
const ret = arg0;
|
|
19623
19634
|
return addHeapObject(ret);
|
|
19624
19635
|
};
|
|
19625
|
-
imports.wbg.
|
|
19626
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19627
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19636
|
+
imports.wbg.__wbindgen_cast_d3b3062e1c74bf57 = function(arg0, arg1) {
|
|
19637
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 419, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19638
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_9273);
|
|
19628
19639
|
return addHeapObject(ret);
|
|
19629
19640
|
};
|
|
19630
19641
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -19637,11 +19648,6 @@ function __wbg_get_imports(memory) {
|
|
|
19637
19648
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
19638
19649
|
return addHeapObject(ret);
|
|
19639
19650
|
};
|
|
19640
|
-
imports.wbg.__wbindgen_cast_f10277ab8e6ee562 = function(arg0, arg1) {
|
|
19641
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19642
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_7556);
|
|
19643
|
-
return addHeapObject(ret);
|
|
19644
|
-
};
|
|
19645
19651
|
imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
|
|
19646
19652
|
const val = `onmessage = function (ev) {
|
|
19647
19653
|
let [ia, index, value] = ev.data;
|
|
@@ -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,
|