@puzzlehq/aleo-wasm-web 0.9.13 → 0.9.15

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.
@@ -29,7 +29,7 @@ function spawnWorker(url, module, memory, address) {
29
29
  });
30
30
  }
31
31
 
32
- /* @ts-self-types="./index.d.ts" */
32
+ /* @ts-self-types="./aleo_wasm.d.ts" */
33
33
 
34
34
  /**
35
35
  * Public address of an Aleo account
@@ -1730,7 +1730,7 @@ class ComputeKey {
1730
1730
  * @returns {Address}
1731
1731
  */
1732
1732
  address() {
1733
- const ret = wasm.address_from_compute_key(this.__wbg_ptr);
1733
+ const ret = wasm.computekey_address(this.__wbg_ptr);
1734
1734
  return Address.__wrap(ret);
1735
1735
  }
1736
1736
  /**
@@ -1754,7 +1754,7 @@ class ComputeKey {
1754
1754
  * @returns {Group}
1755
1755
  */
1756
1756
  pk_sig() {
1757
- const ret = wasm.address_toGroup(this.__wbg_ptr);
1757
+ const ret = wasm.computekey_pk_sig(this.__wbg_ptr);
1758
1758
  return Group.__wrap(ret);
1759
1759
  }
1760
1760
  /**
@@ -2345,7 +2345,7 @@ class ExecutionRequest {
2345
2345
  * @returns {Address}
2346
2346
  */
2347
2347
  signer() {
2348
- const ret = wasm.address_toGroup(this.__wbg_ptr);
2348
+ const ret = wasm.executionrequest_signer(this.__wbg_ptr);
2349
2349
  return Address.__wrap(ret);
2350
2350
  }
2351
2351
  /**
@@ -2941,7 +2941,7 @@ class Group {
2941
2941
  * @returns {Group}
2942
2942
  */
2943
2943
  clone() {
2944
- const ret = wasm.address_toGroup(this.__wbg_ptr);
2944
+ const ret = wasm.group_clone(this.__wbg_ptr);
2945
2945
  return Group.__wrap(ret);
2946
2946
  }
2947
2947
  /**
@@ -3076,7 +3076,7 @@ class Group {
3076
3076
  * @returns {Array<any>}
3077
3077
  */
3078
3078
  toBitsLe() {
3079
- const ret = wasm.address_toBitsLe(this.__wbg_ptr);
3079
+ const ret = wasm.group_toBitsLe(this.__wbg_ptr);
3080
3080
  return takeObject(ret);
3081
3081
  }
3082
3082
  /**
@@ -3105,7 +3105,7 @@ class Group {
3105
3105
  toFields() {
3106
3106
  try {
3107
3107
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3108
- wasm.address_toFields(retptr, this.__wbg_ptr);
3108
+ wasm.group_toFields(retptr, this.__wbg_ptr);
3109
3109
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3110
3110
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3111
3111
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -6649,7 +6649,7 @@ class PrivateKeyCiphertext {
6649
6649
  let deferred1_1;
6650
6650
  try {
6651
6651
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6652
- wasm.ciphertext_toString(retptr, this.__wbg_ptr);
6652
+ wasm.privatekeyciphertext_toString(retptr, this.__wbg_ptr);
6653
6653
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6654
6654
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6655
6655
  deferred1_0 = r0;
@@ -9117,7 +9117,7 @@ class Scalar {
9117
9117
  * @returns {Scalar}
9118
9118
  */
9119
9119
  clone() {
9120
- const ret = wasm.field_clone(this.__wbg_ptr);
9120
+ const ret = wasm.scalar_clone(this.__wbg_ptr);
9121
9121
  return Scalar.__wrap(ret);
9122
9122
  }
9123
9123
  /**
@@ -9145,7 +9145,7 @@ class Scalar {
9145
9145
  */
9146
9146
  equals(other) {
9147
9147
  _assertClass(other, Scalar);
9148
- const ret = wasm.field_equals(this.__wbg_ptr, other.__wbg_ptr);
9148
+ const ret = wasm.scalar_equals(this.__wbg_ptr, other.__wbg_ptr);
9149
9149
  return ret !== 0;
9150
9150
  }
9151
9151
  /**
@@ -9345,7 +9345,7 @@ class Scalar {
9345
9345
  * @returns {Scalar}
9346
9346
  */
9347
9347
  static zero() {
9348
- const ret = wasm.field_zero();
9348
+ const ret = wasm.scalar_zero();
9349
9349
  return Scalar.__wrap(ret);
9350
9350
  }
9351
9351
  }
@@ -9377,7 +9377,7 @@ class Signature {
9377
9377
  * @returns {Scalar}
9378
9378
  */
9379
9379
  challenge() {
9380
- const ret = wasm.field_clone(this.__wbg_ptr);
9380
+ const ret = wasm.signature_challenge(this.__wbg_ptr);
9381
9381
  return Scalar.__wrap(ret);
9382
9382
  }
9383
9383
  /**
@@ -10028,7 +10028,7 @@ class Transition {
10028
10028
  try {
10029
10029
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10030
10030
  _assertClass(tvk, Field);
10031
- wasm.transition_decryptTransition(retptr, this.__wbg_ptr, tvk.__wbg_ptr);
10031
+ wasm.encryptiontoolkit_decryptTransitionWithVk(retptr, this.__wbg_ptr, tvk.__wbg_ptr);
10032
10032
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10033
10033
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10034
10034
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10283,7 +10283,7 @@ class Transition {
10283
10283
  * @returns {Group}
10284
10284
  */
10285
10285
  tpk() {
10286
- const ret = wasm.address_toGroup(this.__wbg_ptr);
10286
+ const ret = wasm.computekey_pk_sig(this.__wbg_ptr);
10287
10287
  return Group.__wrap(ret);
10288
10288
  }
10289
10289
  /**
@@ -10326,7 +10326,7 @@ class U128 {
10326
10326
  * @returns {U128}
10327
10327
  */
10328
10328
  absChecked() {
10329
- const ret = wasm.i128_clone(this.__wbg_ptr);
10329
+ const ret = wasm.u128_absChecked(this.__wbg_ptr);
10330
10330
  return U128.__wrap(ret);
10331
10331
  }
10332
10332
  /**
@@ -10344,7 +10344,7 @@ class U128 {
10344
10344
  */
10345
10345
  addWrapped(other) {
10346
10346
  _assertClass(other, U128);
10347
- const ret = wasm.i128_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10347
+ const ret = wasm.u128_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10348
10348
  return U128.__wrap(ret);
10349
10349
  }
10350
10350
  /**
@@ -10372,7 +10372,7 @@ class U128 {
10372
10372
  */
10373
10373
  equals(other) {
10374
10374
  _assertClass(other, U128);
10375
- const ret = wasm.i128_equals(this.__wbg_ptr, other.__wbg_ptr);
10375
+ const ret = wasm.u128_equals(this.__wbg_ptr, other.__wbg_ptr);
10376
10376
  return ret !== 0;
10377
10377
  }
10378
10378
  /**
@@ -10383,7 +10383,7 @@ class U128 {
10383
10383
  static fromBitsLe(bits) {
10384
10384
  try {
10385
10385
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10386
- wasm.i128_fromBitsLe(retptr, addBorrowedObject(bits));
10386
+ wasm.u128_fromBitsLe(retptr, addBorrowedObject(bits));
10387
10387
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10388
10388
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10389
10389
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10487,7 +10487,7 @@ class U128 {
10487
10487
  */
10488
10488
  mulWrapped(other) {
10489
10489
  _assertClass(other, U128);
10490
- const ret = wasm.i128_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
10490
+ const ret = wasm.u128_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
10491
10491
  return U128.__wrap(ret);
10492
10492
  }
10493
10493
  /**
@@ -10555,7 +10555,7 @@ class U128 {
10555
10555
  */
10556
10556
  subWrapped(other) {
10557
10557
  _assertClass(other, U128);
10558
- const ret = wasm.i128_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
10558
+ const ret = wasm.u128_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
10559
10559
  return U128.__wrap(ret);
10560
10560
  }
10561
10561
  /**
@@ -10573,7 +10573,7 @@ class U128 {
10573
10573
  toBytesLe() {
10574
10574
  try {
10575
10575
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10576
- wasm.i128_toBytesLe(retptr, this.__wbg_ptr);
10576
+ wasm.u128_toBytesLe(retptr, this.__wbg_ptr);
10577
10577
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10578
10578
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10579
10579
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10647,7 +10647,7 @@ class U16 {
10647
10647
  * @returns {U16}
10648
10648
  */
10649
10649
  absChecked() {
10650
- const ret = wasm.i16_clone(this.__wbg_ptr);
10650
+ const ret = wasm.u16_absChecked(this.__wbg_ptr);
10651
10651
  return U16.__wrap(ret);
10652
10652
  }
10653
10653
  /**
@@ -10665,7 +10665,7 @@ class U16 {
10665
10665
  */
10666
10666
  addWrapped(other) {
10667
10667
  _assertClass(other, U16);
10668
- const ret = wasm.i16_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10668
+ const ret = wasm.u16_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10669
10669
  return U16.__wrap(ret);
10670
10670
  }
10671
10671
  /**
@@ -10693,7 +10693,7 @@ class U16 {
10693
10693
  */
10694
10694
  equals(other) {
10695
10695
  _assertClass(other, U16);
10696
- const ret = wasm.i16_equals(this.__wbg_ptr, other.__wbg_ptr);
10696
+ const ret = wasm.u16_equals(this.__wbg_ptr, other.__wbg_ptr);
10697
10697
  return ret !== 0;
10698
10698
  }
10699
10699
  /**
@@ -10704,7 +10704,7 @@ class U16 {
10704
10704
  static fromBitsLe(bits) {
10705
10705
  try {
10706
10706
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10707
- wasm.i16_fromBitsLe(retptr, addBorrowedObject(bits));
10707
+ wasm.u16_fromBitsLe(retptr, addBorrowedObject(bits));
10708
10708
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10709
10709
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10710
10710
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10767,7 +10767,7 @@ class U16 {
10767
10767
  static fromFields(fields) {
10768
10768
  try {
10769
10769
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10770
- wasm.i16_fromFields(retptr, addHeapObject(fields));
10770
+ wasm.u16_fromFields(retptr, addHeapObject(fields));
10771
10771
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10772
10772
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10773
10773
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10808,7 +10808,7 @@ class U16 {
10808
10808
  */
10809
10809
  mulWrapped(other) {
10810
10810
  _assertClass(other, U16);
10811
- const ret = wasm.i16_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
10811
+ const ret = wasm.u16_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
10812
10812
  return U16.__wrap(ret);
10813
10813
  }
10814
10814
  /**
@@ -10876,7 +10876,7 @@ class U16 {
10876
10876
  */
10877
10877
  subWrapped(other) {
10878
10878
  _assertClass(other, U16);
10879
- const ret = wasm.i16_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
10879
+ const ret = wasm.u16_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
10880
10880
  return U16.__wrap(ret);
10881
10881
  }
10882
10882
  /**
@@ -10884,7 +10884,7 @@ class U16 {
10884
10884
  * @returns {Array<any>}
10885
10885
  */
10886
10886
  toBitsLe() {
10887
- const ret = wasm.i16_toBitsLe(this.__wbg_ptr);
10887
+ const ret = wasm.u16_toBitsLe(this.__wbg_ptr);
10888
10888
  return takeObject(ret);
10889
10889
  }
10890
10890
  /**
@@ -10894,7 +10894,7 @@ class U16 {
10894
10894
  toBytesLe() {
10895
10895
  try {
10896
10896
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10897
- wasm.i16_toBytesLe(retptr, this.__wbg_ptr);
10897
+ wasm.u16_toBytesLe(retptr, this.__wbg_ptr);
10898
10898
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10899
10899
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10900
10900
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10919,7 +10919,7 @@ class U16 {
10919
10919
  * @returns {Scalar}
10920
10920
  */
10921
10921
  toScalar() {
10922
- const ret = wasm.i16_toScalar(this.__wbg_ptr);
10922
+ const ret = wasm.u16_toScalar(this.__wbg_ptr);
10923
10923
  return Scalar.__wrap(ret);
10924
10924
  }
10925
10925
  /**
@@ -10968,7 +10968,7 @@ class U32 {
10968
10968
  * @returns {U32}
10969
10969
  */
10970
10970
  absChecked() {
10971
- const ret = wasm.i32_clone(this.__wbg_ptr);
10971
+ const ret = wasm.u32_absChecked(this.__wbg_ptr);
10972
10972
  return U32.__wrap(ret);
10973
10973
  }
10974
10974
  /**
@@ -10986,7 +10986,7 @@ class U32 {
10986
10986
  */
10987
10987
  addWrapped(other) {
10988
10988
  _assertClass(other, U32);
10989
- const ret = wasm.i32_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10989
+ const ret = wasm.u32_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
10990
10990
  return U32.__wrap(ret);
10991
10991
  }
10992
10992
  /**
@@ -11014,7 +11014,7 @@ class U32 {
11014
11014
  */
11015
11015
  equals(other) {
11016
11016
  _assertClass(other, U32);
11017
- const ret = wasm.i32_equals(this.__wbg_ptr, other.__wbg_ptr);
11017
+ const ret = wasm.u32_equals(this.__wbg_ptr, other.__wbg_ptr);
11018
11018
  return ret !== 0;
11019
11019
  }
11020
11020
  /**
@@ -11025,7 +11025,7 @@ class U32 {
11025
11025
  static fromBitsLe(bits) {
11026
11026
  try {
11027
11027
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11028
- wasm.i32_fromBitsLe(retptr, addBorrowedObject(bits));
11028
+ wasm.u32_fromBitsLe(retptr, addBorrowedObject(bits));
11029
11029
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11030
11030
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11031
11031
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11088,7 +11088,7 @@ class U32 {
11088
11088
  static fromFields(fields) {
11089
11089
  try {
11090
11090
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11091
- wasm.i32_fromFields(retptr, addHeapObject(fields));
11091
+ wasm.u32_fromFields(retptr, addHeapObject(fields));
11092
11092
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11093
11093
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11094
11094
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11129,7 +11129,7 @@ class U32 {
11129
11129
  */
11130
11130
  mulWrapped(other) {
11131
11131
  _assertClass(other, U32);
11132
- const ret = wasm.i32_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11132
+ const ret = wasm.u32_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11133
11133
  return U32.__wrap(ret);
11134
11134
  }
11135
11135
  /**
@@ -11137,7 +11137,7 @@ class U32 {
11137
11137
  * @returns {U32}
11138
11138
  */
11139
11139
  neg() {
11140
- const ret = wasm.u16_neg(this.__wbg_ptr);
11140
+ const ret = wasm.u32_neg(this.__wbg_ptr);
11141
11141
  return U32.__wrap(ret);
11142
11142
  }
11143
11143
  /**
@@ -11197,7 +11197,7 @@ class U32 {
11197
11197
  */
11198
11198
  subWrapped(other) {
11199
11199
  _assertClass(other, U32);
11200
- const ret = wasm.i32_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11200
+ const ret = wasm.u32_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11201
11201
  return U32.__wrap(ret);
11202
11202
  }
11203
11203
  /**
@@ -11215,7 +11215,7 @@ class U32 {
11215
11215
  toBytesLe() {
11216
11216
  try {
11217
11217
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11218
- wasm.i32_toBytesLe(retptr, this.__wbg_ptr);
11218
+ wasm.u32_toBytesLe(retptr, this.__wbg_ptr);
11219
11219
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11220
11220
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11221
11221
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11289,7 +11289,7 @@ class U64 {
11289
11289
  * @returns {U64}
11290
11290
  */
11291
11291
  absChecked() {
11292
- const ret = wasm.i64_clone(this.__wbg_ptr);
11292
+ const ret = wasm.u64_absChecked(this.__wbg_ptr);
11293
11293
  return U64.__wrap(ret);
11294
11294
  }
11295
11295
  /**
@@ -11307,7 +11307,7 @@ class U64 {
11307
11307
  */
11308
11308
  addWrapped(other) {
11309
11309
  _assertClass(other, U64);
11310
- const ret = wasm.i64_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
11310
+ const ret = wasm.u64_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
11311
11311
  return U64.__wrap(ret);
11312
11312
  }
11313
11313
  /**
@@ -11335,7 +11335,7 @@ class U64 {
11335
11335
  */
11336
11336
  equals(other) {
11337
11337
  _assertClass(other, U64);
11338
- const ret = wasm.i64_equals(this.__wbg_ptr, other.__wbg_ptr);
11338
+ const ret = wasm.u64_equals(this.__wbg_ptr, other.__wbg_ptr);
11339
11339
  return ret !== 0;
11340
11340
  }
11341
11341
  /**
@@ -11346,7 +11346,7 @@ class U64 {
11346
11346
  static fromBitsLe(bits) {
11347
11347
  try {
11348
11348
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11349
- wasm.i64_fromBitsLe(retptr, addBorrowedObject(bits));
11349
+ wasm.u64_fromBitsLe(retptr, addBorrowedObject(bits));
11350
11350
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11351
11351
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11352
11352
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11409,7 +11409,7 @@ class U64 {
11409
11409
  static fromFields(fields) {
11410
11410
  try {
11411
11411
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11412
- wasm.i64_fromFields(retptr, addHeapObject(fields));
11412
+ wasm.u64_fromFields(retptr, addHeapObject(fields));
11413
11413
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11414
11414
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11415
11415
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11450,7 +11450,7 @@ class U64 {
11450
11450
  */
11451
11451
  mulWrapped(other) {
11452
11452
  _assertClass(other, U64);
11453
- const ret = wasm.i64_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11453
+ const ret = wasm.u64_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11454
11454
  return U64.__wrap(ret);
11455
11455
  }
11456
11456
  /**
@@ -11458,7 +11458,7 @@ class U64 {
11458
11458
  * @returns {U64}
11459
11459
  */
11460
11460
  neg() {
11461
- const ret = wasm.u16_neg(this.__wbg_ptr);
11461
+ const ret = wasm.u64_neg(this.__wbg_ptr);
11462
11462
  return U64.__wrap(ret);
11463
11463
  }
11464
11464
  /**
@@ -11518,7 +11518,7 @@ class U64 {
11518
11518
  */
11519
11519
  subWrapped(other) {
11520
11520
  _assertClass(other, U64);
11521
- const ret = wasm.i64_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11521
+ const ret = wasm.u64_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11522
11522
  return U64.__wrap(ret);
11523
11523
  }
11524
11524
  /**
@@ -11536,7 +11536,7 @@ class U64 {
11536
11536
  toBytesLe() {
11537
11537
  try {
11538
11538
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11539
- wasm.i64_toBytesLe(retptr, this.__wbg_ptr);
11539
+ wasm.u64_toBytesLe(retptr, this.__wbg_ptr);
11540
11540
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11541
11541
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11542
11542
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11610,7 +11610,7 @@ class U8 {
11610
11610
  * @returns {U8}
11611
11611
  */
11612
11612
  absChecked() {
11613
- const ret = wasm.i8_clone(this.__wbg_ptr);
11613
+ const ret = wasm.u8_absChecked(this.__wbg_ptr);
11614
11614
  return U8.__wrap(ret);
11615
11615
  }
11616
11616
  /**
@@ -11628,7 +11628,7 @@ class U8 {
11628
11628
  */
11629
11629
  addWrapped(other) {
11630
11630
  _assertClass(other, U8);
11631
- const ret = wasm.i8_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
11631
+ const ret = wasm.u8_addWrapped(this.__wbg_ptr, other.__wbg_ptr);
11632
11632
  return U8.__wrap(ret);
11633
11633
  }
11634
11634
  /**
@@ -11656,7 +11656,7 @@ class U8 {
11656
11656
  */
11657
11657
  equals(other) {
11658
11658
  _assertClass(other, U8);
11659
- const ret = wasm.i8_equals(this.__wbg_ptr, other.__wbg_ptr);
11659
+ const ret = wasm.u8_equals(this.__wbg_ptr, other.__wbg_ptr);
11660
11660
  return ret !== 0;
11661
11661
  }
11662
11662
  /**
@@ -11667,7 +11667,7 @@ class U8 {
11667
11667
  static fromBitsLe(bits) {
11668
11668
  try {
11669
11669
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11670
- wasm.i8_fromBitsLe(retptr, addBorrowedObject(bits));
11670
+ wasm.u8_fromBitsLe(retptr, addBorrowedObject(bits));
11671
11671
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11672
11672
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11673
11673
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11730,7 +11730,7 @@ class U8 {
11730
11730
  static fromFields(fields) {
11731
11731
  try {
11732
11732
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11733
- wasm.i8_fromFields(retptr, addHeapObject(fields));
11733
+ wasm.u8_fromFields(retptr, addHeapObject(fields));
11734
11734
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11735
11735
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11736
11736
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11771,7 +11771,7 @@ class U8 {
11771
11771
  */
11772
11772
  mulWrapped(other) {
11773
11773
  _assertClass(other, U8);
11774
- const ret = wasm.i8_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11774
+ const ret = wasm.u8_mulWrapped(this.__wbg_ptr, other.__wbg_ptr);
11775
11775
  return U8.__wrap(ret);
11776
11776
  }
11777
11777
  /**
@@ -11779,7 +11779,7 @@ class U8 {
11779
11779
  * @returns {U8}
11780
11780
  */
11781
11781
  neg() {
11782
- const ret = wasm.u16_neg(this.__wbg_ptr);
11782
+ const ret = wasm.u8_neg(this.__wbg_ptr);
11783
11783
  return U8.__wrap(ret);
11784
11784
  }
11785
11785
  /**
@@ -11839,7 +11839,7 @@ class U8 {
11839
11839
  */
11840
11840
  subWrapped(other) {
11841
11841
  _assertClass(other, U8);
11842
- const ret = wasm.i8_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11842
+ const ret = wasm.u8_subWrapped(this.__wbg_ptr, other.__wbg_ptr);
11843
11843
  return U8.__wrap(ret);
11844
11844
  }
11845
11845
  /**
@@ -11847,7 +11847,7 @@ class U8 {
11847
11847
  * @returns {Array<any>}
11848
11848
  */
11849
11849
  toBitsLe() {
11850
- const ret = wasm.i8_toBitsLe(this.__wbg_ptr);
11850
+ const ret = wasm.u8_toBitsLe(this.__wbg_ptr);
11851
11851
  return takeObject(ret);
11852
11852
  }
11853
11853
  /**
@@ -11857,7 +11857,7 @@ class U8 {
11857
11857
  toBytesLe() {
11858
11858
  try {
11859
11859
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11860
- wasm.i8_toBytesLe(retptr, this.__wbg_ptr);
11860
+ wasm.u8_toBytesLe(retptr, this.__wbg_ptr);
11861
11861
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11862
11862
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11863
11863
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11882,7 +11882,7 @@ class U8 {
11882
11882
  * @returns {Scalar}
11883
11883
  */
11884
11884
  toScalar() {
11885
- const ret = wasm.i8_toScalar(this.__wbg_ptr);
11885
+ const ret = wasm.u8_toScalar(this.__wbg_ptr);
11886
11886
  return Scalar.__wrap(ret);
11887
11887
  }
11888
11888
  /**
@@ -12456,7 +12456,7 @@ class ViewKey {
12456
12456
  toField() {
12457
12457
  try {
12458
12458
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
12459
- wasm.scalar_toField(retptr, this.__wbg_ptr);
12459
+ wasm.viewkey_toField(retptr, this.__wbg_ptr);
12460
12460
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12461
12461
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
12462
12462
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -12475,7 +12475,7 @@ class ViewKey {
12475
12475
  * @returns {Address}
12476
12476
  */
12477
12477
  to_address() {
12478
- const ret = wasm.address_from_view_key(this.__wbg_ptr);
12478
+ const ret = wasm.viewkey_to_address(this.__wbg_ptr);
12479
12479
  return Address.__wrap(ret);
12480
12480
  }
12481
12481
  /**
@@ -12590,7 +12590,7 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
12590
12590
  }
12591
12591
  }
12592
12592
 
12593
- function __wbg_get_imports(memory) {
12593
+ function __wbg_get_imports() {
12594
12594
  const import0 = {
12595
12595
  __proto__: null,
12596
12596
  __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
@@ -12598,6 +12598,13 @@ function __wbg_get_imports(memory) {
12598
12598
  const ret = typeof(v) === 'boolean' ? v : undefined;
12599
12599
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
12600
12600
  },
12601
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
12602
+ const ret = debugString(getObject(arg1));
12603
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
12604
+ const len1 = WASM_VECTOR_LEN;
12605
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
12606
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
12607
+ },
12601
12608
  __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
12602
12609
  const ret = typeof(getObject(arg0)) === 'function';
12603
12610
  return ret;
@@ -12629,9 +12636,6 @@ function __wbg_get_imports(memory) {
12629
12636
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
12630
12637
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
12631
12638
  },
12632
- __wbg___wbindgen_rethrow_05525c567f154472: function(arg0) {
12633
- throw takeObject(arg0);
12634
- },
12635
12639
  __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
12636
12640
  const obj = getObject(arg1);
12637
12641
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -12663,18 +12667,10 @@ function __wbg_get_imports(memory) {
12663
12667
  const ret = getObject(arg0).arrayBuffer();
12664
12668
  return addHeapObject(ret);
12665
12669
  }, arguments); },
12666
- __wbg_async_79f2a61f9d0b31cf: function(arg0) {
12667
- const ret = getObject(arg0).async;
12668
- return ret;
12669
- },
12670
12670
  __wbg_authorization_new: function(arg0) {
12671
12671
  const ret = Authorization.__wrap(arg0);
12672
12672
  return addHeapObject(ret);
12673
12673
  },
12674
- __wbg_buffer_7b5f53e46557d8f1: function(arg0) {
12675
- const ret = getObject(arg0).buffer;
12676
- return addHeapObject(ret);
12677
- },
12678
12674
  __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
12679
12675
  const ret = getObject(arg0).call(getObject(arg1));
12680
12676
  return addHeapObject(ret);
@@ -12695,10 +12691,6 @@ function __wbg_get_imports(memory) {
12695
12691
  const ret = getObject(arg0).crypto;
12696
12692
  return addHeapObject(ret);
12697
12693
  },
12698
- __wbg_data_5330da50312d0bc1: function(arg0) {
12699
- const ret = getObject(arg0).data;
12700
- return addHeapObject(ret);
12701
- },
12702
12694
  __wbg_done_57b39ecd9addfe81: function(arg0) {
12703
12695
  const ret = getObject(arg0).done;
12704
12696
  return ret;
@@ -12791,7 +12783,7 @@ function __wbg_get_imports(memory) {
12791
12783
  const ret = getObject(arg0).length;
12792
12784
  return ret;
12793
12785
  },
12794
- __wbg_log_bf427d7de6a9bf32: function(arg0, arg1) {
12786
+ __wbg_log_0abfb47eeb8fef6e: function(arg0, arg1) {
12795
12787
  console.log(getStringFromWasm0(arg0, arg1));
12796
12788
  },
12797
12789
  __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
@@ -12806,10 +12798,6 @@ function __wbg_get_imports(memory) {
12806
12798
  const ret = new Array();
12807
12799
  return addHeapObject(ret);
12808
12800
  },
12809
- __wbg_new_4f8f3c123e474358: function() { return handleError(function (arg0, arg1) {
12810
- const ret = new Worker(getStringFromWasm0(arg0, arg1));
12811
- return addHeapObject(ret);
12812
- }, arguments); },
12813
12801
  __wbg_new_64284bd487f9d239: function() { return handleError(function () {
12814
12802
  const ret = new Headers();
12815
12803
  return addHeapObject(ret);
@@ -12818,10 +12806,6 @@ function __wbg_get_imports(memory) {
12818
12806
  const ret = new XMLHttpRequest();
12819
12807
  return addHeapObject(ret);
12820
12808
  }, arguments); },
12821
- __wbg_new_72c627ba80de1c21: function(arg0) {
12822
- const ret = new Int32Array(getObject(arg0));
12823
- return addHeapObject(ret);
12824
- },
12825
12809
  __wbg_new_8a6f238a6ece86ea: function() {
12826
12810
  const ret = new Error();
12827
12811
  return addHeapObject(ret);
@@ -12833,7 +12817,7 @@ function __wbg_get_imports(memory) {
12833
12817
  const a = state0.a;
12834
12818
  state0.a = 0;
12835
12819
  try {
12836
- return __wasm_bindgen_func_elem_6953(a, state0.b, arg0, arg1);
12820
+ return __wasm_bindgen_func_elem_13242(a, state0.b, arg0, arg1);
12837
12821
  } finally {
12838
12822
  state0.a = a;
12839
12823
  }
@@ -12884,10 +12868,6 @@ function __wbg_get_imports(memory) {
12884
12868
  const ret = getObject(arg0).node;
12885
12869
  return addHeapObject(ret);
12886
12870
  },
12887
- __wbg_of_ddc0942b0dce16a1: function(arg0, arg1, arg2) {
12888
- const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
12889
- return addHeapObject(ret);
12890
- },
12891
12871
  __wbg_open_d6878fc86d07ad1d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
12892
12872
  getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
12893
12873
  }, arguments); },
@@ -12898,9 +12878,6 @@ function __wbg_get_imports(memory) {
12898
12878
  const ret = Plaintext.__wrap(arg0);
12899
12879
  return addHeapObject(ret);
12900
12880
  },
12901
- __wbg_postMessage_771ef3293a28bbac: function() { return handleError(function (arg0, arg1) {
12902
- getObject(arg0).postMessage(getObject(arg1));
12903
- }, arguments); },
12904
12881
  __wbg_process_3975fd6c72f520aa: function(arg0) {
12905
12882
  const ret = getObject(arg0).process;
12906
12883
  return addHeapObject(ret);
@@ -12989,9 +12966,6 @@ function __wbg_get_imports(memory) {
12989
12966
  __wbg_set_mode_b13642c312648202: function(arg0, arg1) {
12990
12967
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
12991
12968
  },
12992
- __wbg_set_onmessage_6ed41050e4a5cee2: function(arg0, arg1) {
12993
- getObject(arg0).onmessage = getObject(arg1);
12994
- },
12995
12969
  __wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
12996
12970
  getObject(arg0).signal = getObject(arg1);
12997
12971
  },
@@ -13003,7 +12977,7 @@ function __wbg_get_imports(memory) {
13003
12977
  const ret = Signature.__wrap(arg0);
13004
12978
  return addHeapObject(ret);
13005
12979
  },
13006
- __wbg_spawnWorker_dbf0b39172b37e8e: function(arg0, arg1, arg2, arg3) {
12980
+ __wbg_spawnWorker_c15d64587eb95ecb: function(arg0, arg1, arg2, arg3) {
13007
12981
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
13008
12982
  return addHeapObject(ret);
13009
12983
  },
@@ -13073,10 +13047,6 @@ function __wbg_get_imports(memory) {
13073
13047
  const ret = getObject(arg0).value;
13074
13048
  return addHeapObject(ret);
13075
13049
  },
13076
- __wbg_value_fe6ee34af5dc3dce: function(arg0) {
13077
- const ret = getObject(arg0).value;
13078
- return addHeapObject(ret);
13079
- },
13080
13050
  __wbg_verifyingkey_new: function(arg0) {
13081
13051
  const ret = VerifyingKey.__wrap(arg0);
13082
13052
  return addHeapObject(ret);
@@ -13085,78 +13055,51 @@ function __wbg_get_imports(memory) {
13085
13055
  const ret = getObject(arg0).versions;
13086
13056
  return addHeapObject(ret);
13087
13057
  },
13088
- __wbg_waitAsync_a58b2134bff39c3e: function(arg0, arg1, arg2) {
13089
- const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
13090
- return addHeapObject(ret);
13091
- },
13092
- __wbg_waitAsync_c0a39a7d3318d91e: function() {
13093
- const ret = Atomics.waitAsync;
13094
- return addHeapObject(ret);
13095
- },
13096
13058
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
13097
- // Cast intrinsic for `Closure(Closure { dtor_idx: 429, function: Function { arguments: [Externref], shim_idx: 430, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13098
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7409, __wasm_bindgen_func_elem_8089);
13059
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1560, function: Function { arguments: [], shim_idx: 1561, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13060
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_10039, __wasm_bindgen_func_elem_10047);
13099
13061
  return addHeapObject(ret);
13100
13062
  },
13101
13063
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
13102
- // Cast intrinsic for `Closure(Closure { dtor_idx: 429, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 430, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13103
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7409, __wasm_bindgen_func_elem_8089);
13104
- return addHeapObject(ret);
13105
- },
13106
- __wbindgen_cast_0000000000000003: function(arg0, arg1) {
13107
- // Cast intrinsic for `Closure(Closure { dtor_idx: 429, function: Function { arguments: [], shim_idx: 545, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13108
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7409, __wasm_bindgen_func_elem_7410);
13064
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1582, function: Function { arguments: [Externref], shim_idx: 1583, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13065
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_10104, __wasm_bindgen_func_elem_10084);
13109
13066
  return addHeapObject(ret);
13110
13067
  },
13111
- __wbindgen_cast_0000000000000004: function(arg0) {
13068
+ __wbindgen_cast_0000000000000003: function(arg0) {
13112
13069
  // Cast intrinsic for `F64 -> Externref`.
13113
13070
  const ret = arg0;
13114
13071
  return addHeapObject(ret);
13115
13072
  },
13116
- __wbindgen_cast_0000000000000005: function(arg0, arg1) {
13073
+ __wbindgen_cast_0000000000000004: function(arg0, arg1) {
13117
13074
  // Cast intrinsic for `I128 -> Externref`.
13118
13075
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
13119
13076
  return addHeapObject(ret);
13120
13077
  },
13121
- __wbindgen_cast_0000000000000006: function(arg0) {
13078
+ __wbindgen_cast_0000000000000005: function(arg0) {
13122
13079
  // Cast intrinsic for `I64 -> Externref`.
13123
13080
  const ret = arg0;
13124
13081
  return addHeapObject(ret);
13125
13082
  },
13126
- __wbindgen_cast_0000000000000007: function(arg0, arg1) {
13083
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
13127
13084
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
13128
13085
  const ret = getArrayU8FromWasm0(arg0, arg1);
13129
13086
  return addHeapObject(ret);
13130
13087
  },
13131
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
13088
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
13132
13089
  // Cast intrinsic for `Ref(String) -> Externref`.
13133
13090
  const ret = getStringFromWasm0(arg0, arg1);
13134
13091
  return addHeapObject(ret);
13135
13092
  },
13136
- __wbindgen_cast_0000000000000009: function(arg0, arg1) {
13093
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
13137
13094
  // Cast intrinsic for `U128 -> Externref`.
13138
13095
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
13139
13096
  return addHeapObject(ret);
13140
13097
  },
13141
- __wbindgen_cast_000000000000000a: function(arg0) {
13098
+ __wbindgen_cast_0000000000000009: function(arg0) {
13142
13099
  // Cast intrinsic for `U64 -> Externref`.
13143
13100
  const ret = BigInt.asUintN(64, arg0);
13144
13101
  return addHeapObject(ret);
13145
13102
  },
13146
- __wbindgen_link_0b1f76d235fd2b86: function(arg0) {
13147
- const val = `onmessage = function (ev) {
13148
- let [ia, index, value] = ev.data;
13149
- ia = new Int32Array(ia.buffer);
13150
- let result = Atomics.wait(ia, index, value);
13151
- postMessage(result);
13152
- };
13153
- `;
13154
- const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
13155
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
13156
- const len1 = WASM_VECTOR_LEN;
13157
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
13158
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
13159
- },
13160
13103
  __wbindgen_object_clone_ref: function(arg0) {
13161
13104
  const ret = getObject(arg0);
13162
13105
  return addHeapObject(ret);
@@ -13164,24 +13107,23 @@ function __wbg_get_imports(memory) {
13164
13107
  __wbindgen_object_drop_ref: function(arg0) {
13165
13108
  takeObject(arg0);
13166
13109
  },
13167
- memory: memory || new WebAssembly.Memory({initial:168,maximum:65536,shared:true}),
13168
13110
  };
13169
13111
  return {
13170
13112
  __proto__: null,
13171
- "./index_bg.js": import0,
13113
+ "./aleo_wasm_bg.js": import0,
13172
13114
  };
13173
13115
  }
13174
13116
 
13175
- function __wasm_bindgen_func_elem_7410(arg0, arg1) {
13176
- wasm.__wasm_bindgen_func_elem_7410(arg0, arg1);
13117
+ function __wasm_bindgen_func_elem_10047(arg0, arg1) {
13118
+ wasm.__wasm_bindgen_func_elem_10047(arg0, arg1);
13177
13119
  }
13178
13120
 
13179
- function __wasm_bindgen_func_elem_8089(arg0, arg1, arg2) {
13180
- wasm.__wasm_bindgen_func_elem_8089(arg0, arg1, addHeapObject(arg2));
13121
+ function __wasm_bindgen_func_elem_10084(arg0, arg1, arg2) {
13122
+ wasm.__wasm_bindgen_func_elem_10084(arg0, arg1, addHeapObject(arg2));
13181
13123
  }
13182
13124
 
13183
- function __wasm_bindgen_func_elem_6953(arg0, arg1, arg2, arg3) {
13184
- wasm.__wasm_bindgen_func_elem_6953(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
13125
+ function __wasm_bindgen_func_elem_13242(arg0, arg1, arg2, arg3) {
13126
+ wasm.__wasm_bindgen_func_elem_13242(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
13185
13127
  }
13186
13128
 
13187
13129
 
@@ -13365,6 +13307,71 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
13365
13307
  ? { register: () => {}, unregister: () => {} }
13366
13308
  : new FinalizationRegistry(state => state.dtor(state.a, state.b));
13367
13309
 
13310
+ function debugString(val) {
13311
+ // primitive types
13312
+ const type = typeof val;
13313
+ if (type == 'number' || type == 'boolean' || val == null) {
13314
+ return `${val}`;
13315
+ }
13316
+ if (type == 'string') {
13317
+ return `"${val}"`;
13318
+ }
13319
+ if (type == 'symbol') {
13320
+ const description = val.description;
13321
+ if (description == null) {
13322
+ return 'Symbol';
13323
+ } else {
13324
+ return `Symbol(${description})`;
13325
+ }
13326
+ }
13327
+ if (type == 'function') {
13328
+ const name = val.name;
13329
+ if (typeof name == 'string' && name.length > 0) {
13330
+ return `Function(${name})`;
13331
+ } else {
13332
+ return 'Function';
13333
+ }
13334
+ }
13335
+ // objects
13336
+ if (Array.isArray(val)) {
13337
+ const length = val.length;
13338
+ let debug = '[';
13339
+ if (length > 0) {
13340
+ debug += debugString(val[0]);
13341
+ }
13342
+ for(let i = 1; i < length; i++) {
13343
+ debug += ', ' + debugString(val[i]);
13344
+ }
13345
+ debug += ']';
13346
+ return debug;
13347
+ }
13348
+ // Test for built-in
13349
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
13350
+ let className;
13351
+ if (builtInMatches && builtInMatches.length > 1) {
13352
+ className = builtInMatches[1];
13353
+ } else {
13354
+ // Failed to match the standard '[object ClassName]'
13355
+ return toString.call(val);
13356
+ }
13357
+ if (className == 'Object') {
13358
+ // we're a user defined class or Object
13359
+ // JSON.stringify avoids problems with cycles, and is generally much
13360
+ // easier than looping through ownProperties of `val`.
13361
+ try {
13362
+ return 'Object(' + JSON.stringify(val) + ')';
13363
+ } catch (_) {
13364
+ return 'Object';
13365
+ }
13366
+ }
13367
+ // errors
13368
+ if (val instanceof Error) {
13369
+ return `${val.name}: ${val.message}\n${val.stack}`;
13370
+ }
13371
+ // TODO we could test for more things here, like `Set`s and `Map`s.
13372
+ return className;
13373
+ }
13374
+
13368
13375
  function dropObject(idx) {
13369
13376
  if (idx < 132) return;
13370
13377
  heap[idx] = heap_next;
@@ -13388,7 +13395,7 @@ function getArrayU8FromWasm0(ptr, len) {
13388
13395
 
13389
13396
  let cachedDataViewMemory0 = null;
13390
13397
  function getDataViewMemory0() {
13391
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
13398
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
13392
13399
  cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
13393
13400
  }
13394
13401
  return cachedDataViewMemory0;
@@ -13401,7 +13408,7 @@ function getStringFromWasm0(ptr, len) {
13401
13408
 
13402
13409
  let cachedUint8ArrayMemory0 = null;
13403
13410
  function getUint8ArrayMemory0() {
13404
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
13411
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13405
13412
  cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
13406
13413
  }
13407
13414
  return cachedUint8ArrayMemory0;
@@ -13516,9 +13523,8 @@ function takeObject(idx) {
13516
13523
  return ret;
13517
13524
  }
13518
13525
 
13519
- let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
13520
- if (cachedTextDecoder) cachedTextDecoder.decode();
13521
-
13526
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13527
+ cachedTextDecoder.decode();
13522
13528
  const MAX_SAFARI_DECODE_BYTES = 2146435072;
13523
13529
  let numBytesDecoded = 0;
13524
13530
  function decodeText(ptr, len) {
@@ -13528,12 +13534,12 @@ function decodeText(ptr, len) {
13528
13534
  cachedTextDecoder.decode();
13529
13535
  numBytesDecoded = len;
13530
13536
  }
13531
- return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
13537
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
13532
13538
  }
13533
13539
 
13534
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
13540
+ const cachedTextEncoder = new TextEncoder();
13535
13541
 
13536
- if (cachedTextEncoder) {
13542
+ if (!('encodeInto' in cachedTextEncoder)) {
13537
13543
  cachedTextEncoder.encodeInto = function (arg, view) {
13538
13544
  const buf = cachedTextEncoder.encode(arg);
13539
13545
  view.set(buf);
@@ -13547,15 +13553,11 @@ if (cachedTextEncoder) {
13547
13553
  let WASM_VECTOR_LEN = 0;
13548
13554
 
13549
13555
  let wasmModule, wasm;
13550
- function __wbg_finalize_init(instance, module, thread_stack_size) {
13556
+ function __wbg_finalize_init(instance, module) {
13551
13557
  wasm = instance.exports;
13552
13558
  wasmModule = module;
13553
13559
  cachedDataViewMemory0 = null;
13554
13560
  cachedUint8ArrayMemory0 = null;
13555
- if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
13556
- throw 'invalid stack size';
13557
- }
13558
- wasm.__wbindgen_start(thread_stack_size);
13559
13561
  return wasm;
13560
13562
  }
13561
13563
 
@@ -13594,40 +13596,42 @@ async function __wbg_load(module, imports) {
13594
13596
  }
13595
13597
  }
13596
13598
 
13597
- function initSync(module, memory) {
13599
+ function initSync(module) {
13598
13600
  if (wasm !== undefined) return wasm;
13599
13601
 
13600
- let thread_stack_size;
13602
+
13601
13603
  if (module !== undefined) {
13602
13604
  if (Object.getPrototypeOf(module) === Object.prototype) {
13603
- ({module, memory, thread_stack_size} = module);
13605
+ ({module} = module);
13604
13606
  } else {
13605
13607
  console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
13606
13608
  }
13607
13609
  }
13608
13610
 
13609
- const imports = __wbg_get_imports(memory);
13611
+ const imports = __wbg_get_imports();
13610
13612
  if (!(module instanceof WebAssembly.Module)) {
13611
13613
  module = new WebAssembly.Module(module);
13612
13614
  }
13613
13615
  const instance = new WebAssembly.Instance(module, imports);
13614
- return __wbg_finalize_init(instance, module, thread_stack_size);
13616
+ return __wbg_finalize_init(instance, module);
13615
13617
  }
13616
13618
 
13617
- async function __wbg_init(module_or_path, memory) {
13619
+ async function __wbg_init(module_or_path) {
13618
13620
  if (wasm !== undefined) return wasm;
13619
13621
 
13620
- let thread_stack_size;
13622
+
13621
13623
  if (module_or_path !== undefined) {
13622
13624
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
13623
- ({module_or_path, memory, thread_stack_size} = module_or_path);
13625
+ ({module_or_path} = module_or_path);
13624
13626
  } else {
13625
13627
  console.warn('using deprecated parameters for the initialization function; pass a single object instead');
13626
13628
  }
13627
13629
  }
13628
13630
 
13629
-
13630
- const imports = __wbg_get_imports(memory);
13631
+ if (module_or_path === undefined) {
13632
+ module_or_path = new URL('../aleo_wasm.wasm', import.meta.url);
13633
+ }
13634
+ const imports = __wbg_get_imports();
13631
13635
 
13632
13636
  if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
13633
13637
  module_or_path = fetch(module_or_path);
@@ -13635,13 +13639,9 @@ async function __wbg_init(module_or_path, memory) {
13635
13639
 
13636
13640
  const { instance, module } = await __wbg_load(await module_or_path, imports);
13637
13641
 
13638
- return __wbg_finalize_init(instance, module, thread_stack_size);
13642
+ return __wbg_finalize_init(instance, module);
13639
13643
  }
13640
13644
 
13641
- const module$1 = new URL("aleo_wasm.wasm", import.meta.url);
13642
-
13643
- await __wbg_init({ module_or_path: module$1 });
13644
-
13645
13645
  async function initThreadPool(threads) {
13646
13646
  if (threads == null) {
13647
13647
  threads = navigator.hardwareConcurrency;
@@ -13652,5 +13652,5 @@ async function initThreadPool(threads) {
13652
13652
  await initThreadPool$1(new URL("worker.js", import.meta.url), threads);
13653
13653
  }
13654
13654
 
13655
- export { Address, Authorization, BHP1024, BHP256, BHP512, BHP768, Boolean, Ciphertext, ComputeKey, EncryptionToolkit, Execution, ExecutionRequest, ExecutionResponse, Field, GraphKey, Group, I128, I16, I32, I64, I8, KeyPair, Metadata, OfflineQuery, Pedersen128, Pedersen64, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, Transaction, Transition, U128, U16, U32, U64, U8, VerifyingKey, ViewKey, getOrInitConsensusVersionTestHeights, initSync, initThreadPool, runRayonThread, verifyFunctionExecution };
13655
+ export { Address, Authorization, BHP1024, BHP256, BHP512, BHP768, Boolean, Ciphertext, ComputeKey, EncryptionToolkit, Execution, ExecutionRequest, ExecutionResponse, Field, GraphKey, Group, I128, I16, I32, I64, I8, KeyPair, Metadata, OfflineQuery, Pedersen128, Pedersen64, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, Transaction, Transition, U128, U16, U32, U64, U8, VerifyingKey, ViewKey, __wbg_init as default, getOrInitConsensusVersionTestHeights, initSync, initThreadPool, runRayonThread, verifyFunctionExecution };
13656
13656
  //# sourceMappingURL=index.js.map