@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.
@@ -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
@@ -362,39 +401,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
362
401
  }
363
402
  }
364
403
 
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.
370
- *
371
- * @param {VerifyingKey} verifying_key The verifying key for the circuit
372
- * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
373
- * @param {Proof} proof The proof to verify
374
- * @returns {boolean} True if the proof is valid, false otherwise
375
- * @param {VerifyingKey} verifying_key
376
- * @param {Array<any>} inputs
377
- * @param {Proof} proof
378
- * @returns {boolean}
379
- */
380
- function snarkVerify(verifying_key, inputs, proof) {
381
- try {
382
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
383
- _assertClass(verifying_key, VerifyingKey);
384
- _assertClass(proof, Proof);
385
- wasm.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
386
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
387
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
388
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
389
- if (r2) {
390
- throw takeObject(r1);
391
- }
392
- return r0 !== 0;
393
- } finally {
394
- wasm.__wbindgen_add_to_stack_pointer(16);
395
- }
396
- }
397
-
398
404
  /**
399
405
  * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
400
406
  *
@@ -427,28 +433,6 @@ function snarkVerifyBatch(verifying_keys, inputs, proof) {
427
433
  }
428
434
  }
429
435
 
430
- /**
431
- * @param {string} string
432
- * @returns {Field}
433
- */
434
- function stringToField(string) {
435
- try {
436
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
437
- const ptr0 = passStringToWasm0(string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
438
- const len0 = WASM_VECTOR_LEN;
439
- wasm.stringToField(retptr, ptr0, len0);
440
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
441
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
442
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
443
- if (r2) {
444
- throw takeObject(r1);
445
- }
446
- return Field.__wrap(r0);
447
- } finally {
448
- wasm.__wbindgen_add_to_stack_pointer(16);
449
- }
450
- }
451
-
452
436
  /**
453
437
  * Set test consensus version heights for testing.
454
438
  *
@@ -458,7 +442,7 @@ function stringToField(string) {
458
442
  * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
459
443
  *
460
444
  * Set the consensus version heights.
461
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
445
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
462
446
  * @param {string | null} [heights]
463
447
  * @returns {Array<any>}
464
448
  */
@@ -486,6 +470,28 @@ function getMaxProgramImports() {
486
470
  return ret >>> 0;
487
471
  }
488
472
 
473
+ /**
474
+ * @param {string} string
475
+ * @returns {Field}
476
+ */
477
+ function stringToField(string) {
478
+ try {
479
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
480
+ const ptr0 = passStringToWasm0(string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
481
+ const len0 = WASM_VECTOR_LEN;
482
+ wasm.stringToField(retptr, ptr0, len0);
483
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
484
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
485
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
486
+ if (r2) {
487
+ throw takeObject(r1);
488
+ }
489
+ return Field.__wrap(r0);
490
+ } finally {
491
+ wasm.__wbindgen_add_to_stack_pointer(16);
492
+ }
493
+ }
494
+
489
495
  function passArrayJsValueToWasm0(array, malloc) {
490
496
  const ptr = malloc(array.length * 4, 4) >>> 0;
491
497
  const mem = getDataViewMemory0();
@@ -505,16 +511,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
505
511
  }
506
512
  return result;
507
513
  }
508
- function __wasm_bindgen_func_elem_8995(arg0, arg1, arg2) {
509
- wasm.__wasm_bindgen_func_elem_8995(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));
510
516
  }
511
517
 
512
- function __wasm_bindgen_func_elem_7556(arg0, arg1) {
513
- wasm.__wasm_bindgen_func_elem_7556(arg0, arg1);
518
+ function __wasm_bindgen_func_elem_7790(arg0, arg1) {
519
+ wasm.__wasm_bindgen_func_elem_7790(arg0, arg1);
514
520
  }
515
521
 
516
- function __wasm_bindgen_func_elem_7829(arg0, arg1, arg2, arg3) {
517
- wasm.__wasm_bindgen_func_elem_7829(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));
518
524
  }
519
525
 
520
526
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -4897,7 +4903,7 @@ class Group {
4897
4903
  * @returns {Boolean}
4898
4904
  */
4899
4905
  toBooleanLossy() {
4900
- const ret = wasm.address_toBooleanLossy(this.__wbg_ptr);
4906
+ const ret = wasm.group_toBooleanLossy(this.__wbg_ptr);
4901
4907
  return Boolean.__wrap(ret);
4902
4908
  }
4903
4909
  /**
@@ -15799,7 +15805,7 @@ class U16 {
15799
15805
  * @returns {Array<any>}
15800
15806
  */
15801
15807
  toBitsLe() {
15802
- const ret = wasm.i16_toBitsLe(this.__wbg_ptr);
15808
+ const ret = wasm.u16_toBitsLe(this.__wbg_ptr);
15803
15809
  return takeObject(ret);
15804
15810
  }
15805
15811
  /**
@@ -15936,7 +15942,7 @@ class U16 {
15936
15942
  toI8Lossy() {
15937
15943
  try {
15938
15944
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15939
- wasm.i16_toI8Lossy(retptr, this.__wbg_ptr);
15945
+ wasm.u16_toI8Lossy(retptr, this.__wbg_ptr);
15940
15946
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
15941
15947
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
15942
15948
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -15955,7 +15961,7 @@ class U16 {
15955
15961
  toU8Lossy() {
15956
15962
  try {
15957
15963
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15958
- wasm.i16_toI8Lossy(retptr, this.__wbg_ptr);
15964
+ wasm.u16_toI8Lossy(retptr, this.__wbg_ptr);
15959
15965
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
15960
15966
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
15961
15967
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -15995,7 +16001,7 @@ class U16 {
15995
16001
  toI16Lossy() {
15996
16002
  try {
15997
16003
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15998
- wasm.i16_toI16Lossy(retptr, this.__wbg_ptr);
16004
+ wasm.u16_toI16Lossy(retptr, this.__wbg_ptr);
15999
16005
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16000
16006
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16001
16007
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16014,7 +16020,7 @@ class U16 {
16014
16020
  toI32Lossy() {
16015
16021
  try {
16016
16022
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16017
- wasm.i16_toI32Lossy(retptr, this.__wbg_ptr);
16023
+ wasm.u16_toI32Lossy(retptr, this.__wbg_ptr);
16018
16024
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16019
16025
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16020
16026
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16033,7 +16039,7 @@ class U16 {
16033
16039
  toI64Lossy() {
16034
16040
  try {
16035
16041
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16036
- wasm.i16_toI64Lossy(retptr, this.__wbg_ptr);
16042
+ wasm.u16_toI64Lossy(retptr, this.__wbg_ptr);
16037
16043
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16038
16044
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16039
16045
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16060,7 +16066,7 @@ class U16 {
16060
16066
  toU16Lossy() {
16061
16067
  try {
16062
16068
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16063
- wasm.i16_toI16Lossy(retptr, this.__wbg_ptr);
16069
+ wasm.u16_toI16Lossy(retptr, this.__wbg_ptr);
16064
16070
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16065
16071
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16066
16072
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16079,7 +16085,7 @@ class U16 {
16079
16085
  toU32Lossy() {
16080
16086
  try {
16081
16087
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16082
- wasm.i16_toI32Lossy(retptr, this.__wbg_ptr);
16088
+ wasm.u16_toI32Lossy(retptr, this.__wbg_ptr);
16083
16089
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16084
16090
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16085
16091
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16098,7 +16104,7 @@ class U16 {
16098
16104
  toU64Lossy() {
16099
16105
  try {
16100
16106
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16101
- wasm.i16_toI64Lossy(retptr, this.__wbg_ptr);
16107
+ wasm.u16_toI64Lossy(retptr, this.__wbg_ptr);
16102
16108
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16103
16109
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16104
16110
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16138,7 +16144,7 @@ class U16 {
16138
16144
  toI128Lossy() {
16139
16145
  try {
16140
16146
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16141
- wasm.i16_toI128Lossy(retptr, this.__wbg_ptr);
16147
+ wasm.u16_toI128Lossy(retptr, this.__wbg_ptr);
16142
16148
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16143
16149
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16144
16150
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16157,7 +16163,7 @@ class U16 {
16157
16163
  toU128Lossy() {
16158
16164
  try {
16159
16165
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16160
- wasm.i16_toI128Lossy(retptr, this.__wbg_ptr);
16166
+ wasm.u16_toI128Lossy(retptr, this.__wbg_ptr);
16161
16167
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16162
16168
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16163
16169
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16184,7 +16190,7 @@ class U16 {
16184
16190
  * @returns {Boolean}
16185
16191
  */
16186
16192
  toBooleanLossy() {
16187
- const ret = wasm.i16_toBooleanLossy(this.__wbg_ptr);
16193
+ const ret = wasm.u16_toBooleanLossy(this.__wbg_ptr);
16188
16194
  return Boolean.__wrap(ret);
16189
16195
  }
16190
16196
  /**
@@ -16260,7 +16266,7 @@ class U16 {
16260
16266
  toField() {
16261
16267
  try {
16262
16268
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16263
- wasm.i16_toField(retptr, this.__wbg_ptr);
16269
+ wasm.u16_toField(retptr, this.__wbg_ptr);
16264
16270
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
16265
16271
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
16266
16272
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -16277,7 +16283,7 @@ class U16 {
16277
16283
  * @returns {Scalar}
16278
16284
  */
16279
16285
  toScalar() {
16280
- const ret = wasm.i16_toScalar(this.__wbg_ptr);
16286
+ const ret = wasm.u16_toScalar(this.__wbg_ptr);
16281
16287
  return Scalar.__wrap(ret);
16282
16288
  }
16283
16289
  /**
@@ -17464,7 +17470,7 @@ class U8 {
17464
17470
  * @returns {Array<any>}
17465
17471
  */
17466
17472
  toBitsLe() {
17467
- const ret = wasm.i8_toBitsLe(this.__wbg_ptr);
17473
+ const ret = wasm.u8_toBitsLe(this.__wbg_ptr);
17468
17474
  return takeObject(ret);
17469
17475
  }
17470
17476
  /**
@@ -17601,7 +17607,7 @@ class U8 {
17601
17607
  toI8Lossy() {
17602
17608
  try {
17603
17609
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17604
- wasm.i8_toI8Lossy(retptr, this.__wbg_ptr);
17610
+ wasm.u8_toI8Lossy(retptr, this.__wbg_ptr);
17605
17611
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17606
17612
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17607
17613
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17620,7 +17626,7 @@ class U8 {
17620
17626
  toU8Lossy() {
17621
17627
  try {
17622
17628
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17623
- wasm.i8_toI8Lossy(retptr, this.__wbg_ptr);
17629
+ wasm.u8_toI8Lossy(retptr, this.__wbg_ptr);
17624
17630
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17625
17631
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17626
17632
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17660,7 +17666,7 @@ class U8 {
17660
17666
  toI16Lossy() {
17661
17667
  try {
17662
17668
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17663
- wasm.i8_toI16Lossy(retptr, this.__wbg_ptr);
17669
+ wasm.u8_toI16Lossy(retptr, this.__wbg_ptr);
17664
17670
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17665
17671
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17666
17672
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17679,7 +17685,7 @@ class U8 {
17679
17685
  toI32Lossy() {
17680
17686
  try {
17681
17687
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17682
- wasm.i8_toI32Lossy(retptr, this.__wbg_ptr);
17688
+ wasm.u8_toI32Lossy(retptr, this.__wbg_ptr);
17683
17689
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17684
17690
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17685
17691
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17698,7 +17704,7 @@ class U8 {
17698
17704
  toI64Lossy() {
17699
17705
  try {
17700
17706
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17701
- wasm.i8_toI64Lossy(retptr, this.__wbg_ptr);
17707
+ wasm.u8_toI64Lossy(retptr, this.__wbg_ptr);
17702
17708
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17703
17709
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17704
17710
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17725,7 +17731,7 @@ class U8 {
17725
17731
  toU16Lossy() {
17726
17732
  try {
17727
17733
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17728
- wasm.i8_toI16Lossy(retptr, this.__wbg_ptr);
17734
+ wasm.u8_toI16Lossy(retptr, this.__wbg_ptr);
17729
17735
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17730
17736
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17731
17737
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17744,7 +17750,7 @@ class U8 {
17744
17750
  toU32Lossy() {
17745
17751
  try {
17746
17752
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17747
- wasm.i8_toI32Lossy(retptr, this.__wbg_ptr);
17753
+ wasm.u8_toI32Lossy(retptr, this.__wbg_ptr);
17748
17754
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17749
17755
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17750
17756
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17763,7 +17769,7 @@ class U8 {
17763
17769
  toU64Lossy() {
17764
17770
  try {
17765
17771
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17766
- wasm.i8_toI64Lossy(retptr, this.__wbg_ptr);
17772
+ wasm.u8_toI64Lossy(retptr, this.__wbg_ptr);
17767
17773
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17768
17774
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17769
17775
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17803,7 +17809,7 @@ class U8 {
17803
17809
  toI128Lossy() {
17804
17810
  try {
17805
17811
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17806
- wasm.i8_toI128Lossy(retptr, this.__wbg_ptr);
17812
+ wasm.u8_toI128Lossy(retptr, this.__wbg_ptr);
17807
17813
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17808
17814
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17809
17815
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17822,7 +17828,7 @@ class U8 {
17822
17828
  toU128Lossy() {
17823
17829
  try {
17824
17830
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17825
- wasm.i8_toI128Lossy(retptr, this.__wbg_ptr);
17831
+ wasm.u8_toI128Lossy(retptr, this.__wbg_ptr);
17826
17832
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17827
17833
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17828
17834
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17849,7 +17855,7 @@ class U8 {
17849
17855
  * @returns {Boolean}
17850
17856
  */
17851
17857
  toBooleanLossy() {
17852
- const ret = wasm.i8_toBooleanLossy(this.__wbg_ptr);
17858
+ const ret = wasm.u8_toBooleanLossy(this.__wbg_ptr);
17853
17859
  return Boolean.__wrap(ret);
17854
17860
  }
17855
17861
  /**
@@ -17925,7 +17931,7 @@ class U8 {
17925
17931
  toField() {
17926
17932
  try {
17927
17933
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
17928
- wasm.i8_toField(retptr, this.__wbg_ptr);
17934
+ wasm.u8_toField(retptr, this.__wbg_ptr);
17929
17935
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
17930
17936
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
17931
17937
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -17942,7 +17948,7 @@ class U8 {
17942
17948
  * @returns {Scalar}
17943
17949
  */
17944
17950
  toScalar() {
17945
- const ret = wasm.i8_toScalar(this.__wbg_ptr);
17951
+ const ret = wasm.u8_toScalar(this.__wbg_ptr);
17946
17952
  return Scalar.__wrap(ret);
17947
17953
  }
17948
17954
  /**
@@ -19319,7 +19325,7 @@ function __wbg_get_imports(memory) {
19319
19325
  const ret = getObject(arg0).length;
19320
19326
  return ret;
19321
19327
  };
19322
- imports.wbg.__wbg_log_873fe7a781ebc826 = function(arg0, arg1) {
19328
+ imports.wbg.__wbg_log_8a97ac3e144f6f80 = function(arg0, arg1) {
19323
19329
  console.log(getStringFromWasm0(arg0, arg1));
19324
19330
  };
19325
19331
  imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
@@ -19337,7 +19343,7 @@ function __wbg_get_imports(memory) {
19337
19343
  const a = state0.a;
19338
19344
  state0.a = 0;
19339
19345
  try {
19340
- return __wasm_bindgen_func_elem_7829(a, state0.b, arg0, arg1);
19346
+ return __wasm_bindgen_func_elem_8065(a, state0.b, arg0, arg1);
19341
19347
  } finally {
19342
19348
  state0.a = a;
19343
19349
  }
@@ -19509,7 +19515,7 @@ function __wbg_get_imports(memory) {
19509
19515
  const ret = Signature.__wrap(arg0);
19510
19516
  return addHeapObject(ret);
19511
19517
  };
19512
- imports.wbg.__wbg_spawnWorker_087de831e4bfd369 = function(arg0, arg1, arg2, arg3) {
19518
+ imports.wbg.__wbg_spawnWorker_81761455e1fee75f = function(arg0, arg1, arg2, arg3) {
19513
19519
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
19514
19520
  return addHeapObject(ret);
19515
19521
  };
@@ -19606,9 +19612,14 @@ function __wbg_get_imports(memory) {
19606
19612
  const ret = BigInt.asUintN(64, arg0);
19607
19613
  return addHeapObject(ret);
19608
19614
  };
19609
- imports.wbg.__wbindgen_cast_805ada4c4be963fc = function(arg0, arg1) {
19610
- // Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19611
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_8995);
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);
19612
19623
  return addHeapObject(ret);
19613
19624
  };
19614
19625
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
@@ -19616,9 +19627,9 @@ function __wbg_get_imports(memory) {
19616
19627
  const ret = arg0;
19617
19628
  return addHeapObject(ret);
19618
19629
  };
19619
- imports.wbg.__wbindgen_cast_c048d24de4cf58bb = function(arg0, arg1) {
19620
- // Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [Externref], shim_idx: 396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19621
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_8995);
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);
19622
19633
  return addHeapObject(ret);
19623
19634
  };
19624
19635
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
@@ -19631,11 +19642,6 @@ function __wbg_get_imports(memory) {
19631
19642
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
19632
19643
  return addHeapObject(ret);
19633
19644
  };
19634
- imports.wbg.__wbindgen_cast_f10277ab8e6ee562 = function(arg0, arg1) {
19635
- // Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19636
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_7556);
19637
- return addHeapObject(ret);
19638
- };
19639
19645
  imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
19640
19646
  const val = `onmessage = function (ev) {
19641
19647
  let [ia, index, value] = ev.data;
@@ -19657,7 +19663,7 @@ function __wbg_get_imports(memory) {
19657
19663
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
19658
19664
  takeObject(arg0);
19659
19665
  };
19660
- 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});
19661
19667
 
19662
19668
  return imports;
19663
19669
  }
@@ -19734,5 +19740,5 @@ async function initThreadPool(threads) {
19734
19740
  await initThreadPool$1(new URL("worker.js", import.meta.url), threads);
19735
19741
  }
19736
19742
 
19737
- export { Address, Authorization, BHP1024, BHP256, BHP512, BHP768, Boolean, CallbackQuery, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, Execution, ExecutionRequest, ExecutionResponse, Field, GraphKey, Group, I128, I16, I32, I64, I8, KeyPair, Metadata, OfflineQuery, Pedersen128, Pedersen64, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramImports, ProgramManager, Proof, ProvingKey, ProvingRequest, QueryOption, RecordCiphertext, RecordPlaintext, Scalar, Signature, Transaction, Transition, U128, U16, U32, U64, U8, Value, VerifyingKey, ViewKey, getMaxProgramImports, getOrInitConsensusVersionTestHeights, initSync, initThreadPool, runRayonThread, setWasmLogLevel, snarkVerify, snarkVerifyBatch, stringToField, verifyFunctionExecution };
19743
+ export { Address, Authorization, BHP1024, BHP256, BHP512, BHP768, Boolean, CallbackQuery, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, Execution, ExecutionRequest, ExecutionResponse, Field, GraphKey, Group, I128, I16, I32, I64, I8, KeyPair, Metadata, OfflineQuery, Pedersen128, Pedersen64, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramImports, ProgramManager, Proof, ProvingKey, ProvingRequest, QueryOption, RecordCiphertext, RecordPlaintext, Scalar, Signature, Transaction, Transition, U128, U16, U32, U64, U8, Value, VerifyingKey, ViewKey, getMaxProgramImports, getOrInitConsensusVersionTestHeights, initSync, initThreadPool, install_panic_hook, runRayonThread, setWasmLogLevel, snarkVerify, snarkVerifyBatch, stringToField, verifyFunctionExecution };
19738
19744
  //# sourceMappingURL=index.js.map