tkms 0.9.0-rc19 → 0.9.0-rc21

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
@@ -23,8 +23,8 @@ export function u8vec_to_private_sig_key(v: Uint8Array): PrivateSigKey;
23
23
  /**
24
24
  * Instantiate a new client.
25
25
  *
26
- * * `server_pks` - a list of KMS server signature public keys,
27
- * which can parsed using [u8vec_to_public_sig_key].
26
+ * * `server_addrs` - a list of KMS server EIP-55 addresses,
27
+ * must be prefixed with "0x".
28
28
  *
29
29
  * * `client_address_hex` - the client (wallet) address in hex,
30
30
  * must be prefixed with "0x".
@@ -97,7 +97,8 @@ export function cryptobox_encrypt(msg: Uint8Array, their_pk: PublicEncKey, my_sk
97
97
  export function cryptobox_decrypt(ct: CryptoBoxCt, my_sk: PrivateEncKey, their_pk: PublicEncKey): Uint8Array;
98
98
  /**
99
99
  * Process the reencryption response from JavaScript objects.
100
- * The result is a byte array representing a plaintext of any length.
100
+ * The returned result is a byte array representing a plaintext of any length,
101
+ * postprocessing is returned to turn it into an integer.
101
102
  *
102
103
  * * `client` - client that wants to perform reencryption.
103
104
  *
@@ -110,7 +111,7 @@ export function cryptobox_decrypt(ct: CryptoBoxCt, my_sk: PrivateEncKey, their_p
110
111
  * signature: '15a4f9a8eb61459cfba7d103d8f911fb04ce91ecf841b34c49c0d56a70b896d20cbc31986188f91efc3842b7df215cee8acb40178daedb8b63d0ba5d199bce121c',
111
112
  * client_address: '0x17853A630aAe15AED549B2B874de08B73C0F59c5',
112
113
  * enc_key: '2000000000000000df2fcacb774f03187f3802a27259f45c06d33cefa68d9c53426b15ad531aa822',
113
- * ciphertext_digest: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
114
+ * ciphertext_handle: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
114
115
  * eip712_verifying_contract: '0x66f9664f97F2b50F62D13eA064982f936dE76657'
115
116
  * }
116
117
  * ```
package/kms_lib.js CHANGED
@@ -248,8 +248,8 @@ function passArrayJsValueToWasm0(array, malloc) {
248
248
  /**
249
249
  * Instantiate a new client.
250
250
  *
251
- * * `server_pks` - a list of KMS server signature public keys,
252
- * which can parsed using [u8vec_to_public_sig_key].
251
+ * * `server_addrs` - a list of KMS server EIP-55 addresses,
252
+ * must be prefixed with "0x".
253
253
  *
254
254
  * * `client_address_hex` - the client (wallet) address in hex,
255
255
  * must be prefixed with "0x".
@@ -434,7 +434,8 @@ export function cryptobox_decrypt(ct, my_sk, their_pk) {
434
434
 
435
435
  /**
436
436
  * Process the reencryption response from JavaScript objects.
437
- * The result is a byte array representing a plaintext of any length.
437
+ * The returned result is a byte array representing a plaintext of any length,
438
+ * postprocessing is returned to turn it into an integer.
438
439
  *
439
440
  * * `client` - client that wants to perform reencryption.
440
441
  *
@@ -447,7 +448,7 @@ export function cryptobox_decrypt(ct, my_sk, their_pk) {
447
448
  * signature: '15a4f9a8eb61459cfba7d103d8f911fb04ce91ecf841b34c49c0d56a70b896d20cbc31986188f91efc3842b7df215cee8acb40178daedb8b63d0ba5d199bce121c',
448
449
  * client_address: '0x17853A630aAe15AED549B2B874de08B73C0F59c5',
449
450
  * enc_key: '2000000000000000df2fcacb774f03187f3802a27259f45c06d33cefa68d9c53426b15ad531aa822',
450
- * ciphertext_digest: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
451
+ * ciphertext_handle: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
451
452
  * eip712_verifying_contract: '0x66f9664f97F2b50F62D13eA064982f936dE76657'
452
453
  * }
453
454
  * ```
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-rc19",
7
+ "version": "0.9.0-rc21",
8
8
  "license": "BSD-3-Clause-Clear",
9
9
  "files": [
10
10
  "kms_lib_bg.wasm",