tkms 0.9.0-rc27 → 0.9.0-rc29

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
@@ -371,10 +371,25 @@ export interface InitOutput {
371
371
  readonly memory: WebAssembly.Memory;
372
372
  readonly __wbg_client_free: (a: number, b: number) => void;
373
373
  readonly __wbg_parsedreencryptionrequest_free: (a: number, b: number) => void;
374
- readonly __wbg_publicenckey_free: (a: number, b: number) => void;
375
- readonly __wbg_privateenckey_free: (a: number, b: number) => void;
376
- readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
377
- readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
374
+ readonly public_sig_key_to_u8vec: (a: number) => Array;
375
+ readonly u8vec_to_public_sig_key: (a: number, b: number) => Array;
376
+ readonly private_sig_key_to_u8vec: (a: number) => Array;
377
+ readonly u8vec_to_private_sig_key: (a: number, b: number) => Array;
378
+ readonly new_client: (a: number, b: number, c: number, d: number, e: number, f: number) => Array;
379
+ readonly get_server_addrs: (a: number) => Array;
380
+ readonly get_client_secret_key: (a: number) => number;
381
+ readonly get_client_address: (a: number) => Array;
382
+ readonly __wbg_cryptoboxct_free: (a: number, b: number) => void;
383
+ readonly cryptobox_keygen: () => number;
384
+ readonly cryptobox_get_pk: (a: number) => number;
385
+ readonly cryptobox_pk_to_u8vec: (a: number) => Array;
386
+ readonly cryptobox_sk_to_u8vec: (a: number) => Array;
387
+ readonly u8vec_to_cryptobox_pk: (a: number, b: number) => Array;
388
+ readonly u8vec_to_cryptobox_sk: (a: number, b: number) => Array;
389
+ readonly cryptobox_encrypt: (a: number, b: number, c: number, d: number) => number;
390
+ readonly cryptobox_decrypt: (a: number, b: number, c: number) => Array;
391
+ readonly process_reencryption_resp_from_js: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => Array;
392
+ readonly process_reencryption_resp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array;
378
393
  readonly __wbg_requestid_free: (a: number, b: number) => void;
379
394
  readonly __wbg_reencryptionrequestpayload_free: (a: number, b: number) => void;
380
395
  readonly __wbg_get_reencryptionrequestpayload_version: (a: number) => number;
@@ -433,25 +448,10 @@ export interface InitOutput {
433
448
  readonly __wbg_get_reencryptionresponsepayload_signcrypted_ciphertext: (a: number) => Array;
434
449
  readonly __wbg_get_requestid_request_id: (a: number) => Array;
435
450
  readonly __wbg_get_reencryptionrequestpayload_client_address: (a: number) => Array;
436
- readonly public_sig_key_to_u8vec: (a: number) => Array;
437
- readonly u8vec_to_public_sig_key: (a: number, b: number) => Array;
438
- readonly private_sig_key_to_u8vec: (a: number) => Array;
439
- readonly u8vec_to_private_sig_key: (a: number, b: number) => Array;
440
- readonly new_client: (a: number, b: number, c: number, d: number, e: number, f: number) => Array;
441
- readonly get_server_addrs: (a: number) => Array;
442
- readonly get_client_secret_key: (a: number) => number;
443
- readonly get_client_address: (a: number) => Array;
444
- readonly __wbg_cryptoboxct_free: (a: number, b: number) => void;
445
- readonly cryptobox_keygen: () => number;
446
- readonly cryptobox_get_pk: (a: number) => number;
447
- readonly cryptobox_pk_to_u8vec: (a: number) => Array;
448
- readonly cryptobox_sk_to_u8vec: (a: number) => Array;
449
- readonly u8vec_to_cryptobox_pk: (a: number, b: number) => Array;
450
- readonly u8vec_to_cryptobox_sk: (a: number, b: number) => Array;
451
- readonly cryptobox_encrypt: (a: number, b: number, c: number, d: number) => number;
452
- readonly cryptobox_decrypt: (a: number, b: number, c: number) => Array;
453
- readonly process_reencryption_resp_from_js: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => Array;
454
- readonly process_reencryption_resp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array;
451
+ readonly __wbg_publicenckey_free: (a: number, b: number) => void;
452
+ readonly __wbg_privateenckey_free: (a: number, b: number) => void;
453
+ readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
454
+ readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
455
455
  readonly __wbg_plaintext_free: (a: number, b: number) => void;
456
456
  readonly __wbg_get_plaintext_bytes: (a: number) => Array;
457
457
  readonly __wbg_set_plaintext_bytes: (a: number, b: number, c: number) => void;
package/kms_lib.js CHANGED
@@ -152,24 +152,17 @@ function debugString(val) {
152
152
  return className;
153
153
  }
154
154
 
155
- function getArrayU8FromWasm0(ptr, len) {
156
- ptr = ptr >>> 0;
157
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
158
- }
159
-
160
- function passArray8ToWasm0(arg, malloc) {
161
- const ptr = malloc(arg.length * 1, 1) >>> 0;
162
- getUint8ArrayMemory0().set(arg, ptr / 1);
163
- WASM_VECTOR_LEN = arg.length;
164
- return ptr;
165
- }
166
-
167
155
  function _assertClass(instance, klass) {
168
156
  if (!(instance instanceof klass)) {
169
157
  throw new Error(`expected instance of ${klass.name}`);
170
158
  }
171
159
  return instance.ptr;
172
160
  }
161
+
162
+ function getArrayU8FromWasm0(ptr, len) {
163
+ ptr = ptr >>> 0;
164
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
165
+ }
173
166
  /**
174
167
  * @param {PublicSigKey} pk
175
168
  * @returns {Uint8Array}
@@ -182,6 +175,13 @@ export function public_sig_key_to_u8vec(pk) {
182
175
  return v1;
183
176
  }
184
177
 
178
+ function passArray8ToWasm0(arg, malloc) {
179
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
180
+ getUint8ArrayMemory0().set(arg, ptr / 1);
181
+ WASM_VECTOR_LEN = arg.length;
182
+ return ptr;
183
+ }
184
+
185
185
  function takeFromExternrefTable0(idx) {
186
186
  const value = wasm.__wbindgen_export_2.get(idx);
187
187
  wasm.__externref_table_dealloc(idx);
@@ -1535,14 +1535,6 @@ function __wbg_get_imports() {
1535
1535
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1536
1536
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1537
1537
  };
1538
- imports.wbg.__wbindgen_is_null = function(arg0) {
1539
- const ret = arg0 === null;
1540
- return ret;
1541
- };
1542
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1543
- const ret = arg0 === undefined;
1544
- return ret;
1545
- };
1546
1538
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1547
1539
  const obj = arg1;
1548
1540
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1556,10 +1548,18 @@ function __wbg_get_imports() {
1556
1548
  const ret = typeof(val) === 'object' && val !== null;
1557
1549
  return ret;
1558
1550
  };
1551
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
1552
+ const ret = arg0 === undefined;
1553
+ return ret;
1554
+ };
1559
1555
  imports.wbg.__wbindgen_in = function(arg0, arg1) {
1560
1556
  const ret = arg0 in arg1;
1561
1557
  return ret;
1562
1558
  };
1559
+ imports.wbg.__wbindgen_is_null = function(arg0) {
1560
+ const ret = arg0 === null;
1561
+ return ret;
1562
+ };
1563
1563
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1564
1564
  const ret = arg0 == arg1;
1565
1565
  return ret;
package/kms_lib_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Zama"
6
6
  ],
7
- "version": "0.9.0-rc27",
7
+ "version": "0.9.0-rc29",
8
8
  "license": "BSD-3-Clause-Clear",
9
9
  "files": [
10
10
  "kms_lib_bg.wasm",