tkms 0.9.0-rc30 → 0.9.0-rc33

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
@@ -213,6 +213,8 @@ export enum FheType {
213
213
  Euint2048 = 11,
214
214
  }
215
215
  /**
216
+ * Core Client
217
+ *
216
218
  * Simple client to interact with the KMS servers. This can be seen as a proof-of-concept
217
219
  * and reference code for validating the KMS. The logic supplied by the client will be
218
220
  * distributed across the aggregator/proxy and smart contracts.
@@ -242,10 +244,6 @@ export class Eip712DomainMsg {
242
244
  export class ParsedReencryptionRequest {
243
245
  free(): void;
244
246
  }
245
- export class Plaintext {
246
- free(): void;
247
- bytes: Uint8Array;
248
- }
249
247
  export class PrivateEncKey {
250
248
  free(): void;
251
249
  }
@@ -452,9 +450,6 @@ export interface InitOutput {
452
450
  readonly __wbg_privateenckey_free: (a: number, b: number) => void;
453
451
  readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
454
452
  readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
455
- readonly __wbg_plaintext_free: (a: number, b: number) => void;
456
- readonly __wbg_get_plaintext_bytes: (a: number) => Array;
457
- readonly __wbg_set_plaintext_bytes: (a: number, b: number, c: number) => void;
458
453
  readonly __wbindgen_malloc: (a: number, b: number) => number;
459
454
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
460
455
  readonly __wbindgen_export_2: WebAssembly.Table;
package/kms_lib.js CHANGED
@@ -585,6 +585,8 @@ const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
585
585
  ? { register: () => {}, unregister: () => {} }
586
586
  : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
587
587
  /**
588
+ * Core Client
589
+ *
588
590
  * Simple client to interact with the KMS servers. This can be seen as a proof-of-concept
589
591
  * and reference code for validating the KMS. The logic supplied by the client will be
590
592
  * distributed across the aggregator/proxy and smart contracts.
@@ -797,42 +799,6 @@ export class ParsedReencryptionRequest {
797
799
  }
798
800
  }
799
801
 
800
- const PlaintextFinalization = (typeof FinalizationRegistry === 'undefined')
801
- ? { register: () => {}, unregister: () => {} }
802
- : new FinalizationRegistry(ptr => wasm.__wbg_plaintext_free(ptr >>> 0, 1));
803
-
804
- export class Plaintext {
805
-
806
- __destroy_into_raw() {
807
- const ptr = this.__wbg_ptr;
808
- this.__wbg_ptr = 0;
809
- PlaintextFinalization.unregister(this);
810
- return ptr;
811
- }
812
-
813
- free() {
814
- const ptr = this.__destroy_into_raw();
815
- wasm.__wbg_plaintext_free(ptr, 0);
816
- }
817
- /**
818
- * @returns {Uint8Array}
819
- */
820
- get bytes() {
821
- const ret = wasm.__wbg_get_plaintext_bytes(this.__wbg_ptr);
822
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
823
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
824
- return v1;
825
- }
826
- /**
827
- * @param {Uint8Array} arg0
828
- */
829
- set bytes(arg0) {
830
- const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
831
- const len0 = WASM_VECTOR_LEN;
832
- wasm.__wbg_set_plaintext_bytes(this.__wbg_ptr, ptr0, len0);
833
- }
834
- }
835
-
836
802
  const PrivateEncKeyFinalization = (typeof FinalizationRegistry === 'undefined')
837
803
  ? { register: () => {}, unregister: () => {} }
838
804
  : new FinalizationRegistry(ptr => wasm.__wbg_privateenckey_free(ptr >>> 0, 1));
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-rc30",
7
+ "version": "0.9.0-rc33",
8
8
  "license": "BSD-3-Clause-Clear",
9
9
  "files": [
10
10
  "kms_lib_bg.wasm",