tkms 0.11.0-rc5 → 0.11.0-rc7
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 +12 -12
- package/kms_lib.js +10 -10
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/kms_lib.d.ts
CHANGED
|
@@ -190,8 +190,8 @@ export class ReencryptionRequest {
|
|
|
190
190
|
private constructor();
|
|
191
191
|
free(): void;
|
|
192
192
|
/**
|
|
193
|
-
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
194
|
-
* Future queries for the result must use this request ID.
|
|
193
|
+
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
194
|
+
* prefix. Future queries for the result must use this request ID.
|
|
195
195
|
*/
|
|
196
196
|
request_id?: RequestId;
|
|
197
197
|
/**
|
|
@@ -199,8 +199,8 @@ export class ReencryptionRequest {
|
|
|
199
199
|
*/
|
|
200
200
|
typed_ciphertexts: (TypedCiphertext)[];
|
|
201
201
|
/**
|
|
202
|
-
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
203
|
-
* generation
|
|
202
|
+
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
203
|
+
* used for key generation
|
|
204
204
|
*/
|
|
205
205
|
key_id?: RequestId;
|
|
206
206
|
/**
|
|
@@ -267,8 +267,8 @@ export class ReencryptionResponsePayload {
|
|
|
267
267
|
degree: number;
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* Simple response to return a 32 Byte / 256 Bit ID, to be used to retrieve the
|
|
271
|
-
* later on. This string does NOT contain a `0x` prefix.
|
|
270
|
+
* Simple response to return a 32 Byte / 256 Bit ID, to be used to retrieve the
|
|
271
|
+
* computed result later on. This string does NOT contain a `0x` prefix.
|
|
272
272
|
*/
|
|
273
273
|
export class RequestId {
|
|
274
274
|
private constructor();
|
|
@@ -336,10 +336,6 @@ export interface InitOutput {
|
|
|
336
336
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
337
337
|
readonly __wbg_ciphertexthandle_free: (a: number, b: number) => void;
|
|
338
338
|
readonly __wbg_parsedreencryptionrequest_free: (a: number, b: number) => void;
|
|
339
|
-
readonly __wbg_publicenckey_free: (a: number, b: number) => void;
|
|
340
|
-
readonly __wbg_privateenckey_free: (a: number, b: number) => void;
|
|
341
|
-
readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
|
|
342
|
-
readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
|
|
343
339
|
readonly public_sig_key_to_u8vec: (a: number) => [number, number];
|
|
344
340
|
readonly u8vec_to_public_sig_key: (a: number, b: number) => [number, number, number];
|
|
345
341
|
readonly private_sig_key_to_u8vec: (a: number) => [number, number, number, number];
|
|
@@ -359,6 +355,10 @@ export interface InitOutput {
|
|
|
359
355
|
readonly cryptobox_decrypt: (a: number, b: number, c: number) => [number, number];
|
|
360
356
|
readonly process_reencryption_resp_from_js: (a: number, b: any, c: any, d: any, e: number, f: number, g: number) => [number, number, number, number];
|
|
361
357
|
readonly process_reencryption_resp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
358
|
+
readonly __wbg_publicenckey_free: (a: number, b: number) => void;
|
|
359
|
+
readonly __wbg_privateenckey_free: (a: number, b: number) => void;
|
|
360
|
+
readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
|
|
361
|
+
readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
|
|
362
362
|
readonly __wbg_requestid_free: (a: number, b: number) => void;
|
|
363
363
|
readonly __wbg_typedciphertext_free: (a: number, b: number) => void;
|
|
364
364
|
readonly __wbg_get_typedciphertext_fhe_type: (a: number) => number;
|
|
@@ -401,6 +401,8 @@ export interface InitOutput {
|
|
|
401
401
|
readonly __wbg_get_reencryptionresponsepayload_degree: (a: number) => number;
|
|
402
402
|
readonly __wbg_set_reencryptionresponsepayload_degree: (a: number, b: number) => void;
|
|
403
403
|
readonly __wbg_typedsigncryptedciphertext_free: (a: number, b: number) => void;
|
|
404
|
+
readonly __wbg_get_requestid_request_id: (a: number) => [number, number];
|
|
405
|
+
readonly __wbg_get_reencryptionrequest_client_address: (a: number) => [number, number];
|
|
404
406
|
readonly __wbg_get_typedsigncryptedciphertext_fhe_type: (a: number) => number;
|
|
405
407
|
readonly __wbg_set_typedciphertext_ciphertext: (a: number, b: number, c: number) => void;
|
|
406
408
|
readonly __wbg_set_typedplaintext_bytes: (a: number, b: number, c: number) => void;
|
|
@@ -414,8 +416,6 @@ export interface InitOutput {
|
|
|
414
416
|
readonly __wbg_set_reencryptionresponsepayload_digest: (a: number, b: number, c: number) => void;
|
|
415
417
|
readonly __wbg_set_typedsigncryptedciphertext_signcrypted_ciphertext: (a: number, b: number, c: number) => void;
|
|
416
418
|
readonly __wbg_set_typedsigncryptedciphertext_external_handle: (a: number, b: number, c: number) => void;
|
|
417
|
-
readonly __wbg_get_requestid_request_id: (a: number) => [number, number];
|
|
418
|
-
readonly __wbg_get_reencryptionrequest_client_address: (a: number) => [number, number];
|
|
419
419
|
readonly __wbg_get_typedplaintext_bytes: (a: number) => [number, number];
|
|
420
420
|
readonly __wbg_get_reencryptionrequest_enc_key: (a: number) => [number, number];
|
|
421
421
|
readonly __wbg_get_typedciphertext_ciphertext: (a: number) => [number, number];
|
package/kms_lib.js
CHANGED
|
@@ -959,8 +959,8 @@ export class ReencryptionRequest {
|
|
|
959
959
|
wasm.__wbg_reencryptionrequest_free(ptr, 0);
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
|
-
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
963
|
-
* Future queries for the result must use this request ID.
|
|
962
|
+
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
963
|
+
* prefix. Future queries for the result must use this request ID.
|
|
964
964
|
* @returns {RequestId | undefined}
|
|
965
965
|
*/
|
|
966
966
|
get request_id() {
|
|
@@ -968,8 +968,8 @@ export class ReencryptionRequest {
|
|
|
968
968
|
return ret === 0 ? undefined : RequestId.__wrap(ret);
|
|
969
969
|
}
|
|
970
970
|
/**
|
|
971
|
-
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
972
|
-
* Future queries for the result must use this request ID.
|
|
971
|
+
* The 32 Byte / 256 Bit ID of the user decryption request, without `0x`
|
|
972
|
+
* prefix. Future queries for the result must use this request ID.
|
|
973
973
|
* @param {RequestId | undefined} [arg0]
|
|
974
974
|
*/
|
|
975
975
|
set request_id(arg0) {
|
|
@@ -1000,8 +1000,8 @@ export class ReencryptionRequest {
|
|
|
1000
1000
|
wasm.__wbg_set_reencryptionrequest_typed_ciphertexts(this.__wbg_ptr, ptr0, len0);
|
|
1001
1001
|
}
|
|
1002
1002
|
/**
|
|
1003
|
-
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
1004
|
-
* generation
|
|
1003
|
+
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
1004
|
+
* used for key generation
|
|
1005
1005
|
* @returns {RequestId | undefined}
|
|
1006
1006
|
*/
|
|
1007
1007
|
get key_id() {
|
|
@@ -1009,8 +1009,8 @@ export class ReencryptionRequest {
|
|
|
1009
1009
|
return ret === 0 ? undefined : RequestId.__wrap(ret);
|
|
1010
1010
|
}
|
|
1011
1011
|
/**
|
|
1012
|
-
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
1013
|
-
* generation
|
|
1012
|
+
* The 32 Byte / 256 Bit key id to use for decryption. This is the request_id
|
|
1013
|
+
* used for key generation
|
|
1014
1014
|
* @param {RequestId | undefined} [arg0]
|
|
1015
1015
|
*/
|
|
1016
1016
|
set key_id(arg0) {
|
|
@@ -1317,8 +1317,8 @@ const RequestIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1317
1317
|
? { register: () => {}, unregister: () => {} }
|
|
1318
1318
|
: new FinalizationRegistry(ptr => wasm.__wbg_requestid_free(ptr >>> 0, 1));
|
|
1319
1319
|
/**
|
|
1320
|
-
* Simple response to return a 32 Byte / 256 Bit ID, to be used to retrieve the
|
|
1321
|
-
* later on. This string does NOT contain a `0x` prefix.
|
|
1320
|
+
* Simple response to return a 32 Byte / 256 Bit ID, to be used to retrieve the
|
|
1321
|
+
* computed result later on. This string does NOT contain a `0x` prefix.
|
|
1322
1322
|
*/
|
|
1323
1323
|
export class RequestId {
|
|
1324
1324
|
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|