@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.
@@ -286,15 +286,8 @@ function runRayonThread(receiver) {
286
286
  wasm.runRayonThread(receiver);
287
287
  }
288
288
 
289
- /**
290
- * Set the WASM log level from JS. Called automatically by the SDK's
291
- * `setLogLevel(level)` to keep TS and WASM logging in sync.
292
- * Levels: 0=silent, 1=error, 2=warn, 3=info (default), 4=debug.
293
- * Values above 4 are clamped to debug.
294
- * @param {number} level
295
- */
296
- function setWasmLogLevel(level) {
297
- wasm.setWasmLogLevel(level);
289
+ function install_panic_hook() {
290
+ wasm.install_panic_hook();
298
291
  }
299
292
 
300
293
  /**
@@ -307,6 +300,17 @@ function initThreadPool(url, num_threads) {
307
300
  return takeObject(ret);
308
301
  }
309
302
 
303
+ /**
304
+ * Set the WASM log level from JS. Called automatically by the SDK's
305
+ * `setLogLevel(level)` to keep TS and WASM logging in sync.
306
+ * Levels: 0=silent, 1=error, 2=warn, 3=info (default), 4=debug.
307
+ * Values above 4 are clamped to debug.
308
+ * @param {number} level
309
+ */
310
+ function setWasmLogLevel(level) {
311
+ wasm.setWasmLogLevel(level);
312
+ }
313
+
310
314
  let stack_pointer = 128;
311
315
 
312
316
  function addBorrowedObject(obj) {
@@ -362,41 +366,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
362
366
  }
363
367
  }
364
368
 
365
- /**
366
- * Verify a SNARK proof against a verifying key and public inputs.
367
- *
368
- * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
369
- * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
370
- * by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
371
- * an older Varuna version will fail verification.
372
- *
373
- * @param {VerifyingKey} verifying_key The verifying key for the circuit
374
- * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
375
- * @param {Proof} proof The proof to verify
376
- * @returns {boolean} True if the proof is valid, false otherwise
377
- * @param {VerifyingKey} verifying_key
378
- * @param {Array<any>} inputs
379
- * @param {Proof} proof
380
- * @returns {boolean}
381
- */
382
- function snarkVerify(verifying_key, inputs, proof) {
383
- try {
384
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
385
- _assertClass(verifying_key, VerifyingKey);
386
- _assertClass(proof, Proof);
387
- wasm.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
388
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
389
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
390
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
391
- if (r2) {
392
- throw takeObject(r1);
393
- }
394
- return r0 !== 0;
395
- } finally {
396
- wasm.__wbindgen_add_to_stack_pointer(16);
397
- }
398
- }
399
-
400
369
  /**
401
370
  * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
402
371
  *
@@ -430,22 +399,35 @@ function snarkVerifyBatch(verifying_keys, inputs, proof) {
430
399
  }
431
400
 
432
401
  /**
433
- * @param {string} string
434
- * @returns {Field}
402
+ * Verify a SNARK proof against a verifying key and public inputs.
403
+ *
404
+ * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
405
+ * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version required
406
+ * by the latest consensus version (Varuna V3 as of `ConsensusVersion::V21`). Proofs generated with
407
+ * an older Varuna version will fail verification.
408
+ *
409
+ * @param {VerifyingKey} verifying_key The verifying key for the circuit
410
+ * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
411
+ * @param {Proof} proof The proof to verify
412
+ * @returns {boolean} True if the proof is valid, false otherwise
413
+ * @param {VerifyingKey} verifying_key
414
+ * @param {Array<any>} inputs
415
+ * @param {Proof} proof
416
+ * @returns {boolean}
435
417
  */
436
- function stringToField(string) {
418
+ function snarkVerify(verifying_key, inputs, proof) {
437
419
  try {
438
420
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
439
- const ptr0 = passStringToWasm0(string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
440
- const len0 = WASM_VECTOR_LEN;
441
- wasm.stringToField(retptr, ptr0, len0);
421
+ _assertClass(verifying_key, VerifyingKey);
422
+ _assertClass(proof, Proof);
423
+ wasm.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
442
424
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
443
425
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
444
426
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
445
427
  if (r2) {
446
428
  throw takeObject(r1);
447
429
  }
448
- return Field.__wrap(r0);
430
+ return r0 !== 0;
449
431
  } finally {
450
432
  wasm.__wbindgen_add_to_stack_pointer(16);
451
433
  }
@@ -471,6 +453,28 @@ function getOrInitConsensusVersionTestHeights(heights) {
471
453
  return takeObject(ret);
472
454
  }
473
455
 
456
+ /**
457
+ * @param {string} string
458
+ * @returns {Field}
459
+ */
460
+ function stringToField(string) {
461
+ try {
462
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
463
+ const ptr0 = passStringToWasm0(string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
464
+ const len0 = WASM_VECTOR_LEN;
465
+ wasm.stringToField(retptr, ptr0, len0);
466
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
467
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
468
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
469
+ if (r2) {
470
+ throw takeObject(r1);
471
+ }
472
+ return Field.__wrap(r0);
473
+ } finally {
474
+ wasm.__wbindgen_add_to_stack_pointer(16);
475
+ }
476
+ }
477
+
474
478
  /**
475
479
  * Returns the maximum number of imports allowed in a program by the
476
480
  * snarkVM network implementation this SDK was built against.
@@ -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_7563(arg0, arg1) {
515
- wasm.__wasm_bindgen_func_elem_7563(arg0, arg1);
518
+ function __wasm_bindgen_func_elem_7797(arg0, arg1) {
519
+ wasm.__wasm_bindgen_func_elem_7797(arg0, arg1);
516
520
  }
517
521
 
518
- function __wasm_bindgen_func_elem_7835(arg0, arg1, arg2, arg3) {
519
- wasm.__wasm_bindgen_func_elem_7835(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
522
+ function __wasm_bindgen_func_elem_8072(arg0, arg1, arg2, arg3) {
523
+ wasm.__wasm_bindgen_func_elem_8072(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_7835(a, state0.b, arg0, arg1);
19346
+ return __wasm_bindgen_func_elem_8072(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,6 +19597,11 @@ function __wbg_get_imports(memory) {
19593
19597
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19594
19598
  return addHeapObject(ret);
19595
19599
  };
19600
+ imports.wbg.__wbindgen_cast_135e7c4dddfc5e2a = function(arg0, arg1) {
19601
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [Externref], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19602
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_9273);
19603
+ return addHeapObject(ret);
19604
+ };
19596
19605
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
19597
19606
  // Cast intrinsic for `Ref(String) -> Externref`.
19598
19607
  const ret = getStringFromWasm0(arg0, arg1);
@@ -19603,21 +19612,16 @@ function __wbg_get_imports(memory) {
19603
19612
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
19604
19613
  return addHeapObject(ret);
19605
19614
  };
19615
+ imports.wbg.__wbindgen_cast_3137da7ea92f83db = function(arg0, arg1) {
19616
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19617
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_7797);
19618
+ return addHeapObject(ret);
19619
+ };
19606
19620
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
19607
19621
  // Cast intrinsic for `U64 -> Externref`.
19608
19622
  const ret = BigInt.asUintN(64, arg0);
19609
19623
  return addHeapObject(ret);
19610
19624
  };
19611
- imports.wbg.__wbindgen_cast_4a4bdde4030a89e7 = function(arg0, arg1) {
19612
- // Cast intrinsic for `Closure(Closure { dtor_idx: 398, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19613
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7562, __wasm_bindgen_func_elem_7563);
19614
- return addHeapObject(ret);
19615
- };
19616
- imports.wbg.__wbindgen_cast_994af091adc907b6 = function(arg0, arg1) {
19617
- // Cast intrinsic for `Closure(Closure { dtor_idx: 398, function: Function { arguments: [Externref], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19618
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7562, __wasm_bindgen_func_elem_9005);
19619
- return addHeapObject(ret);
19620
- };
19621
19625
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
19622
19626
  // Cast intrinsic for `I64 -> Externref`.
19623
19627
  const ret = arg0;
@@ -19633,9 +19637,9 @@ function __wbg_get_imports(memory) {
19633
19637
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
19634
19638
  return addHeapObject(ret);
19635
19639
  };
19636
- imports.wbg.__wbindgen_cast_ffe78050edfd1435 = function(arg0, arg1) {
19637
- // Cast intrinsic for `Closure(Closure { dtor_idx: 398, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19638
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7562, __wasm_bindgen_func_elem_9005);
19640
+ imports.wbg.__wbindgen_cast_f678a9aa90162cb1 = function(arg0, arg1) {
19641
+ // 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`.
19642
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7796, __wasm_bindgen_func_elem_9273);
19639
19643
  return addHeapObject(ret);
19640
19644
  };
19641
19645
  imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
@@ -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,