node-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 +2 -4
- package/kms_lib.js +2 -37
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
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
|
}
|
package/kms_lib.js
CHANGED
|
@@ -589,6 +589,8 @@ const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
589
589
|
? { register: () => {}, unregister: () => {} }
|
|
590
590
|
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
591
591
|
/**
|
|
592
|
+
* Core Client
|
|
593
|
+
*
|
|
592
594
|
* Simple client to interact with the KMS servers. This can be seen as a proof-of-concept
|
|
593
595
|
* and reference code for validating the KMS. The logic supplied by the client will be
|
|
594
596
|
* distributed across the aggregator/proxy and smart contracts.
|
|
@@ -805,43 +807,6 @@ class ParsedReencryptionRequest {
|
|
|
805
807
|
}
|
|
806
808
|
module.exports.ParsedReencryptionRequest = ParsedReencryptionRequest;
|
|
807
809
|
|
|
808
|
-
const PlaintextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
809
|
-
? { register: () => {}, unregister: () => {} }
|
|
810
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_plaintext_free(ptr >>> 0, 1));
|
|
811
|
-
|
|
812
|
-
class Plaintext {
|
|
813
|
-
|
|
814
|
-
__destroy_into_raw() {
|
|
815
|
-
const ptr = this.__wbg_ptr;
|
|
816
|
-
this.__wbg_ptr = 0;
|
|
817
|
-
PlaintextFinalization.unregister(this);
|
|
818
|
-
return ptr;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
free() {
|
|
822
|
-
const ptr = this.__destroy_into_raw();
|
|
823
|
-
wasm.__wbg_plaintext_free(ptr, 0);
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* @returns {Uint8Array}
|
|
827
|
-
*/
|
|
828
|
-
get bytes() {
|
|
829
|
-
const ret = wasm.__wbg_get_plaintext_bytes(this.__wbg_ptr);
|
|
830
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
831
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
832
|
-
return v1;
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* @param {Uint8Array} arg0
|
|
836
|
-
*/
|
|
837
|
-
set bytes(arg0) {
|
|
838
|
-
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
839
|
-
const len0 = WASM_VECTOR_LEN;
|
|
840
|
-
wasm.__wbg_set_plaintext_bytes(this.__wbg_ptr, ptr0, len0);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
module.exports.Plaintext = Plaintext;
|
|
844
|
-
|
|
845
810
|
const PrivateEncKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
846
811
|
? { register: () => {}, unregister: () => {} }
|
|
847
812
|
: new FinalizationRegistry(ptr => wasm.__wbg_privateenckey_free(ptr >>> 0, 1));
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|