@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.
- package/dist/mainnet/aleo_wasm.d.ts +89 -10
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +192 -72
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +192 -73
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +192 -72
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +90 -11
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +215 -95
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +215 -96
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +215 -95
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/mainnet/worker.js
CHANGED
|
@@ -286,6 +286,17 @@ 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);
|
|
298
|
+
}
|
|
299
|
+
|
|
289
300
|
/**
|
|
290
301
|
* @param {URL} url
|
|
291
302
|
* @param {number} num_threads
|
|
@@ -447,7 +458,7 @@ function stringToField(string) {
|
|
|
447
458
|
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
448
459
|
*
|
|
449
460
|
* Set the consensus version heights.
|
|
450
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13");
|
|
461
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
451
462
|
* @param {string | null} [heights]
|
|
452
463
|
* @returns {Array<any>}
|
|
453
464
|
*/
|
|
@@ -477,16 +488,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
477
488
|
}
|
|
478
489
|
return result;
|
|
479
490
|
}
|
|
480
|
-
function
|
|
481
|
-
wasm.
|
|
491
|
+
function __wasm_bindgen_func_elem_8740(arg0, arg1, arg2) {
|
|
492
|
+
wasm.__wasm_bindgen_func_elem_8740(arg0, arg1, addHeapObject(arg2));
|
|
482
493
|
}
|
|
483
494
|
|
|
484
|
-
function
|
|
485
|
-
wasm.
|
|
495
|
+
function __wasm_bindgen_func_elem_7369(arg0, arg1) {
|
|
496
|
+
wasm.__wasm_bindgen_func_elem_7369(arg0, arg1);
|
|
486
497
|
}
|
|
487
498
|
|
|
488
|
-
function
|
|
489
|
-
wasm.
|
|
499
|
+
function __wasm_bindgen_func_elem_7641(arg0, arg1, arg2, arg3) {
|
|
500
|
+
wasm.__wasm_bindgen_func_elem_7641(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
490
501
|
}
|
|
491
502
|
|
|
492
503
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -12391,6 +12402,17 @@ const ProvingRequestFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
12391
12402
|
: new FinalizationRegistry(ptr => wasm.__wbg_provingrequest_free(ptr >>> 0, 1));
|
|
12392
12403
|
/**
|
|
12393
12404
|
* Represents a proving request to a prover.
|
|
12405
|
+
*
|
|
12406
|
+
* Carries one of two variants:
|
|
12407
|
+
* - `Authorization` — a fully-constructed snarkVM `Authorization` (plus optional
|
|
12408
|
+
* fee authorization). Submitted to `/prove/authorization` (encrypted-only).
|
|
12409
|
+
* - `Request` — a single signed snarkVM `Request` (plus optional fee `Request`)
|
|
12410
|
+
* that the prover authorizes server-side. Submitted to `/prove/request`
|
|
12411
|
+
* (encrypted-only).
|
|
12412
|
+
*
|
|
12413
|
+
* Use {@link ProvingRequest#kind} when handling a `ProvingRequest` of unknown
|
|
12414
|
+
* variant (e.g. after deserialization). Variant-specific accessors throw if
|
|
12415
|
+
* called on the wrong variant.
|
|
12394
12416
|
*/
|
|
12395
12417
|
class ProvingRequest {
|
|
12396
12418
|
|
|
@@ -12414,9 +12436,23 @@ class ProvingRequest {
|
|
|
12414
12436
|
wasm.__wbg_provingrequest_free(ptr, 0);
|
|
12415
12437
|
}
|
|
12416
12438
|
/**
|
|
12417
|
-
*
|
|
12439
|
+
* Returns the signed fee `ExecutionRequest` in the Request variant, or
|
|
12440
|
+
* `undefined` when no fee request is set or this is an Authorization variant.
|
|
12441
|
+
* @returns {ExecutionRequest | undefined}
|
|
12442
|
+
*/
|
|
12443
|
+
feeRequest() {
|
|
12444
|
+
const ret = wasm.provingrequest_feeRequest(this.__wbg_ptr);
|
|
12445
|
+
return ret === 0 ? undefined : ExecutionRequest.__wrap(ret);
|
|
12446
|
+
}
|
|
12447
|
+
/**
|
|
12448
|
+
* Creates a `ProvingRequest` from a JSON string representation.
|
|
12418
12449
|
*
|
|
12419
|
-
*
|
|
12450
|
+
* The variant is determined automatically by the JSON shape:
|
|
12451
|
+
* `{ authorization, ... }` → Authorization variant; `{ request, ... }` →
|
|
12452
|
+
* Request variant. Use {@link ProvingRequest#kind} to inspect the
|
|
12453
|
+
* resulting variant.
|
|
12454
|
+
*
|
|
12455
|
+
* @param {string} request JSON string representation of the ProvingRequest.
|
|
12420
12456
|
* @param {string} request
|
|
12421
12457
|
* @returns {ProvingRequest}
|
|
12422
12458
|
*/
|
|
@@ -12438,7 +12474,10 @@ class ProvingRequest {
|
|
|
12438
12474
|
}
|
|
12439
12475
|
}
|
|
12440
12476
|
/**
|
|
12441
|
-
* Creates a left-endian byte representation of the ProvingRequest
|
|
12477
|
+
* Creates a left-endian byte representation of the ProvingRequest,
|
|
12478
|
+
* dispatching on the variant. The bytes are wire-compatible with the
|
|
12479
|
+
* matching DPS route (`/prove[/encrypted]` for Authorization,
|
|
12480
|
+
* `/prove/request` for Request).
|
|
12442
12481
|
* @returns {Uint8Array}
|
|
12443
12482
|
*/
|
|
12444
12483
|
toBytesLe() {
|
|
@@ -12457,17 +12496,64 @@ class ProvingRequest {
|
|
|
12457
12496
|
}
|
|
12458
12497
|
}
|
|
12459
12498
|
/**
|
|
12460
|
-
*
|
|
12499
|
+
* Creates a new Request-variant `ProvingRequest` from a single signed
|
|
12500
|
+
* `ExecutionRequest` and an optional signed fee `ExecutionRequest`.
|
|
12501
|
+
*
|
|
12502
|
+
* The Request variant is processed by the DPS at the `/prove/request`
|
|
12503
|
+
* endpoint, which is encrypted-only. The server runs
|
|
12504
|
+
* `Process::authorize_request` to turn each `Request` into an
|
|
12505
|
+
* `Authorization` before proving.
|
|
12506
|
+
*
|
|
12507
|
+
* Only valid for single-public-request executions. Layered / nested
|
|
12508
|
+
* calls are not supported by `/prove/request` at this time.
|
|
12509
|
+
*
|
|
12510
|
+
* @param {ExecutionRequest} request The signed request for the function.
|
|
12511
|
+
* @param {ExecutionRequest} fee_request Optional signed request for the fee function. When omitted, the prover generates and pays the fee.
|
|
12512
|
+
* @param {boolean} broadcast Flag that indicates whether the remote proving service should attempt to submit the transaction on the caller's behalf.
|
|
12513
|
+
* @param {ExecutionRequest} request
|
|
12514
|
+
* @param {ExecutionRequest | null | undefined} fee_request
|
|
12515
|
+
* @param {boolean} broadcast
|
|
12516
|
+
* @returns {ProvingRequest}
|
|
12517
|
+
*/
|
|
12518
|
+
static fromRequest(request, fee_request, broadcast) {
|
|
12519
|
+
_assertClass(request, ExecutionRequest);
|
|
12520
|
+
var ptr0 = request.__destroy_into_raw();
|
|
12521
|
+
let ptr1 = 0;
|
|
12522
|
+
if (!isLikeNone(fee_request)) {
|
|
12523
|
+
_assertClass(fee_request, ExecutionRequest);
|
|
12524
|
+
ptr1 = fee_request.__destroy_into_raw();
|
|
12525
|
+
}
|
|
12526
|
+
const ret = wasm.provingrequest_fromRequest(ptr0, ptr1, broadcast);
|
|
12527
|
+
return ProvingRequest.__wrap(ret);
|
|
12528
|
+
}
|
|
12529
|
+
/**
|
|
12530
|
+
* Returns the Authorization of the main function in the ProvingRequest.
|
|
12531
|
+
*
|
|
12532
|
+
* @throws If this `ProvingRequest` is a Request variant. Check
|
|
12533
|
+
* {@link ProvingRequest#kind} or use {@link ProvingRequest#request} instead.
|
|
12461
12534
|
* @returns {Authorization}
|
|
12462
12535
|
*/
|
|
12463
12536
|
authorization() {
|
|
12464
|
-
|
|
12465
|
-
|
|
12537
|
+
try {
|
|
12538
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12539
|
+
wasm.provingrequest_authorization(retptr, this.__wbg_ptr);
|
|
12540
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12541
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12542
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12543
|
+
if (r2) {
|
|
12544
|
+
throw takeObject(r1);
|
|
12545
|
+
}
|
|
12546
|
+
return Authorization.__wrap(r0);
|
|
12547
|
+
} finally {
|
|
12548
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12549
|
+
}
|
|
12466
12550
|
}
|
|
12467
12551
|
/**
|
|
12468
|
-
*
|
|
12552
|
+
* Reads bytes as an Authorization-variant `ProvingRequest`. For the
|
|
12553
|
+
* Request variant, use {@link ProvingRequest.fromBytesLeRequest}
|
|
12554
|
+
* explicitly — byte layout carries no variant discriminator.
|
|
12469
12555
|
*
|
|
12470
|
-
* @param {Uint8Array} bytes Left-endian bytes representing
|
|
12556
|
+
* @param {Uint8Array} bytes Left-endian bytes representing an Authorization-variant proving request.
|
|
12471
12557
|
* @param {Uint8Array} bytes
|
|
12472
12558
|
* @returns {ProvingRequest}
|
|
12473
12559
|
*/
|
|
@@ -12487,7 +12573,8 @@ class ProvingRequest {
|
|
|
12487
12573
|
}
|
|
12488
12574
|
}
|
|
12489
12575
|
/**
|
|
12490
|
-
*
|
|
12576
|
+
* Returns the fee Authorization in the ProvingRequest, or `undefined`
|
|
12577
|
+
* when no fee is set or this is a Request variant.
|
|
12491
12578
|
* @returns {Authorization | undefined}
|
|
12492
12579
|
*/
|
|
12493
12580
|
feeAuthorization() {
|
|
@@ -12495,7 +12582,32 @@ class ProvingRequest {
|
|
|
12495
12582
|
return ret === 0 ? undefined : Authorization.__wrap(ret);
|
|
12496
12583
|
}
|
|
12497
12584
|
/**
|
|
12498
|
-
*
|
|
12585
|
+
* Reads bytes as a Request-variant `ProvingRequest`. Byte layout is
|
|
12586
|
+
* disjoint from the Authorization variant; callers must pick the right
|
|
12587
|
+
* reader for the bytes they hold.
|
|
12588
|
+
*
|
|
12589
|
+
* @param {Uint8Array} bytes Left-endian bytes representing a Request-variant proving request.
|
|
12590
|
+
* @param {Uint8Array} bytes
|
|
12591
|
+
* @returns {ProvingRequest}
|
|
12592
|
+
*/
|
|
12593
|
+
static fromBytesLeRequest(bytes) {
|
|
12594
|
+
try {
|
|
12595
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12596
|
+
wasm.provingrequest_fromBytesLeRequest(retptr, addHeapObject(bytes));
|
|
12597
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12598
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12599
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12600
|
+
if (r2) {
|
|
12601
|
+
throw takeObject(r1);
|
|
12602
|
+
}
|
|
12603
|
+
return ProvingRequest.__wrap(r0);
|
|
12604
|
+
} finally {
|
|
12605
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12606
|
+
}
|
|
12607
|
+
}
|
|
12608
|
+
/**
|
|
12609
|
+
* Creates a new Authorization-variant `ProvingRequest` from a function
|
|
12610
|
+
* `Authorization` and an optional fee `Authorization`.
|
|
12499
12611
|
*
|
|
12500
12612
|
* @param {Authorization} authorization An Authorization for a function.
|
|
12501
12613
|
* @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.
|
|
@@ -12516,6 +12628,28 @@ class ProvingRequest {
|
|
|
12516
12628
|
const ret = wasm.provingrequest_new(ptr0, ptr1, broadcast);
|
|
12517
12629
|
return ProvingRequest.__wrap(ret);
|
|
12518
12630
|
}
|
|
12631
|
+
/**
|
|
12632
|
+
* Returns the variant of this `ProvingRequest`: `"authorization"` or
|
|
12633
|
+
* `"request"`. Useful when handling a `ProvingRequest` whose variant
|
|
12634
|
+
* was determined at deserialization time.
|
|
12635
|
+
* @returns {string}
|
|
12636
|
+
*/
|
|
12637
|
+
kind() {
|
|
12638
|
+
let deferred1_0;
|
|
12639
|
+
let deferred1_1;
|
|
12640
|
+
try {
|
|
12641
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12642
|
+
wasm.provingrequest_kind(retptr, this.__wbg_ptr);
|
|
12643
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12644
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12645
|
+
deferred1_0 = r0;
|
|
12646
|
+
deferred1_1 = r1;
|
|
12647
|
+
return getStringFromWasm0(r0, r1);
|
|
12648
|
+
} finally {
|
|
12649
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12650
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
12651
|
+
}
|
|
12652
|
+
}
|
|
12519
12653
|
/**
|
|
12520
12654
|
* Check if a ProvingRequest is the same as another ProvingRequest.
|
|
12521
12655
|
* @param {ProvingRequest} other
|
|
@@ -12526,6 +12660,29 @@ class ProvingRequest {
|
|
|
12526
12660
|
const ret = wasm.provingrequest_equals(this.__wbg_ptr, other.__wbg_ptr);
|
|
12527
12661
|
return ret !== 0;
|
|
12528
12662
|
}
|
|
12663
|
+
/**
|
|
12664
|
+
* Returns the signed `ExecutionRequest` carried by the Request variant.
|
|
12665
|
+
*
|
|
12666
|
+
* @throws If this `ProvingRequest` is an Authorization variant. Check
|
|
12667
|
+
* {@link ProvingRequest#kind} or use {@link ProvingRequest#authorization}
|
|
12668
|
+
* instead.
|
|
12669
|
+
* @returns {ExecutionRequest}
|
|
12670
|
+
*/
|
|
12671
|
+
request() {
|
|
12672
|
+
try {
|
|
12673
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12674
|
+
wasm.provingrequest_request(retptr, this.__wbg_ptr);
|
|
12675
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12676
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12677
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12678
|
+
if (r2) {
|
|
12679
|
+
throw takeObject(r1);
|
|
12680
|
+
}
|
|
12681
|
+
return ExecutionRequest.__wrap(r0);
|
|
12682
|
+
} finally {
|
|
12683
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12684
|
+
}
|
|
12685
|
+
}
|
|
12529
12686
|
/**
|
|
12530
12687
|
* Get the broadcast flag set in the ProvingRequest.
|
|
12531
12688
|
* @returns {boolean}
|
|
@@ -12535,7 +12692,9 @@ class ProvingRequest {
|
|
|
12535
12692
|
return ret !== 0;
|
|
12536
12693
|
}
|
|
12537
12694
|
/**
|
|
12538
|
-
* Creates a string representation of the ProvingRequest.
|
|
12695
|
+
* Creates a JSON string representation of the ProvingRequest.
|
|
12696
|
+
* The shape carries enough information to recover the variant via
|
|
12697
|
+
* {@link ProvingRequest.fromString}.
|
|
12539
12698
|
* @returns {string}
|
|
12540
12699
|
*/
|
|
12541
12700
|
toString() {
|
|
@@ -18858,10 +19017,6 @@ function __wbg_get_imports(memory) {
|
|
|
18858
19017
|
const ret = typeof(val) === 'object' && val !== null;
|
|
18859
19018
|
return ret;
|
|
18860
19019
|
};
|
|
18861
|
-
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
18862
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
18863
|
-
return ret;
|
|
18864
|
-
};
|
|
18865
19020
|
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
18866
19021
|
const ret = getObject(arg0) === undefined;
|
|
18867
19022
|
return ret;
|
|
@@ -18943,10 +19098,6 @@ function __wbg_get_imports(memory) {
|
|
|
18943
19098
|
const ret = clearTimeout(takeObject(arg0));
|
|
18944
19099
|
return addHeapObject(ret);
|
|
18945
19100
|
};
|
|
18946
|
-
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
18947
|
-
const ret = getObject(arg0).crypto;
|
|
18948
|
-
return addHeapObject(ret);
|
|
18949
|
-
};
|
|
18950
19101
|
imports.wbg.__wbg_data_ee4306d069f24f2d = function(arg0) {
|
|
18951
19102
|
const ret = getObject(arg0).data;
|
|
18952
19103
|
return addHeapObject(ret);
|
|
@@ -18990,8 +19141,8 @@ function __wbg_get_imports(memory) {
|
|
|
18990
19141
|
const ret = Array.from(getObject(arg0));
|
|
18991
19142
|
return addHeapObject(ret);
|
|
18992
19143
|
};
|
|
18993
|
-
imports.wbg.
|
|
18994
|
-
|
|
19144
|
+
imports.wbg.__wbg_getRandomValues_90e56bff4f3b89fb = function() { return handleError(function (arg0) {
|
|
19145
|
+
globalThis.crypto.getRandomValues(getObject(arg0));
|
|
18995
19146
|
}, arguments) };
|
|
18996
19147
|
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
18997
19148
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
@@ -19081,13 +19232,9 @@ function __wbg_get_imports(memory) {
|
|
|
19081
19232
|
const ret = getObject(arg0).length;
|
|
19082
19233
|
return ret;
|
|
19083
19234
|
};
|
|
19084
|
-
imports.wbg.
|
|
19235
|
+
imports.wbg.__wbg_log_e77f2654b14580d9 = function(arg0, arg1) {
|
|
19085
19236
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
19086
19237
|
};
|
|
19087
|
-
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
19088
|
-
const ret = getObject(arg0).msCrypto;
|
|
19089
|
-
return addHeapObject(ret);
|
|
19090
|
-
};
|
|
19091
19238
|
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
19092
19239
|
const ret = new Object();
|
|
19093
19240
|
return addHeapObject(ret);
|
|
@@ -19103,7 +19250,7 @@ function __wbg_get_imports(memory) {
|
|
|
19103
19250
|
const a = state0.a;
|
|
19104
19251
|
state0.a = 0;
|
|
19105
19252
|
try {
|
|
19106
|
-
return
|
|
19253
|
+
return __wasm_bindgen_func_elem_7641(a, state0.b, arg0, arg1);
|
|
19107
19254
|
} finally {
|
|
19108
19255
|
state0.a = a;
|
|
19109
19256
|
}
|
|
@@ -19170,10 +19317,6 @@ function __wbg_get_imports(memory) {
|
|
|
19170
19317
|
const ret = getObject(arg0).next;
|
|
19171
19318
|
return addHeapObject(ret);
|
|
19172
19319
|
};
|
|
19173
|
-
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
19174
|
-
const ret = getObject(arg0).node;
|
|
19175
|
-
return addHeapObject(ret);
|
|
19176
|
-
};
|
|
19177
19320
|
imports.wbg.__wbg_of_3192b3b018b8f660 = function(arg0, arg1, arg2) {
|
|
19178
19321
|
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
19179
19322
|
return addHeapObject(ret);
|
|
@@ -19191,10 +19334,6 @@ function __wbg_get_imports(memory) {
|
|
|
19191
19334
|
imports.wbg.__wbg_postMessage_f34857ca078c8536 = function() { return handleError(function (arg0, arg1) {
|
|
19192
19335
|
getObject(arg0).postMessage(getObject(arg1));
|
|
19193
19336
|
}, arguments) };
|
|
19194
|
-
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
19195
|
-
const ret = getObject(arg0).process;
|
|
19196
|
-
return addHeapObject(ret);
|
|
19197
|
-
};
|
|
19198
19337
|
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
19199
19338
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
19200
19339
|
};
|
|
@@ -19213,9 +19352,6 @@ function __wbg_get_imports(memory) {
|
|
|
19213
19352
|
imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
19214
19353
|
queueMicrotask(getObject(arg0));
|
|
19215
19354
|
};
|
|
19216
|
-
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
19217
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
19218
|
-
}, arguments) };
|
|
19219
19355
|
imports.wbg.__wbg_recordciphertext_new = function(arg0) {
|
|
19220
19356
|
const ret = RecordCiphertext.__wrap(arg0);
|
|
19221
19357
|
return addHeapObject(ret);
|
|
@@ -19228,10 +19364,6 @@ function __wbg_get_imports(memory) {
|
|
|
19228
19364
|
const ret = RecordPlaintext.__wrap(arg0);
|
|
19229
19365
|
return addHeapObject(ret);
|
|
19230
19366
|
};
|
|
19231
|
-
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
19232
|
-
const ret = module.require;
|
|
19233
|
-
return addHeapObject(ret);
|
|
19234
|
-
}, arguments) };
|
|
19235
19367
|
imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
19236
19368
|
const ret = Promise.resolve(getObject(arg0));
|
|
19237
19369
|
return addHeapObject(ret);
|
|
@@ -19290,7 +19422,7 @@ function __wbg_get_imports(memory) {
|
|
|
19290
19422
|
const ret = Signature.__wrap(arg0);
|
|
19291
19423
|
return addHeapObject(ret);
|
|
19292
19424
|
};
|
|
19293
|
-
imports.wbg.
|
|
19425
|
+
imports.wbg.__wbg_spawnWorker_77887968658d2179 = function(arg0, arg1, arg2, arg3) {
|
|
19294
19426
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
19295
19427
|
return addHeapObject(ret);
|
|
19296
19428
|
};
|
|
@@ -19329,10 +19461,6 @@ function __wbg_get_imports(memory) {
|
|
|
19329
19461
|
const ret = JSON.stringify(getObject(arg0));
|
|
19330
19462
|
return addHeapObject(ret);
|
|
19331
19463
|
}, arguments) };
|
|
19332
|
-
imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
19333
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
19334
|
-
return addHeapObject(ret);
|
|
19335
|
-
};
|
|
19336
19464
|
imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
19337
19465
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
19338
19466
|
return addHeapObject(ret);
|
|
@@ -19368,10 +19496,6 @@ function __wbg_get_imports(memory) {
|
|
|
19368
19496
|
const ret = VerifyingKey.__wrap(arg0);
|
|
19369
19497
|
return addHeapObject(ret);
|
|
19370
19498
|
};
|
|
19371
|
-
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
19372
|
-
const ret = getObject(arg0).versions;
|
|
19373
|
-
return addHeapObject(ret);
|
|
19374
|
-
};
|
|
19375
19499
|
imports.wbg.__wbg_waitAsync_2c4b633ebb554615 = function() {
|
|
19376
19500
|
const ret = Atomics.waitAsync;
|
|
19377
19501
|
return addHeapObject(ret);
|
|
@@ -19390,24 +19514,19 @@ function __wbg_get_imports(memory) {
|
|
|
19390
19514
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
19391
19515
|
return addHeapObject(ret);
|
|
19392
19516
|
};
|
|
19393
|
-
imports.wbg.__wbindgen_cast_3ebebf8ee554379e = function(arg0, arg1) {
|
|
19394
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 354, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 355, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19395
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7255, __wasm_bindgen_func_elem_8618);
|
|
19396
|
-
return addHeapObject(ret);
|
|
19397
|
-
};
|
|
19398
19517
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
19399
19518
|
// Cast intrinsic for `U64 -> Externref`.
|
|
19400
19519
|
const ret = BigInt.asUintN(64, arg0);
|
|
19401
19520
|
return addHeapObject(ret);
|
|
19402
19521
|
};
|
|
19403
|
-
imports.wbg.
|
|
19404
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19405
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
19522
|
+
imports.wbg.__wbindgen_cast_4a64cbb5b17898c9 = function(arg0, arg1) {
|
|
19523
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19524
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7368, __wasm_bindgen_func_elem_8740);
|
|
19406
19525
|
return addHeapObject(ret);
|
|
19407
19526
|
};
|
|
19408
|
-
imports.wbg.
|
|
19409
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
19410
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
19527
|
+
imports.wbg.__wbindgen_cast_65bbaf572cb463ed = function(arg0, arg1) {
|
|
19528
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19529
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7368, __wasm_bindgen_func_elem_8740);
|
|
19411
19530
|
return addHeapObject(ret);
|
|
19412
19531
|
};
|
|
19413
19532
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -19415,9 +19534,9 @@ function __wbg_get_imports(memory) {
|
|
|
19415
19534
|
const ret = arg0;
|
|
19416
19535
|
return addHeapObject(ret);
|
|
19417
19536
|
};
|
|
19418
|
-
imports.wbg.
|
|
19419
|
-
// Cast intrinsic for `
|
|
19420
|
-
const ret =
|
|
19537
|
+
imports.wbg.__wbindgen_cast_aca65e91b5ef2a91 = function(arg0, arg1) {
|
|
19538
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19539
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7368, __wasm_bindgen_func_elem_7369);
|
|
19421
19540
|
return addHeapObject(ret);
|
|
19422
19541
|
};
|
|
19423
19542
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -19576,6 +19695,7 @@ var exports$1 = /*#__PURE__*/Object.freeze({
|
|
|
19576
19695
|
initSync: initSync,
|
|
19577
19696
|
initThreadPool: initThreadPool,
|
|
19578
19697
|
runRayonThread: runRayonThread,
|
|
19698
|
+
setWasmLogLevel: setWasmLogLevel,
|
|
19579
19699
|
snarkVerify: snarkVerify,
|
|
19580
19700
|
snarkVerifyBatch: snarkVerifyBatch,
|
|
19581
19701
|
stringToField: stringToField,
|