@provablehq/wasm 0.10.6-rc.1 → 0.11.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.
@@ -302,6 +302,17 @@ function initThreadPool(url, num_threads) {
302
302
  return takeObject(ret);
303
303
  }
304
304
 
305
+ /**
306
+ * Set the WASM log level from JS. Called automatically by the SDK's
307
+ * `setLogLevel(level)` to keep TS and WASM logging in sync.
308
+ * Levels: 0=silent, 1=error, 2=warn, 3=info (default), 4=debug.
309
+ * Values above 4 are clamped to debug.
310
+ * @param {number} level
311
+ */
312
+ function setWasmLogLevel(level) {
313
+ wasm$1.setWasmLogLevel(level);
314
+ }
315
+
305
316
  let stack_pointer = 128;
306
317
 
307
318
  function addBorrowedObject(obj) {
@@ -422,6 +433,26 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
422
433
  }
423
434
  }
424
435
 
436
+ /**
437
+ * Set test consensus version heights for testing.
438
+ *
439
+ * @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
440
+ *
441
+ * @example
442
+ * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
443
+ *
444
+ * Set the consensus version heights.
445
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
446
+ * @param {string | null} [heights]
447
+ * @returns {Array<any>}
448
+ */
449
+ function getOrInitConsensusVersionTestHeights(heights) {
450
+ var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
451
+ var len0 = WASM_VECTOR_LEN;
452
+ const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
453
+ return takeObject(ret);
454
+ }
455
+
425
456
  /**
426
457
  * @param {string} string
427
458
  * @returns {Field}
@@ -444,26 +475,6 @@ function stringToField(string) {
444
475
  }
445
476
  }
446
477
 
447
- /**
448
- * Set test consensus version heights for testing.
449
- *
450
- * @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
451
- *
452
- * @example
453
- * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
454
- *
455
- * Set the consensus version heights.
456
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13");
457
- * @param {string | null} [heights]
458
- * @returns {Array<any>}
459
- */
460
- function getOrInitConsensusVersionTestHeights(heights) {
461
- var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
462
- var len0 = WASM_VECTOR_LEN;
463
- const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
464
- return takeObject(ret);
465
- }
466
-
467
478
  function passArrayJsValueToWasm0(array, malloc) {
468
479
  const ptr = malloc(array.length * 4, 4) >>> 0;
469
480
  const mem = getDataViewMemory0();
@@ -483,16 +494,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
483
494
  }
484
495
  return result;
485
496
  }
486
- function __wasm_bindgen_func_elem_8618(arg0, arg1, arg2) {
487
- wasm$1.__wasm_bindgen_func_elem_8618(arg0, arg1, addHeapObject(arg2));
497
+ function __wasm_bindgen_func_elem_7372(arg0, arg1) {
498
+ wasm$1.__wasm_bindgen_func_elem_7372(arg0, arg1);
488
499
  }
489
500
 
490
- function __wasm_bindgen_func_elem_7257(arg0, arg1) {
491
- wasm$1.__wasm_bindgen_func_elem_7257(arg0, arg1);
501
+ function __wasm_bindgen_func_elem_8740(arg0, arg1, arg2) {
502
+ wasm$1.__wasm_bindgen_func_elem_8740(arg0, arg1, addHeapObject(arg2));
492
503
  }
493
504
 
494
- function __wasm_bindgen_func_elem_7529(arg0, arg1, arg2, arg3) {
495
- wasm$1.__wasm_bindgen_func_elem_7529(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
505
+ function __wasm_bindgen_func_elem_7644(arg0, arg1, arg2, arg3) {
506
+ wasm$1.__wasm_bindgen_func_elem_7644(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
496
507
  }
497
508
 
498
509
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -12397,6 +12408,17 @@ const ProvingRequestFinalization = (typeof FinalizationRegistry === 'undefined')
12397
12408
  : new FinalizationRegistry(ptr => wasm$1.__wbg_provingrequest_free(ptr >>> 0, 1));
12398
12409
  /**
12399
12410
  * Represents a proving request to a prover.
12411
+ *
12412
+ * Carries one of two variants:
12413
+ * - `Authorization` — a fully-constructed snarkVM `Authorization` (plus optional
12414
+ * fee authorization). Submitted to `/prove/authorization` (encrypted-only).
12415
+ * - `Request` — a single signed snarkVM `Request` (plus optional fee `Request`)
12416
+ * that the prover authorizes server-side. Submitted to `/prove/request`
12417
+ * (encrypted-only).
12418
+ *
12419
+ * Use {@link ProvingRequest#kind} when handling a `ProvingRequest` of unknown
12420
+ * variant (e.g. after deserialization). Variant-specific accessors throw if
12421
+ * called on the wrong variant.
12400
12422
  */
12401
12423
  class ProvingRequest {
12402
12424
 
@@ -12420,9 +12442,23 @@ class ProvingRequest {
12420
12442
  wasm$1.__wbg_provingrequest_free(ptr, 0);
12421
12443
  }
12422
12444
  /**
12423
- * Creates a ProvingRequest from a string representation.
12445
+ * Returns the signed fee `ExecutionRequest` in the Request variant, or
12446
+ * `undefined` when no fee request is set or this is an Authorization variant.
12447
+ * @returns {ExecutionRequest | undefined}
12448
+ */
12449
+ feeRequest() {
12450
+ const ret = wasm$1.provingrequest_feeRequest(this.__wbg_ptr);
12451
+ return ret === 0 ? undefined : ExecutionRequest.__wrap(ret);
12452
+ }
12453
+ /**
12454
+ * Creates a `ProvingRequest` from a JSON string representation.
12424
12455
  *
12425
- * @param {Uint8Array} request String representation of the ProvingRequest.
12456
+ * The variant is determined automatically by the JSON shape:
12457
+ * `{ authorization, ... }` → Authorization variant; `{ request, ... }` →
12458
+ * Request variant. Use {@link ProvingRequest#kind} to inspect the
12459
+ * resulting variant.
12460
+ *
12461
+ * @param {string} request JSON string representation of the ProvingRequest.
12426
12462
  * @param {string} request
12427
12463
  * @returns {ProvingRequest}
12428
12464
  */
@@ -12444,7 +12480,10 @@ class ProvingRequest {
12444
12480
  }
12445
12481
  }
12446
12482
  /**
12447
- * Creates a left-endian byte representation of the ProvingRequest.
12483
+ * Creates a left-endian byte representation of the ProvingRequest,
12484
+ * dispatching on the variant. The bytes are wire-compatible with the
12485
+ * matching DPS route (`/prove[/encrypted]` for Authorization,
12486
+ * `/prove/request` for Request).
12448
12487
  * @returns {Uint8Array}
12449
12488
  */
12450
12489
  toBytesLe() {
@@ -12463,17 +12502,64 @@ class ProvingRequest {
12463
12502
  }
12464
12503
  }
12465
12504
  /**
12466
- * Get the Authorization of the main function in the ProvingRequest.
12505
+ * Creates a new Request-variant `ProvingRequest` from a single signed
12506
+ * `ExecutionRequest` and an optional signed fee `ExecutionRequest`.
12507
+ *
12508
+ * The Request variant is processed by the DPS at the `/prove/request`
12509
+ * endpoint, which is encrypted-only. The server runs
12510
+ * `Process::authorize_request` to turn each `Request` into an
12511
+ * `Authorization` before proving.
12512
+ *
12513
+ * Only valid for single-public-request executions. Layered / nested
12514
+ * calls are not supported by `/prove/request` at this time.
12515
+ *
12516
+ * @param {ExecutionRequest} request The signed request for the function.
12517
+ * @param {ExecutionRequest} fee_request Optional signed request for the fee function. When omitted, the prover generates and pays the fee.
12518
+ * @param {boolean} broadcast Flag that indicates whether the remote proving service should attempt to submit the transaction on the caller's behalf.
12519
+ * @param {ExecutionRequest} request
12520
+ * @param {ExecutionRequest | null | undefined} fee_request
12521
+ * @param {boolean} broadcast
12522
+ * @returns {ProvingRequest}
12523
+ */
12524
+ static fromRequest(request, fee_request, broadcast) {
12525
+ _assertClass(request, ExecutionRequest);
12526
+ var ptr0 = request.__destroy_into_raw();
12527
+ let ptr1 = 0;
12528
+ if (!isLikeNone(fee_request)) {
12529
+ _assertClass(fee_request, ExecutionRequest);
12530
+ ptr1 = fee_request.__destroy_into_raw();
12531
+ }
12532
+ const ret = wasm$1.provingrequest_fromRequest(ptr0, ptr1, broadcast);
12533
+ return ProvingRequest.__wrap(ret);
12534
+ }
12535
+ /**
12536
+ * Returns the Authorization of the main function in the ProvingRequest.
12537
+ *
12538
+ * @throws If this `ProvingRequest` is a Request variant. Check
12539
+ * {@link ProvingRequest#kind} or use {@link ProvingRequest#request} instead.
12467
12540
  * @returns {Authorization}
12468
12541
  */
12469
12542
  authorization() {
12470
- const ret = wasm$1.provingrequest_authorization(this.__wbg_ptr);
12471
- return Authorization.__wrap(ret);
12543
+ try {
12544
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
12545
+ wasm$1.provingrequest_authorization(retptr, this.__wbg_ptr);
12546
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12547
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
12548
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
12549
+ if (r2) {
12550
+ throw takeObject(r1);
12551
+ }
12552
+ return Authorization.__wrap(r0);
12553
+ } finally {
12554
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
12555
+ }
12472
12556
  }
12473
12557
  /**
12474
- * Creates a ProvingRequest from a left-endian byte representation of the ProvingRequest.
12558
+ * Reads bytes as an Authorization-variant `ProvingRequest`. For the
12559
+ * Request variant, use {@link ProvingRequest.fromBytesLeRequest}
12560
+ * explicitly — byte layout carries no variant discriminator.
12475
12561
  *
12476
- * @param {Uint8Array} bytes Left-endian bytes representing the proving request.
12562
+ * @param {Uint8Array} bytes Left-endian bytes representing an Authorization-variant proving request.
12477
12563
  * @param {Uint8Array} bytes
12478
12564
  * @returns {ProvingRequest}
12479
12565
  */
@@ -12493,7 +12579,8 @@ class ProvingRequest {
12493
12579
  }
12494
12580
  }
12495
12581
  /**
12496
- * Get the fee Authorization in the ProvingRequest.
12582
+ * Returns the fee Authorization in the ProvingRequest, or `undefined`
12583
+ * when no fee is set or this is a Request variant.
12497
12584
  * @returns {Authorization | undefined}
12498
12585
  */
12499
12586
  feeAuthorization() {
@@ -12501,7 +12588,32 @@ class ProvingRequest {
12501
12588
  return ret === 0 ? undefined : Authorization.__wrap(ret);
12502
12589
  }
12503
12590
  /**
12504
- * Creates a new ProvingRequest from a function Authorization and an optional fee Authorization.
12591
+ * Reads bytes as a Request-variant `ProvingRequest`. Byte layout is
12592
+ * disjoint from the Authorization variant; callers must pick the right
12593
+ * reader for the bytes they hold.
12594
+ *
12595
+ * @param {Uint8Array} bytes Left-endian bytes representing a Request-variant proving request.
12596
+ * @param {Uint8Array} bytes
12597
+ * @returns {ProvingRequest}
12598
+ */
12599
+ static fromBytesLeRequest(bytes) {
12600
+ try {
12601
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
12602
+ wasm$1.provingrequest_fromBytesLeRequest(retptr, addHeapObject(bytes));
12603
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12604
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
12605
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
12606
+ if (r2) {
12607
+ throw takeObject(r1);
12608
+ }
12609
+ return ProvingRequest.__wrap(r0);
12610
+ } finally {
12611
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
12612
+ }
12613
+ }
12614
+ /**
12615
+ * Creates a new Authorization-variant `ProvingRequest` from a function
12616
+ * `Authorization` and an optional fee `Authorization`.
12505
12617
  *
12506
12618
  * @param {Authorization} authorization An Authorization for a function.
12507
12619
  * @param {Authorization} fee_authorization The authorization for the `credits.aleo/fee_public` or `credits.aleo/fee_private` function that pays the fee for the execution of the main function.
@@ -12522,6 +12634,28 @@ class ProvingRequest {
12522
12634
  const ret = wasm$1.provingrequest_new(ptr0, ptr1, broadcast);
12523
12635
  return ProvingRequest.__wrap(ret);
12524
12636
  }
12637
+ /**
12638
+ * Returns the variant of this `ProvingRequest`: `"authorization"` or
12639
+ * `"request"`. Useful when handling a `ProvingRequest` whose variant
12640
+ * was determined at deserialization time.
12641
+ * @returns {string}
12642
+ */
12643
+ kind() {
12644
+ let deferred1_0;
12645
+ let deferred1_1;
12646
+ try {
12647
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
12648
+ wasm$1.provingrequest_kind(retptr, this.__wbg_ptr);
12649
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12650
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
12651
+ deferred1_0 = r0;
12652
+ deferred1_1 = r1;
12653
+ return getStringFromWasm0(r0, r1);
12654
+ } finally {
12655
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
12656
+ wasm$1.__wbindgen_export4(deferred1_0, deferred1_1, 1);
12657
+ }
12658
+ }
12525
12659
  /**
12526
12660
  * Check if a ProvingRequest is the same as another ProvingRequest.
12527
12661
  * @param {ProvingRequest} other
@@ -12532,6 +12666,29 @@ class ProvingRequest {
12532
12666
  const ret = wasm$1.provingrequest_equals(this.__wbg_ptr, other.__wbg_ptr);
12533
12667
  return ret !== 0;
12534
12668
  }
12669
+ /**
12670
+ * Returns the signed `ExecutionRequest` carried by the Request variant.
12671
+ *
12672
+ * @throws If this `ProvingRequest` is an Authorization variant. Check
12673
+ * {@link ProvingRequest#kind} or use {@link ProvingRequest#authorization}
12674
+ * instead.
12675
+ * @returns {ExecutionRequest}
12676
+ */
12677
+ request() {
12678
+ try {
12679
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
12680
+ wasm$1.provingrequest_request(retptr, this.__wbg_ptr);
12681
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12682
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
12683
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
12684
+ if (r2) {
12685
+ throw takeObject(r1);
12686
+ }
12687
+ return ExecutionRequest.__wrap(r0);
12688
+ } finally {
12689
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
12690
+ }
12691
+ }
12535
12692
  /**
12536
12693
  * Get the broadcast flag set in the ProvingRequest.
12537
12694
  * @returns {boolean}
@@ -12541,7 +12698,9 @@ class ProvingRequest {
12541
12698
  return ret !== 0;
12542
12699
  }
12543
12700
  /**
12544
- * Creates a string representation of the ProvingRequest.
12701
+ * Creates a JSON string representation of the ProvingRequest.
12702
+ * The shape carries enough information to recover the variant via
12703
+ * {@link ProvingRequest.fromString}.
12545
12704
  * @returns {string}
12546
12705
  */
12547
12706
  toString() {
@@ -18864,10 +19023,6 @@ function __wbg_get_imports(memory) {
18864
19023
  const ret = typeof(val) === 'object' && val !== null;
18865
19024
  return ret;
18866
19025
  };
18867
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
18868
- const ret = typeof(getObject(arg0)) === 'string';
18869
- return ret;
18870
- };
18871
19026
  imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
18872
19027
  const ret = getObject(arg0) === undefined;
18873
19028
  return ret;
@@ -18949,10 +19104,6 @@ function __wbg_get_imports(memory) {
18949
19104
  const ret = clearTimeout(takeObject(arg0));
18950
19105
  return addHeapObject(ret);
18951
19106
  };
18952
- imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
18953
- const ret = getObject(arg0).crypto;
18954
- return addHeapObject(ret);
18955
- };
18956
19107
  imports.wbg.__wbg_data_ee4306d069f24f2d = function(arg0) {
18957
19108
  const ret = getObject(arg0).data;
18958
19109
  return addHeapObject(ret);
@@ -18996,8 +19147,8 @@ function __wbg_get_imports(memory) {
18996
19147
  const ret = Array.from(getObject(arg0));
18997
19148
  return addHeapObject(ret);
18998
19149
  };
18999
- imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
19000
- getObject(arg0).getRandomValues(getObject(arg1));
19150
+ imports.wbg.__wbg_getRandomValues_90e56bff4f3b89fb = function() { return handleError(function (arg0) {
19151
+ globalThis.crypto.getRandomValues(getObject(arg0));
19001
19152
  }, arguments) };
19002
19153
  imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
19003
19154
  const ret = getObject(arg0)[arg1 >>> 0];
@@ -19087,13 +19238,9 @@ function __wbg_get_imports(memory) {
19087
19238
  const ret = getObject(arg0).length;
19088
19239
  return ret;
19089
19240
  };
19090
- imports.wbg.__wbg_log_2c81ec274d38c9bb = function(arg0, arg1) {
19241
+ imports.wbg.__wbg_log_e77f2654b14580d9 = function(arg0, arg1) {
19091
19242
  console.log(getStringFromWasm0(arg0, arg1));
19092
19243
  };
19093
- imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
19094
- const ret = getObject(arg0).msCrypto;
19095
- return addHeapObject(ret);
19096
- };
19097
19244
  imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
19098
19245
  const ret = new Object();
19099
19246
  return addHeapObject(ret);
@@ -19109,7 +19256,7 @@ function __wbg_get_imports(memory) {
19109
19256
  const a = state0.a;
19110
19257
  state0.a = 0;
19111
19258
  try {
19112
- return __wasm_bindgen_func_elem_7529(a, state0.b, arg0, arg1);
19259
+ return __wasm_bindgen_func_elem_7644(a, state0.b, arg0, arg1);
19113
19260
  } finally {
19114
19261
  state0.a = a;
19115
19262
  }
@@ -19176,10 +19323,6 @@ function __wbg_get_imports(memory) {
19176
19323
  const ret = getObject(arg0).next;
19177
19324
  return addHeapObject(ret);
19178
19325
  };
19179
- imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
19180
- const ret = getObject(arg0).node;
19181
- return addHeapObject(ret);
19182
- };
19183
19326
  imports.wbg.__wbg_of_3192b3b018b8f660 = function(arg0, arg1, arg2) {
19184
19327
  const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
19185
19328
  return addHeapObject(ret);
@@ -19197,10 +19340,6 @@ function __wbg_get_imports(memory) {
19197
19340
  imports.wbg.__wbg_postMessage_f34857ca078c8536 = function() { return handleError(function (arg0, arg1) {
19198
19341
  getObject(arg0).postMessage(getObject(arg1));
19199
19342
  }, arguments) };
19200
- imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
19201
- const ret = getObject(arg0).process;
19202
- return addHeapObject(ret);
19203
- };
19204
19343
  imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
19205
19344
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
19206
19345
  };
@@ -19219,9 +19358,6 @@ function __wbg_get_imports(memory) {
19219
19358
  imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
19220
19359
  queueMicrotask(getObject(arg0));
19221
19360
  };
19222
- imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
19223
- getObject(arg0).randomFillSync(takeObject(arg1));
19224
- }, arguments) };
19225
19361
  imports.wbg.__wbg_recordciphertext_new = function(arg0) {
19226
19362
  const ret = RecordCiphertext.__wrap(arg0);
19227
19363
  return addHeapObject(ret);
@@ -19234,10 +19370,6 @@ function __wbg_get_imports(memory) {
19234
19370
  const ret = RecordPlaintext.__wrap(arg0);
19235
19371
  return addHeapObject(ret);
19236
19372
  };
19237
- imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
19238
- const ret = module.require;
19239
- return addHeapObject(ret);
19240
- }, arguments) };
19241
19373
  imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
19242
19374
  const ret = Promise.resolve(getObject(arg0));
19243
19375
  return addHeapObject(ret);
@@ -19296,7 +19428,7 @@ function __wbg_get_imports(memory) {
19296
19428
  const ret = Signature.__wrap(arg0);
19297
19429
  return addHeapObject(ret);
19298
19430
  };
19299
- imports.wbg.__wbg_spawnWorker_c5c00ae0c7b9fe56 = function(arg0, arg1, arg2, arg3) {
19431
+ imports.wbg.__wbg_spawnWorker_77887968658d2179 = function(arg0, arg1, arg2, arg3) {
19300
19432
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
19301
19433
  return addHeapObject(ret);
19302
19434
  };
@@ -19335,10 +19467,6 @@ function __wbg_get_imports(memory) {
19335
19467
  const ret = JSON.stringify(getObject(arg0));
19336
19468
  return addHeapObject(ret);
19337
19469
  }, arguments) };
19338
- imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
19339
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
19340
- return addHeapObject(ret);
19341
- };
19342
19470
  imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
19343
19471
  const ret = getObject(arg0).then(getObject(arg1));
19344
19472
  return addHeapObject(ret);
@@ -19374,10 +19502,6 @@ function __wbg_get_imports(memory) {
19374
19502
  const ret = VerifyingKey.__wrap(arg0);
19375
19503
  return addHeapObject(ret);
19376
19504
  };
19377
- imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
19378
- const ret = getObject(arg0).versions;
19379
- return addHeapObject(ret);
19380
- };
19381
19505
  imports.wbg.__wbg_waitAsync_2c4b633ebb554615 = function() {
19382
19506
  const ret = Atomics.waitAsync;
19383
19507
  return addHeapObject(ret);
@@ -19386,11 +19510,21 @@ function __wbg_get_imports(memory) {
19386
19510
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19387
19511
  return addHeapObject(ret);
19388
19512
  };
19513
+ imports.wbg.__wbindgen_cast_073ddd2b87fab8ab = function(arg0, arg1) {
19514
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19515
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_7372);
19516
+ return addHeapObject(ret);
19517
+ };
19389
19518
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
19390
19519
  // Cast intrinsic for `Ref(String) -> Externref`.
19391
19520
  const ret = getStringFromWasm0(arg0, arg1);
19392
19521
  return addHeapObject(ret);
19393
19522
  };
19523
+ imports.wbg.__wbindgen_cast_263b62405be3c669 = function(arg0, arg1) {
19524
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19525
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_8740);
19526
+ return addHeapObject(ret);
19527
+ };
19394
19528
  imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
19395
19529
  // Cast intrinsic for `I128 -> Externref`.
19396
19530
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
@@ -19401,9 +19535,9 @@ function __wbg_get_imports(memory) {
19401
19535
  const ret = BigInt.asUintN(64, arg0);
19402
19536
  return addHeapObject(ret);
19403
19537
  };
19404
- imports.wbg.__wbindgen_cast_711d7deea8fc39ca = function(arg0, arg1) {
19405
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [Externref], shim_idx: 357, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19406
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7256, __wasm_bindgen_func_elem_8618);
19538
+ imports.wbg.__wbindgen_cast_5cd376b701f56c0e = function(arg0, arg1) {
19539
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [Externref], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19540
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_8740);
19407
19541
  return addHeapObject(ret);
19408
19542
  };
19409
19543
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
@@ -19411,21 +19545,6 @@ function __wbg_get_imports(memory) {
19411
19545
  const ret = arg0;
19412
19546
  return addHeapObject(ret);
19413
19547
  };
19414
- imports.wbg.__wbindgen_cast_cada7727142cd213 = function(arg0, arg1) {
19415
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 357, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19416
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7256, __wasm_bindgen_func_elem_8618);
19417
- return addHeapObject(ret);
19418
- };
19419
- imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
19420
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
19421
- const ret = getArrayU8FromWasm0(arg0, arg1);
19422
- return addHeapObject(ret);
19423
- };
19424
- imports.wbg.__wbindgen_cast_cdf07f87b2615f8c = function(arg0, arg1) {
19425
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [], shim_idx: 462, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19426
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7256, __wasm_bindgen_func_elem_7257);
19427
- return addHeapObject(ret);
19428
- };
19429
19548
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
19430
19549
  // Cast intrinsic for `F64 -> Externref`.
19431
19550
  const ret = arg0;
@@ -19582,6 +19701,7 @@ var exports$1$1 = /*#__PURE__*/Object.freeze({
19582
19701
  initSync: initSync$1,
19583
19702
  initThreadPool: initThreadPool,
19584
19703
  runRayonThread: runRayonThread,
19704
+ setWasmLogLevel: setWasmLogLevel,
19585
19705
  snarkVerify: snarkVerify,
19586
19706
  snarkVerifyBatch: snarkVerifyBatch,
19587
19707
  stringToField: stringToField,