@provablehq/wasm 0.9.16 → 0.9.17

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.
@@ -56,9 +56,10 @@ export class Address {
56
56
  */
57
57
  static fromFields(fields: Array<any>): Address;
58
58
  /**
59
- * Create an aleo address object from a string representation of an address
59
+ * Create an aleo address object from a string representation of an address.
60
+ * The input is automatically lowercased before parsing.
60
61
  *
61
- * @param {string} address String representation of an addressm
62
+ * @param {string} address String representation of an address
62
63
  * @returns {Address} Address
63
64
  */
64
65
  static from_string(address: string): Address;
@@ -122,6 +123,7 @@ export class Address {
122
123
  verify(message: Uint8Array, signature: Signature): boolean;
123
124
  /**
124
125
  * Check if the input is a valid Aleo address.
126
+ * String addresses are automatically lowercased before validation.
125
127
  *
126
128
  * @param {string | Uint8Array} address - Either a string representation of an address
127
129
  * or a Uint8Array of bytes in little-endian format.
Binary file
@@ -384,16 +384,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
384
384
  }
385
385
  return result;
386
386
  }
387
- function __wasm_bindgen_func_elem_7853(arg0, arg1, arg2) {
388
- wasm.__wasm_bindgen_func_elem_7853(arg0, arg1, addHeapObject(arg2));
387
+ function __wasm_bindgen_func_elem_6535(arg0, arg1) {
388
+ wasm.__wasm_bindgen_func_elem_6535(arg0, arg1);
389
389
  }
390
390
 
391
- function __wasm_bindgen_func_elem_6534(arg0, arg1) {
392
- wasm.__wasm_bindgen_func_elem_6534(arg0, arg1);
391
+ function __wasm_bindgen_func_elem_7853(arg0, arg1, arg2) {
392
+ wasm.__wasm_bindgen_func_elem_7853(arg0, arg1, addHeapObject(arg2));
393
393
  }
394
394
 
395
- function __wasm_bindgen_func_elem_6807(arg0, arg1, arg2, arg3) {
396
- wasm.__wasm_bindgen_func_elem_6807(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
395
+ function __wasm_bindgen_func_elem_6806(arg0, arg1, arg2, arg3) {
396
+ wasm.__wasm_bindgen_func_elem_6806(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
397
397
  }
398
398
 
399
399
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -475,9 +475,10 @@ class Address {
475
475
  }
476
476
  }
477
477
  /**
478
- * Create an aleo address object from a string representation of an address
478
+ * Create an aleo address object from a string representation of an address.
479
+ * The input is automatically lowercased before parsing.
479
480
  *
480
- * @param {string} address String representation of an addressm
481
+ * @param {string} address String representation of an address
481
482
  * @returns {Address} Address
482
483
  * @param {string} address
483
484
  * @returns {Address}
@@ -644,6 +645,7 @@ class Address {
644
645
  }
645
646
  /**
646
647
  * Check if the input is a valid Aleo address.
648
+ * String addresses are automatically lowercased before validation.
647
649
  *
648
650
  * @param {string | Uint8Array} address - Either a string representation of an address
649
651
  * or a Uint8Array of bytes in little-endian format.
@@ -13737,7 +13739,7 @@ function __wbg_get_imports(memory) {
13737
13739
  const ret = getObject(arg0).length;
13738
13740
  return ret;
13739
13741
  };
13740
- imports.wbg.__wbg_log_6bd18bf94843f657 = function(arg0, arg1) {
13742
+ imports.wbg.__wbg_log_da706f3ee1a5f304 = function(arg0, arg1) {
13741
13743
  console.log(getStringFromWasm0(arg0, arg1));
13742
13744
  };
13743
13745
  imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
@@ -13759,7 +13761,7 @@ function __wbg_get_imports(memory) {
13759
13761
  const a = state0.a;
13760
13762
  state0.a = 0;
13761
13763
  try {
13762
- return __wasm_bindgen_func_elem_6807(a, state0.b, arg0, arg1);
13764
+ return __wasm_bindgen_func_elem_6806(a, state0.b, arg0, arg1);
13763
13765
  } finally {
13764
13766
  state0.a = a;
13765
13767
  }
@@ -13946,7 +13948,7 @@ function __wbg_get_imports(memory) {
13946
13948
  const ret = Signature.__wrap(arg0);
13947
13949
  return addHeapObject(ret);
13948
13950
  };
13949
- imports.wbg.__wbg_spawnWorker_7454d183f3803c13 = function(arg0, arg1, arg2, arg3) {
13951
+ imports.wbg.__wbg_spawnWorker_7eb1fa5a91d68539 = function(arg0, arg1, arg2, arg3) {
13950
13952
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
13951
13953
  return addHeapObject(ret);
13952
13954
  };
@@ -14038,12 +14040,12 @@ function __wbg_get_imports(memory) {
14038
14040
  };
14039
14041
  imports.wbg.__wbindgen_cast_06d105bd9273956e = function(arg0, arg1) {
14040
14042
  // Cast intrinsic for `Closure(Closure { dtor_idx: 418, function: Function { arguments: [], shim_idx: 507, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
14041
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6533, __wasm_bindgen_func_elem_6534);
14043
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6534, __wasm_bindgen_func_elem_6535);
14042
14044
  return addHeapObject(ret);
14043
14045
  };
14044
14046
  imports.wbg.__wbindgen_cast_07555e2579ff3863 = function(arg0, arg1) {
14045
14047
  // Cast intrinsic for `Closure(Closure { dtor_idx: 418, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 419, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
14046
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6533, __wasm_bindgen_func_elem_7853);
14048
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6534, __wasm_bindgen_func_elem_7853);
14047
14049
  return addHeapObject(ret);
14048
14050
  };
14049
14051
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -14063,7 +14065,7 @@ function __wbg_get_imports(memory) {
14063
14065
  };
14064
14066
  imports.wbg.__wbindgen_cast_72bd42f236eeae61 = function(arg0, arg1) {
14065
14067
  // Cast intrinsic for `Closure(Closure { dtor_idx: 418, function: Function { arguments: [Externref], shim_idx: 419, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
14066
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6533, __wasm_bindgen_func_elem_7853);
14068
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_6534, __wasm_bindgen_func_elem_7853);
14067
14069
  return addHeapObject(ret);
14068
14070
  };
14069
14071
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {