node-tkms 0.9.0-rc19 → 0.9.0-rc25
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 +5 -4
- package/kms_lib.js +10 -9
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
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
|
-
* * `
|
|
27
|
-
*
|
|
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
|
-
*
|
|
114
|
+
* ciphertext_handle: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
|
|
114
115
|
* eip712_verifying_contract: '0x66f9664f97F2b50F62D13eA064982f936dE76657'
|
|
115
116
|
* }
|
|
116
117
|
* ```
|
package/kms_lib.js
CHANGED
|
@@ -252,8 +252,8 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
252
252
|
/**
|
|
253
253
|
* Instantiate a new client.
|
|
254
254
|
*
|
|
255
|
-
* * `
|
|
256
|
-
*
|
|
255
|
+
* * `server_addrs` - a list of KMS server EIP-55 addresses,
|
|
256
|
+
* must be prefixed with "0x".
|
|
257
257
|
*
|
|
258
258
|
* * `client_address_hex` - the client (wallet) address in hex,
|
|
259
259
|
* must be prefixed with "0x".
|
|
@@ -438,7 +438,8 @@ module.exports.cryptobox_decrypt = function(ct, my_sk, their_pk) {
|
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* Process the reencryption response from JavaScript objects.
|
|
441
|
-
* The result is a byte array representing a plaintext of any length
|
|
441
|
+
* The returned result is a byte array representing a plaintext of any length,
|
|
442
|
+
* postprocessing is returned to turn it into an integer.
|
|
442
443
|
*
|
|
443
444
|
* * `client` - client that wants to perform reencryption.
|
|
444
445
|
*
|
|
@@ -451,7 +452,7 @@ module.exports.cryptobox_decrypt = function(ct, my_sk, their_pk) {
|
|
|
451
452
|
* signature: '15a4f9a8eb61459cfba7d103d8f911fb04ce91ecf841b34c49c0d56a70b896d20cbc31986188f91efc3842b7df215cee8acb40178daedb8b63d0ba5d199bce121c',
|
|
452
453
|
* client_address: '0x17853A630aAe15AED549B2B874de08B73C0F59c5',
|
|
453
454
|
* enc_key: '2000000000000000df2fcacb774f03187f3802a27259f45c06d33cefa68d9c53426b15ad531aa822',
|
|
454
|
-
*
|
|
455
|
+
* ciphertext_handle: '0748b542afe2353c86cb707e3d21044b0be1fd18efc7cbaa6a415af055bfb358',
|
|
455
456
|
* eip712_verifying_contract: '0x66f9664f97F2b50F62D13eA064982f936dE76657'
|
|
456
457
|
* }
|
|
457
458
|
* ```
|
|
@@ -1518,11 +1519,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
1518
1519
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1519
1520
|
};
|
|
1520
1521
|
|
|
1521
|
-
module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
|
|
1522
|
-
const ret = ReencryptionResponse.__unwrap(arg0);
|
|
1523
|
-
return ret;
|
|
1524
|
-
};
|
|
1525
|
-
|
|
1526
1522
|
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
1527
1523
|
const obj = arg1;
|
|
1528
1524
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -1530,6 +1526,11 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
1530
1526
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1531
1527
|
};
|
|
1532
1528
|
|
|
1529
|
+
module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
|
|
1530
|
+
const ret = ReencryptionResponse.__unwrap(arg0);
|
|
1531
|
+
return ret;
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1533
1534
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
1534
1535
|
const val = arg0;
|
|
1535
1536
|
const ret = typeof(val) === 'object' && val !== null;
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|