@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.
@@ -286,6 +286,10 @@ function runRayonThread(receiver) {
286
286
  wasm.runRayonThread(receiver);
287
287
  }
288
288
 
289
+ function install_panic_hook() {
290
+ wasm.install_panic_hook();
291
+ }
292
+
289
293
  /**
290
294
  * @param {URL} url
291
295
  * @param {number} num_threads
@@ -314,38 +318,6 @@ function addBorrowedObject(obj) {
314
318
  heap[--stack_pointer] = obj;
315
319
  return stack_pointer;
316
320
  }
317
- /**
318
- * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
319
- *
320
- * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
321
- * Each verifying key is paired with one or more sets of public inputs (instances).
322
- *
323
- * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
324
- * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
325
- * @param {Proof} proof The batch proof to verify
326
- * @returns {boolean} True if the batch proof is valid, false otherwise
327
- * @param {Array<any>} verifying_keys
328
- * @param {Array<any>} inputs
329
- * @param {Proof} proof
330
- * @returns {boolean}
331
- */
332
- function snarkVerifyBatch(verifying_keys, inputs, proof) {
333
- try {
334
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
335
- _assertClass(proof, Proof);
336
- wasm.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
337
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
338
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
339
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
340
- if (r2) {
341
- throw takeObject(r1);
342
- }
343
- return r0 !== 0;
344
- } finally {
345
- wasm.__wbindgen_add_to_stack_pointer(16);
346
- }
347
- }
348
-
349
321
  /**
350
322
  * Verify an execution. Executions with multiple transitions must have the program source code and
351
323
  * verifying keys of imported functions supplied from outside to correctly verify. Also, this does
@@ -394,11 +366,45 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
394
366
  }
395
367
  }
396
368
 
369
+ /**
370
+ * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
371
+ *
372
+ * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
373
+ * Each verifying key is paired with one or more sets of public inputs (instances).
374
+ *
375
+ * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
376
+ * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
377
+ * @param {Proof} proof The batch proof to verify
378
+ * @returns {boolean} True if the batch proof is valid, false otherwise
379
+ * @param {Array<any>} verifying_keys
380
+ * @param {Array<any>} inputs
381
+ * @param {Proof} proof
382
+ * @returns {boolean}
383
+ */
384
+ function snarkVerifyBatch(verifying_keys, inputs, proof) {
385
+ try {
386
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
387
+ _assertClass(proof, Proof);
388
+ wasm.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
389
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
390
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
391
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
392
+ if (r2) {
393
+ throw takeObject(r1);
394
+ }
395
+ return r0 !== 0;
396
+ } finally {
397
+ wasm.__wbindgen_add_to_stack_pointer(16);
398
+ }
399
+ }
400
+
397
401
  /**
398
402
  * Verify a SNARK proof against a verifying key and public inputs.
399
403
  *
400
404
  * 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.
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.
402
408
  *
403
409
  * @param {VerifyingKey} verifying_key The verifying key for the circuit
404
410
  * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
@@ -427,23 +433,6 @@ function snarkVerify(verifying_key, inputs, proof) {
427
433
  }
428
434
  }
429
435
 
430
- /**
431
- * Returns the maximum number of imports allowed in a program by the
432
- * snarkVM network implementation this SDK was built against.
433
- *
434
- * @returns {number} The maximum number of program imports.
435
- *
436
- * @example
437
- * import { getMaxProgramImports } from '@provablehq/sdk';
438
- *
439
- * const maxImports = getMaxProgramImports();
440
- * @returns {number}
441
- */
442
- function getMaxProgramImports() {
443
- const ret = wasm.getMaxProgramImports();
444
- return ret >>> 0;
445
- }
446
-
447
436
  /**
448
437
  * Set test consensus version heights for testing.
449
438
  *
@@ -453,7 +442,7 @@ function getMaxProgramImports() {
453
442
  * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
454
443
  *
455
444
  * Set the consensus version heights.
456
- * 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");
457
446
  * @param {string | null} [heights]
458
447
  * @returns {Array<any>}
459
448
  */
@@ -486,6 +475,23 @@ function stringToField(string) {
486
475
  }
487
476
  }
488
477
 
478
+ /**
479
+ * Returns the maximum number of imports allowed in a program by the
480
+ * snarkVM network implementation this SDK was built against.
481
+ *
482
+ * @returns {number} The maximum number of program imports.
483
+ *
484
+ * @example
485
+ * import { getMaxProgramImports } from '@provablehq/sdk';
486
+ *
487
+ * const maxImports = getMaxProgramImports();
488
+ * @returns {number}
489
+ */
490
+ function getMaxProgramImports() {
491
+ const ret = wasm.getMaxProgramImports();
492
+ return ret >>> 0;
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_7556(arg0, arg1) {
509
- wasm.__wasm_bindgen_func_elem_7556(arg0, arg1);
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_8995(arg0, arg1, arg2) {
513
- wasm.__wasm_bindgen_func_elem_8995(arg0, arg1, addHeapObject(arg2));
518
+ function __wasm_bindgen_func_elem_7797(arg0, arg1) {
519
+ wasm.__wasm_bindgen_func_elem_7797(arg0, arg1);
514
520
  }
515
521
 
516
- function __wasm_bindgen_func_elem_7828(arg0, arg1, arg2, arg3) {
517
- wasm.__wasm_bindgen_func_elem_7828(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));
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_7828(a, state0.b, arg0, arg1);
19346
+ return __wasm_bindgen_func_elem_8072(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
  };
@@ -19591,9 +19597,9 @@ function __wbg_get_imports(memory) {
19591
19597
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19592
19598
  return addHeapObject(ret);
19593
19599
  };
19594
- imports.wbg.__wbindgen_cast_19cdf6e41653eb6c = function(arg0, arg1) {
19595
- // Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [Externref], shim_idx: 398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19596
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_8995);
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);
19597
19603
  return addHeapObject(ret);
19598
19604
  };
19599
19605
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -19606,6 +19612,11 @@ function __wbg_get_imports(memory) {
19606
19612
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
19607
19613
  return addHeapObject(ret);
19608
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
+ };
19609
19620
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
19610
19621
  // Cast intrinsic for `U64 -> Externref`.
19611
19622
  const ret = BigInt.asUintN(64, arg0);
@@ -19621,19 +19632,14 @@ function __wbg_get_imports(memory) {
19621
19632
  const ret = arg0;
19622
19633
  return addHeapObject(ret);
19623
19634
  };
19624
- imports.wbg.__wbindgen_cast_dc45e30c78fa2793 = function(arg0, arg1) {
19625
- // Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19626
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_7556);
19627
- return addHeapObject(ret);
19628
- };
19629
19635
  imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
19630
19636
  // Cast intrinsic for `U128 -> Externref`.
19631
19637
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
19632
19638
  return addHeapObject(ret);
19633
19639
  };
19634
- imports.wbg.__wbindgen_cast_eb522c22a7f98ff2 = function(arg0, arg1) {
19635
- // Cast intrinsic for `Closure(Closure { dtor_idx: 397, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 398, 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_8995);
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);
19637
19643
  return addHeapObject(ret);
19638
19644
  };
19639
19645
  imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
@@ -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