node-tkms 0.9.0-rc4 → 0.9.0-rc5

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/kms_lib.d.ts CHANGED
@@ -31,17 +31,17 @@ export function u8vec_to_private_sig_key(v: Uint8Array): PrivateSigKey;
31
31
  *
32
32
  * * `param_choice` - the parameter choice, which can be either `"test"` or `"default"`.
33
33
  * The "default" parameter choice is selected if no matching string is found.
34
- * @param {(PublicSigKey)[]} server_pks
34
+ * @param {(string)[]} server_addrs
35
35
  * @param {string} client_address_hex
36
36
  * @param {string} param_choice
37
37
  * @returns {Client}
38
38
  */
39
- export function new_client(server_pks: (PublicSigKey)[], client_address_hex: string, param_choice: string): Client;
39
+ export function new_client(server_addrs: (string)[], client_address_hex: string, param_choice: string): Client;
40
40
  /**
41
41
  * @param {Client} client
42
- * @returns {(PublicSigKey)[]}
42
+ * @returns {(string)[]}
43
43
  */
44
- export function get_server_public_keys(client: Client): (PublicSigKey)[];
44
+ export function get_server_addrs(client: Client): (string)[];
45
45
  /**
46
46
  * @param {Client} client
47
47
  * @returns {PrivateSigKey | undefined}
package/kms_lib.js CHANGED
@@ -310,15 +310,15 @@ function passArrayJsValueToWasm0(array, malloc) {
310
310
  *
311
311
  * * `param_choice` - the parameter choice, which can be either `"test"` or `"default"`.
312
312
  * The "default" parameter choice is selected if no matching string is found.
313
- * @param {(PublicSigKey)[]} server_pks
313
+ * @param {(string)[]} server_addrs
314
314
  * @param {string} client_address_hex
315
315
  * @param {string} param_choice
316
316
  * @returns {Client}
317
317
  */
318
- module.exports.new_client = function(server_pks, client_address_hex, param_choice) {
318
+ module.exports.new_client = function(server_addrs, client_address_hex, param_choice) {
319
319
  try {
320
320
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
321
- const ptr0 = passArrayJsValueToWasm0(server_pks, wasm.__wbindgen_malloc);
321
+ const ptr0 = passArrayJsValueToWasm0(server_addrs, wasm.__wbindgen_malloc);
322
322
  const len0 = WASM_VECTOR_LEN;
323
323
  const ptr1 = passStringToWasm0(client_address_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
324
324
  const len1 = WASM_VECTOR_LEN;
@@ -348,13 +348,13 @@ function getArrayJsValueFromWasm0(ptr, len) {
348
348
  }
349
349
  /**
350
350
  * @param {Client} client
351
- * @returns {(PublicSigKey)[]}
351
+ * @returns {(string)[]}
352
352
  */
353
- module.exports.get_server_public_keys = function(client) {
353
+ module.exports.get_server_addrs = function(client) {
354
354
  try {
355
355
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
356
356
  _assertClass(client, Client);
357
- wasm.get_server_public_keys(retptr, client.__wbg_ptr);
357
+ wasm.get_server_addrs(retptr, client.__wbg_ptr);
358
358
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
359
359
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
360
360
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
@@ -1101,13 +1101,6 @@ class PublicSigKey {
1101
1101
  return obj;
1102
1102
  }
1103
1103
 
1104
- static __unwrap(jsValue) {
1105
- if (!(jsValue instanceof PublicSigKey)) {
1106
- return 0;
1107
- }
1108
- return jsValue.__destroy_into_raw();
1109
- }
1110
-
1111
1104
  __destroy_into_raw() {
1112
1105
  const ptr = this.__wbg_ptr;
1113
1106
  this.__wbg_ptr = 0;
@@ -1750,16 +1743,6 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
1750
1743
  takeObject(arg0);
1751
1744
  };
1752
1745
 
1753
- module.exports.__wbg_publicsigkey_new = function(arg0) {
1754
- const ret = PublicSigKey.__wrap(arg0);
1755
- return addHeapObject(ret);
1756
- };
1757
-
1758
- module.exports.__wbg_publicsigkey_unwrap = function(arg0) {
1759
- const ret = PublicSigKey.__unwrap(takeObject(arg0));
1760
- return ret;
1761
- };
1762
-
1763
1746
  module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
1764
1747
  const ret = ReencryptionResponse.__unwrap(takeObject(arg0));
1765
1748
  return ret;
package/kms_lib_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Zama"
5
5
  ],
6
- "version": "0.9.0-rc4",
6
+ "version": "0.9.0-rc5",
7
7
  "license": "BSD-3-Clause-Clear",
8
8
  "files": [
9
9
  "kms_lib_bg.wasm",