@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.
@@ -297,6 +297,10 @@ function setWasmLogLevel(level) {
297
297
  wasm.setWasmLogLevel(level);
298
298
  }
299
299
 
300
+ function install_panic_hook() {
301
+ wasm.install_panic_hook();
302
+ }
303
+
300
304
  /**
301
305
  * @param {URL} url
302
306
  * @param {number} num_threads
@@ -314,6 +318,41 @@ function addBorrowedObject(obj) {
314
318
  heap[--stack_pointer] = obj;
315
319
  return stack_pointer;
316
320
  }
321
+ /**
322
+ * Verify a SNARK proof against a verifying key and public inputs.
323
+ *
324
+ * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
325
+ * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
326
+ * by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
327
+ * an older Varuna version will fail verification.
328
+ *
329
+ * @param {VerifyingKey} verifying_key The verifying key for the circuit
330
+ * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
331
+ * @param {Proof} proof The proof to verify
332
+ * @returns {boolean} True if the proof is valid, false otherwise
333
+ * @param {VerifyingKey} verifying_key
334
+ * @param {Array<any>} inputs
335
+ * @param {Proof} proof
336
+ * @returns {boolean}
337
+ */
338
+ function snarkVerify(verifying_key, inputs, proof) {
339
+ try {
340
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
341
+ _assertClass(verifying_key, VerifyingKey);
342
+ _assertClass(proof, Proof);
343
+ wasm.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
344
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
345
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
346
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
347
+ if (r2) {
348
+ throw takeObject(r1);
349
+ }
350
+ return r0 !== 0;
351
+ } finally {
352
+ wasm.__wbindgen_add_to_stack_pointer(16);
353
+ }
354
+ }
355
+
317
356
  /**
318
357
  * Verify an execution. Executions with multiple transitions must have the program source code and
319
358
  * verifying keys of imported functions supplied from outside to correctly verify. Also, this does
@@ -394,41 +433,6 @@ function snarkVerifyBatch(verifying_keys, inputs, proof) {
394
433
  }
395
434
  }
396
435
 
397
- /**
398
- * Verify a SNARK proof against a verifying key and public inputs.
399
- *
400
- * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
401
- * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
402
- * by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
403
- * an older Varuna version will fail verification.
404
- *
405
- * @param {VerifyingKey} verifying_key The verifying key for the circuit
406
- * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
407
- * @param {Proof} proof The proof to verify
408
- * @returns {boolean} True if the proof is valid, false otherwise
409
- * @param {VerifyingKey} verifying_key
410
- * @param {Array<any>} inputs
411
- * @param {Proof} proof
412
- * @returns {boolean}
413
- */
414
- function snarkVerify(verifying_key, inputs, proof) {
415
- try {
416
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
417
- _assertClass(verifying_key, VerifyingKey);
418
- _assertClass(proof, Proof);
419
- wasm.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
420
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
421
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
422
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
423
- if (r2) {
424
- throw takeObject(r1);
425
- }
426
- return r0 !== 0;
427
- } finally {
428
- wasm.__wbindgen_add_to_stack_pointer(16);
429
- }
430
- }
431
-
432
436
  /**
433
437
  * Set test consensus version heights for testing.
434
438
  *
@@ -507,16 +511,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
507
511
  }
508
512
  return result;
509
513
  }
510
- function __wasm_bindgen_func_elem_9005(arg0, arg1, arg2) {
511
- wasm.__wasm_bindgen_func_elem_9005(arg0, arg1, addHeapObject(arg2));
514
+ function __wasm_bindgen_func_elem_9273(arg0, arg1, arg2) {
515
+ wasm.__wasm_bindgen_func_elem_9273(arg0, arg1, addHeapObject(arg2));
512
516
  }
513
517
 
514
- function __wasm_bindgen_func_elem_7568(arg0, arg1) {
515
- wasm.__wasm_bindgen_func_elem_7568(arg0, arg1);
518
+ function __wasm_bindgen_func_elem_7790(arg0, arg1) {
519
+ wasm.__wasm_bindgen_func_elem_7790(arg0, arg1);
516
520
  }
517
521
 
518
- function __wasm_bindgen_func_elem_7840(arg0, arg1, arg2, arg3) {
519
- wasm.__wasm_bindgen_func_elem_7840(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
522
+ function __wasm_bindgen_func_elem_8065(arg0, arg1, arg2, arg3) {
523
+ wasm.__wasm_bindgen_func_elem_8065(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
520
524
  }
521
525
 
522
526
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -4899,7 +4903,7 @@ class Group {
4899
4903
  * @returns {Boolean}
4900
4904
  */
4901
4905
  toBooleanLossy() {
4902
- const ret = wasm.address_toBooleanLossy(this.__wbg_ptr);
4906
+ const ret = wasm.group_toBooleanLossy(this.__wbg_ptr);
4903
4907
  return Boolean.__wrap(ret);
4904
4908
  }
4905
4909
  /**
@@ -15801,7 +15805,7 @@ class U16 {
15801
15805
  * @returns {Array<any>}
15802
15806
  */
15803
15807
  toBitsLe() {
15804
- const ret = wasm.i16_toBitsLe(this.__wbg_ptr);
15808
+ const ret = wasm.u16_toBitsLe(this.__wbg_ptr);
15805
15809
  return takeObject(ret);
15806
15810
  }
15807
15811
  /**
@@ -15938,7 +15942,7 @@ class U16 {
15938
15942
  toI8Lossy() {
15939
15943
  try {
15940
15944
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15941
- wasm.i16_toI8Lossy(retptr, this.__wbg_ptr);
15945
+ wasm.u16_toI8Lossy(retptr, this.__wbg_ptr);
15942
15946
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
15943
15947
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
15944
15948
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -15957,7 +15961,7 @@ class U16 {
15957
15961
  toU8Lossy() {
15958
15962
  try {
15959
15963
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15960
- wasm.i16_toI8Lossy(retptr, this.__wbg_ptr);
15964
+ wasm.u16_toI8Lossy(retptr, this.__wbg_ptr);
15961
15965
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
15962
15966
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
15963
15967
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -15997,7 +16001,7 @@ class U16 {
15997
16001
  toI16Lossy() {
15998
16002
  try {
15999
16003
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16000
- wasm.i16_toI16Lossy(retptr, this.__wbg_ptr);
16004
+ wasm.u16_toI16Lossy(retptr, this.__wbg_ptr);
16001
16005
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16002
16006
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16003
16007
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16016,7 +16020,7 @@ class U16 {
16016
16020
  toI32Lossy() {
16017
16021
  try {
16018
16022
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16019
- wasm.i16_toI32Lossy(retptr, this.__wbg_ptr);
16023
+ wasm.u16_toI32Lossy(retptr, this.__wbg_ptr);
16020
16024
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16021
16025
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16022
16026
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16035,7 +16039,7 @@ class U16 {
16035
16039
  toI64Lossy() {
16036
16040
  try {
16037
16041
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16038
- wasm.i16_toI64Lossy(retptr, this.__wbg_ptr);
16042
+ wasm.u16_toI64Lossy(retptr, this.__wbg_ptr);
16039
16043
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16040
16044
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16041
16045
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16062,7 +16066,7 @@ class U16 {
16062
16066
  toU16Lossy() {
16063
16067
  try {
16064
16068
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16065
- wasm.i16_toI16Lossy(retptr, this.__wbg_ptr);
16069
+ wasm.u16_toI16Lossy(retptr, this.__wbg_ptr);
16066
16070
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16067
16071
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16068
16072
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16081,7 +16085,7 @@ class U16 {
16081
16085
  toU32Lossy() {
16082
16086
  try {
16083
16087
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16084
- wasm.i16_toI32Lossy(retptr, this.__wbg_ptr);
16088
+ wasm.u16_toI32Lossy(retptr, this.__wbg_ptr);
16085
16089
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16086
16090
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16087
16091
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16100,7 +16104,7 @@ class U16 {
16100
16104
  toU64Lossy() {
16101
16105
  try {
16102
16106
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16103
- wasm.i16_toI64Lossy(retptr, this.__wbg_ptr);
16107
+ wasm.u16_toI64Lossy(retptr, this.__wbg_ptr);
16104
16108
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16105
16109
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16106
16110
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16140,7 +16144,7 @@ class U16 {
16140
16144
  toI128Lossy() {
16141
16145
  try {
16142
16146
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16143
- wasm.i16_toI128Lossy(retptr, this.__wbg_ptr);
16147
+ wasm.u16_toI128Lossy(retptr, this.__wbg_ptr);
16144
16148
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16145
16149
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16146
16150
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16159,7 +16163,7 @@ class U16 {
16159
16163
  toU128Lossy() {
16160
16164
  try {
16161
16165
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16162
- wasm.i16_toI128Lossy(retptr, this.__wbg_ptr);
16166
+ wasm.u16_toI128Lossy(retptr, this.__wbg_ptr);
16163
16167
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16164
16168
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16165
16169
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16186,7 +16190,7 @@ class U16 {
16186
16190
  * @returns {Boolean}
16187
16191
  */
16188
16192
  toBooleanLossy() {
16189
- const ret = wasm.i16_toBooleanLossy(this.__wbg_ptr);
16193
+ const ret = wasm.u16_toBooleanLossy(this.__wbg_ptr);
16190
16194
  return Boolean.__wrap(ret);
16191
16195
  }
16192
16196
  /**
@@ -16262,7 +16266,7 @@ class U16 {
16262
16266
  toField() {
16263
16267
  try {
16264
16268
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16265
- wasm.i16_toField(retptr, this.__wbg_ptr);
16269
+ wasm.u16_toField(retptr, this.__wbg_ptr);
16266
16270
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16267
16271
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16268
16272
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16279,7 +16283,7 @@ class U16 {
16279
16283
  * @returns {Scalar}
16280
16284
  */
16281
16285
  toScalar() {
16282
- const ret = wasm.i16_toScalar(this.__wbg_ptr);
16286
+ const ret = wasm.u16_toScalar(this.__wbg_ptr);
16283
16287
  return Scalar.__wrap(ret);
16284
16288
  }
16285
16289
  /**
@@ -17466,7 +17470,7 @@ class U8 {
17466
17470
  * @returns {Array<any>}
17467
17471
  */
17468
17472
  toBitsLe() {
17469
- const ret = wasm.i8_toBitsLe(this.__wbg_ptr);
17473
+ const ret = wasm.u8_toBitsLe(this.__wbg_ptr);
17470
17474
  return takeObject(ret);
17471
17475
  }
17472
17476
  /**
@@ -17603,7 +17607,7 @@ class U8 {
17603
17607
  toI8Lossy() {
17604
17608
  try {
17605
17609
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17606
- wasm.i8_toI8Lossy(retptr, this.__wbg_ptr);
17610
+ wasm.u8_toI8Lossy(retptr, this.__wbg_ptr);
17607
17611
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17608
17612
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17609
17613
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17622,7 +17626,7 @@ class U8 {
17622
17626
  toU8Lossy() {
17623
17627
  try {
17624
17628
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17625
- wasm.i8_toI8Lossy(retptr, this.__wbg_ptr);
17629
+ wasm.u8_toI8Lossy(retptr, this.__wbg_ptr);
17626
17630
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17627
17631
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17628
17632
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17662,7 +17666,7 @@ class U8 {
17662
17666
  toI16Lossy() {
17663
17667
  try {
17664
17668
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17665
- wasm.i8_toI16Lossy(retptr, this.__wbg_ptr);
17669
+ wasm.u8_toI16Lossy(retptr, this.__wbg_ptr);
17666
17670
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17667
17671
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17668
17672
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17681,7 +17685,7 @@ class U8 {
17681
17685
  toI32Lossy() {
17682
17686
  try {
17683
17687
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17684
- wasm.i8_toI32Lossy(retptr, this.__wbg_ptr);
17688
+ wasm.u8_toI32Lossy(retptr, this.__wbg_ptr);
17685
17689
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17686
17690
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17687
17691
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17700,7 +17704,7 @@ class U8 {
17700
17704
  toI64Lossy() {
17701
17705
  try {
17702
17706
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17703
- wasm.i8_toI64Lossy(retptr, this.__wbg_ptr);
17707
+ wasm.u8_toI64Lossy(retptr, this.__wbg_ptr);
17704
17708
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17705
17709
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17706
17710
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17727,7 +17731,7 @@ class U8 {
17727
17731
  toU16Lossy() {
17728
17732
  try {
17729
17733
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17730
- wasm.i8_toI16Lossy(retptr, this.__wbg_ptr);
17734
+ wasm.u8_toI16Lossy(retptr, this.__wbg_ptr);
17731
17735
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17732
17736
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17733
17737
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17746,7 +17750,7 @@ class U8 {
17746
17750
  toU32Lossy() {
17747
17751
  try {
17748
17752
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17749
- wasm.i8_toI32Lossy(retptr, this.__wbg_ptr);
17753
+ wasm.u8_toI32Lossy(retptr, this.__wbg_ptr);
17750
17754
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17751
17755
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17752
17756
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17765,7 +17769,7 @@ class U8 {
17765
17769
  toU64Lossy() {
17766
17770
  try {
17767
17771
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17768
- wasm.i8_toI64Lossy(retptr, this.__wbg_ptr);
17772
+ wasm.u8_toI64Lossy(retptr, this.__wbg_ptr);
17769
17773
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17770
17774
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17771
17775
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17805,7 +17809,7 @@ class U8 {
17805
17809
  toI128Lossy() {
17806
17810
  try {
17807
17811
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17808
- wasm.i8_toI128Lossy(retptr, this.__wbg_ptr);
17812
+ wasm.u8_toI128Lossy(retptr, this.__wbg_ptr);
17809
17813
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17810
17814
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17811
17815
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17824,7 +17828,7 @@ class U8 {
17824
17828
  toU128Lossy() {
17825
17829
  try {
17826
17830
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17827
- wasm.i8_toI128Lossy(retptr, this.__wbg_ptr);
17831
+ wasm.u8_toI128Lossy(retptr, this.__wbg_ptr);
17828
17832
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17829
17833
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17830
17834
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17851,7 +17855,7 @@ class U8 {
17851
17855
  * @returns {Boolean}
17852
17856
  */
17853
17857
  toBooleanLossy() {
17854
- const ret = wasm.i8_toBooleanLossy(this.__wbg_ptr);
17858
+ const ret = wasm.u8_toBooleanLossy(this.__wbg_ptr);
17855
17859
  return Boolean.__wrap(ret);
17856
17860
  }
17857
17861
  /**
@@ -17927,7 +17931,7 @@ class U8 {
17927
17931
  toField() {
17928
17932
  try {
17929
17933
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17930
- wasm.i8_toField(retptr, this.__wbg_ptr);
17934
+ wasm.u8_toField(retptr, this.__wbg_ptr);
17931
17935
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17932
17936
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17933
17937
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17944,7 +17948,7 @@ class U8 {
17944
17948
  * @returns {Scalar}
17945
17949
  */
17946
17950
  toScalar() {
17947
- const ret = wasm.i8_toScalar(this.__wbg_ptr);
17951
+ const ret = wasm.u8_toScalar(this.__wbg_ptr);
17948
17952
  return Scalar.__wrap(ret);
17949
17953
  }
17950
17954
  /**
@@ -19321,7 +19325,7 @@ function __wbg_get_imports(memory) {
19321
19325
  const ret = getObject(arg0).length;
19322
19326
  return ret;
19323
19327
  };
19324
- imports.wbg.__wbg_log_c2eca570a6157825 = function(arg0, arg1) {
19328
+ imports.wbg.__wbg_log_8a97ac3e144f6f80 = function(arg0, arg1) {
19325
19329
  console.log(getStringFromWasm0(arg0, arg1));
19326
19330
  };
19327
19331
  imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
@@ -19339,7 +19343,7 @@ function __wbg_get_imports(memory) {
19339
19343
  const a = state0.a;
19340
19344
  state0.a = 0;
19341
19345
  try {
19342
- return __wasm_bindgen_func_elem_7840(a, state0.b, arg0, arg1);
19346
+ return __wasm_bindgen_func_elem_8065(a, state0.b, arg0, arg1);
19343
19347
  } finally {
19344
19348
  state0.a = a;
19345
19349
  }
@@ -19511,7 +19515,7 @@ function __wbg_get_imports(memory) {
19511
19515
  const ret = Signature.__wrap(arg0);
19512
19516
  return addHeapObject(ret);
19513
19517
  };
19514
- imports.wbg.__wbg_spawnWorker_0d7c58b5ba9ab046 = function(arg0, arg1, arg2, arg3) {
19518
+ imports.wbg.__wbg_spawnWorker_81761455e1fee75f = function(arg0, arg1, arg2, arg3) {
19515
19519
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
19516
19520
  return addHeapObject(ret);
19517
19521
  };
@@ -19593,11 +19597,6 @@ function __wbg_get_imports(memory) {
19593
19597
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19594
19598
  return addHeapObject(ret);
19595
19599
  };
19596
- imports.wbg.__wbindgen_cast_201f5d8c51d6c49f = function(arg0, arg1) {
19597
- // Cast intrinsic for `Closure(Closure { dtor_idx: 396, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 397, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19598
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7567, __wasm_bindgen_func_elem_9005);
19599
- return addHeapObject(ret);
19600
- };
19601
19600
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
19602
19601
  // Cast intrinsic for `Ref(String) -> Externref`.
19603
19602
  const ret = getStringFromWasm0(arg0, arg1);
@@ -19613,9 +19612,14 @@ function __wbg_get_imports(memory) {
19613
19612
  const ret = BigInt.asUintN(64, arg0);
19614
19613
  return addHeapObject(ret);
19615
19614
  };
19616
- imports.wbg.__wbindgen_cast_81f27860ba10fea8 = function(arg0, arg1) {
19617
- // Cast intrinsic for `Closure(Closure { dtor_idx: 396, function: Function { arguments: [Externref], shim_idx: 397, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19618
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7567, __wasm_bindgen_func_elem_9005);
19615
+ imports.wbg.__wbindgen_cast_4cba6e9a0ab97f0f = function(arg0, arg1) {
19616
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 419, function: Function { arguments: [], shim_idx: 598, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19617
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_7790);
19618
+ return addHeapObject(ret);
19619
+ };
19620
+ imports.wbg.__wbindgen_cast_73759e167f0d7d98 = function(arg0, arg1) {
19621
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 419, function: Function { arguments: [Externref], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19622
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_9273);
19619
19623
  return addHeapObject(ret);
19620
19624
  };
19621
19625
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
@@ -19623,16 +19627,16 @@ function __wbg_get_imports(memory) {
19623
19627
  const ret = arg0;
19624
19628
  return addHeapObject(ret);
19625
19629
  };
19630
+ imports.wbg.__wbindgen_cast_d3b3062e1c74bf57 = function(arg0, arg1) {
19631
+ // 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`.
19632
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7789, __wasm_bindgen_func_elem_9273);
19633
+ return addHeapObject(ret);
19634
+ };
19626
19635
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
19627
19636
  // Cast intrinsic for `F64 -> Externref`.
19628
19637
  const ret = arg0;
19629
19638
  return addHeapObject(ret);
19630
19639
  };
19631
- imports.wbg.__wbindgen_cast_df4137fc329f9ddc = function(arg0, arg1) {
19632
- // Cast intrinsic for `Closure(Closure { dtor_idx: 396, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19633
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7567, __wasm_bindgen_func_elem_7568);
19634
- return addHeapObject(ret);
19635
- };
19636
19640
  imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
19637
19641
  // Cast intrinsic for `U128 -> Externref`.
19638
19642
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
@@ -19659,7 +19663,7 @@ function __wbg_get_imports(memory) {
19659
19663
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
19660
19664
  takeObject(arg0);
19661
19665
  };
19662
- imports.wbg.memory = memory || new WebAssembly.Memory({initial:168,maximum:65536,shared:true});
19666
+ imports.wbg.memory = memory || new WebAssembly.Memory({initial:169,maximum:65536,shared:true});
19663
19667
 
19664
19668
  return imports;
19665
19669
  }
@@ -19784,6 +19788,7 @@ var exports$1 = /*#__PURE__*/Object.freeze({
19784
19788
  getOrInitConsensusVersionTestHeights: getOrInitConsensusVersionTestHeights,
19785
19789
  initSync: initSync,
19786
19790
  initThreadPool: initThreadPool,
19791
+ install_panic_hook: install_panic_hook,
19787
19792
  runRayonThread: runRayonThread,
19788
19793
  setWasmLogLevel: setWasmLogLevel,
19789
19794
  snarkVerify: snarkVerify,