@puzzlehq/aleo-wasm-web 0.9.15 → 0.10.0

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.
Binary file
@@ -1730,7 +1730,7 @@ class ComputeKey {
1730
1730
  * @returns {Address}
1731
1731
  */
1732
1732
  address() {
1733
- const ret = wasm.computekey_address(this.__wbg_ptr);
1733
+ const ret = wasm.address_from_compute_key(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.computekey_pk_sig(this.__wbg_ptr);
1757
+ const ret = wasm.address_toGroup(this.__wbg_ptr);
1758
1758
  return Group.__wrap(ret);
1759
1759
  }
1760
1760
  /**
@@ -6601,7 +6601,7 @@ class PrivateKeyCiphertext {
6601
6601
  _assertClass(private_key, PrivateKey);
6602
6602
  const ptr0 = passStringToWasm0(secret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
6603
6603
  const len0 = WASM_VECTOR_LEN;
6604
- wasm.privatekey_toCiphertext(retptr, private_key.__wbg_ptr, ptr0, len0);
6604
+ wasm.privatekeyciphertext_encryptPrivateKey(retptr, private_key.__wbg_ptr, ptr0, len0);
6605
6605
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6606
6606
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6607
6607
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -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.encryptiontoolkit_decryptTransitionWithVk(retptr, this.__wbg_ptr, tvk.__wbg_ptr);
10031
+ wasm.transition_decryptTransition(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.computekey_pk_sig(this.__wbg_ptr);
10286
+ const ret = wasm.transition_tpk(this.__wbg_ptr);
10287
10287
  return Group.__wrap(ret);
10288
10288
  }
10289
10289
  /**
@@ -10426,7 +10426,7 @@ class U128 {
10426
10426
  try {
10427
10427
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10428
10428
  _assertClass(field, Field);
10429
- wasm.i128_fromField(retptr, field.__wbg_ptr);
10429
+ wasm.u128_fromField(retptr, field.__wbg_ptr);
10430
10430
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10431
10431
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10432
10432
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -10747,7 +10747,7 @@ class U16 {
10747
10747
  try {
10748
10748
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10749
10749
  _assertClass(field, Field);
10750
- wasm.i16_fromField(retptr, field.__wbg_ptr);
10750
+ wasm.u16_fromField(retptr, field.__wbg_ptr);
10751
10751
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10752
10752
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10753
10753
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11068,7 +11068,7 @@ class U32 {
11068
11068
  try {
11069
11069
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11070
11070
  _assertClass(field, Field);
11071
- wasm.i32_fromField(retptr, field.__wbg_ptr);
11071
+ wasm.u32_fromField(retptr, field.__wbg_ptr);
11072
11072
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11073
11073
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11074
11074
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11389,7 +11389,7 @@ class U64 {
11389
11389
  try {
11390
11390
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11391
11391
  _assertClass(field, Field);
11392
- wasm.i64_fromField(retptr, field.__wbg_ptr);
11392
+ wasm.u64_fromField(retptr, field.__wbg_ptr);
11393
11393
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11394
11394
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11395
11395
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -11710,7 +11710,7 @@ class U8 {
11710
11710
  try {
11711
11711
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11712
11712
  _assertClass(field, Field);
11713
- wasm.i8_fromField(retptr, field.__wbg_ptr);
11713
+ wasm.u8_fromField(retptr, field.__wbg_ptr);
11714
11714
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
11715
11715
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
11716
11716
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -12683,7 +12683,7 @@ function __wbg_get_imports() {
12683
12683
  const ret = Ciphertext.__wrap(arg0);
12684
12684
  return addHeapObject(ret);
12685
12685
  },
12686
- __wbg_clearTimeout_42d9ccd50822fd3a: function(arg0) {
12686
+ __wbg_clearTimeout_26e350acd8252ec6: function(arg0) {
12687
12687
  const ret = clearTimeout(takeObject(arg0));
12688
12688
  return addHeapObject(ret);
12689
12689
  },
@@ -12695,6 +12695,10 @@ function __wbg_get_imports() {
12695
12695
  const ret = getObject(arg0).done;
12696
12696
  return ret;
12697
12697
  },
12698
+ __wbg_entries_04679661ea6e74fc: function(arg0) {
12699
+ const ret = getObject(arg0).entries();
12700
+ return addHeapObject(ret);
12701
+ },
12698
12702
  __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
12699
12703
  let deferred0_0;
12700
12704
  let deferred0_1;
@@ -12710,7 +12714,7 @@ function __wbg_get_imports() {
12710
12714
  const ret = ExecutionResponse.__wrap(arg0);
12711
12715
  return addHeapObject(ret);
12712
12716
  },
12713
- __wbg_fetch_6bbc32f991730587: function(arg0) {
12717
+ __wbg_fetch_995a2faca6a97afe: function(arg0) {
12714
12718
  const ret = fetch(getObject(arg0));
12715
12719
  return addHeapObject(ret);
12716
12720
  },
@@ -12763,6 +12767,10 @@ function __wbg_get_imports() {
12763
12767
  const ret = result;
12764
12768
  return ret;
12765
12769
  },
12770
+ __wbg_isArray_d314bb98fcf08331: function(arg0) {
12771
+ const ret = Array.isArray(getObject(arg0));
12772
+ return ret;
12773
+ },
12766
12774
  __wbg_iterator_6ff6560ca1568e55: function() {
12767
12775
  const ret = Symbol.iterator;
12768
12776
  return addHeapObject(ret);
@@ -12783,7 +12791,7 @@ function __wbg_get_imports() {
12783
12791
  const ret = getObject(arg0).length;
12784
12792
  return ret;
12785
12793
  },
12786
- __wbg_log_0abfb47eeb8fef6e: function(arg0, arg1) {
12794
+ __wbg_log_ac59cda95e430a25: function(arg0, arg1) {
12787
12795
  console.log(getStringFromWasm0(arg0, arg1));
12788
12796
  },
12789
12797
  __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
@@ -12817,7 +12825,7 @@ function __wbg_get_imports() {
12817
12825
  const a = state0.a;
12818
12826
  state0.a = 0;
12819
12827
  try {
12820
- return __wasm_bindgen_func_elem_13242(a, state0.b, arg0, arg1);
12828
+ return __wasm_bindgen_func_elem_14247(a, state0.b, arg0, arg1);
12821
12829
  } finally {
12822
12830
  state0.a = a;
12823
12831
  }
@@ -12937,7 +12945,7 @@ function __wbg_get_imports() {
12937
12945
  __wbg_send_cbc176af9cea4fe7: function() { return handleError(function (arg0) {
12938
12946
  getObject(arg0).send();
12939
12947
  }, arguments); },
12940
- __wbg_setTimeout_4ec014681668a581: function(arg0, arg1) {
12948
+ __wbg_setTimeout_4360465139fa5dfe: function(arg0, arg1) {
12941
12949
  const ret = setTimeout(getObject(arg0), arg1);
12942
12950
  return addHeapObject(ret);
12943
12951
  },
@@ -12977,7 +12985,7 @@ function __wbg_get_imports() {
12977
12985
  const ret = Signature.__wrap(arg0);
12978
12986
  return addHeapObject(ret);
12979
12987
  },
12980
- __wbg_spawnWorker_c15d64587eb95ecb: function(arg0, arg1, arg2, arg3) {
12988
+ __wbg_spawnWorker_79f388c6ebdb6b9d: function(arg0, arg1, arg2, arg3) {
12981
12989
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
12982
12990
  return addHeapObject(ret);
12983
12991
  },
@@ -13020,6 +13028,10 @@ function __wbg_get_imports() {
13020
13028
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
13021
13029
  return addHeapObject(ret);
13022
13030
  },
13031
+ __wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
13032
+ const ret = getObject(arg0).text();
13033
+ return addHeapObject(ret);
13034
+ }, arguments); },
13023
13035
  __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
13024
13036
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
13025
13037
  return addHeapObject(ret);
@@ -13056,13 +13068,13 @@ function __wbg_get_imports() {
13056
13068
  return addHeapObject(ret);
13057
13069
  },
13058
13070
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
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);
13071
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1596, function: Function { arguments: [], shim_idx: 1597, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13072
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_10904, __wasm_bindgen_func_elem_10912);
13061
13073
  return addHeapObject(ret);
13062
13074
  },
13063
13075
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
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);
13076
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1618, function: Function { arguments: [Externref], shim_idx: 1619, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13077
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_10969, __wasm_bindgen_func_elem_10949);
13066
13078
  return addHeapObject(ret);
13067
13079
  },
13068
13080
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -13114,16 +13126,16 @@ function __wbg_get_imports() {
13114
13126
  };
13115
13127
  }
13116
13128
 
13117
- function __wasm_bindgen_func_elem_10047(arg0, arg1) {
13118
- wasm.__wasm_bindgen_func_elem_10047(arg0, arg1);
13129
+ function __wasm_bindgen_func_elem_10912(arg0, arg1) {
13130
+ wasm.__wasm_bindgen_func_elem_10912(arg0, arg1);
13119
13131
  }
13120
13132
 
13121
- function __wasm_bindgen_func_elem_10084(arg0, arg1, arg2) {
13122
- wasm.__wasm_bindgen_func_elem_10084(arg0, arg1, addHeapObject(arg2));
13133
+ function __wasm_bindgen_func_elem_10949(arg0, arg1, arg2) {
13134
+ wasm.__wasm_bindgen_func_elem_10949(arg0, arg1, addHeapObject(arg2));
13123
13135
  }
13124
13136
 
13125
- function __wasm_bindgen_func_elem_13242(arg0, arg1, arg2, arg3) {
13126
- wasm.__wasm_bindgen_func_elem_13242(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
13137
+ function __wasm_bindgen_func_elem_14247(arg0, arg1, arg2, arg3) {
13138
+ wasm.__wasm_bindgen_func_elem_14247(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
13127
13139
  }
13128
13140
 
13129
13141