node-tkms 0.11.0 → 0.12.0
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 +22 -0
- package/kms_lib.js +46 -0
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/kms_lib.d.ts
CHANGED
|
@@ -303,6 +303,28 @@ export class UserDecryptionRequest {
|
|
|
303
303
|
* Extra data from the gateway.
|
|
304
304
|
*/
|
|
305
305
|
extra_data: Uint8Array;
|
|
306
|
+
/**
|
|
307
|
+
* MPC context ID which is used to identify the context to use for this request.
|
|
308
|
+
*
|
|
309
|
+
* NOTE: at the moment this can be None since we do not fully support multiple contexts.
|
|
310
|
+
* See <https://github.com/zama-ai/kms-internal/issues/2530>
|
|
311
|
+
*/
|
|
312
|
+
get context_id(): RequestId | undefined;
|
|
313
|
+
/**
|
|
314
|
+
* MPC context ID which is used to identify the context to use for this request.
|
|
315
|
+
*
|
|
316
|
+
* NOTE: at the moment this can be None since we do not fully support multiple contexts.
|
|
317
|
+
* See <https://github.com/zama-ai/kms-internal/issues/2530>
|
|
318
|
+
*/
|
|
319
|
+
set context_id(value: RequestId | null | undefined);
|
|
320
|
+
/**
|
|
321
|
+
* The epoch number placeholder (zama-ai/kms-internal#2743).
|
|
322
|
+
*/
|
|
323
|
+
get epoch_id(): RequestId | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* The epoch number placeholder (zama-ai/kms-internal#2743).
|
|
326
|
+
*/
|
|
327
|
+
set epoch_id(value: RequestId | null | undefined);
|
|
306
328
|
}
|
|
307
329
|
export class UserDecryptionResponse {
|
|
308
330
|
private constructor();
|
package/kms_lib.js
CHANGED
|
@@ -1479,6 +1479,52 @@ class UserDecryptionRequest {
|
|
|
1479
1479
|
const len0 = WASM_VECTOR_LEN;
|
|
1480
1480
|
wasm.__wbg_set_eip712domainmsg_verifying_contract(this.__wbg_ptr, ptr0, len0);
|
|
1481
1481
|
}
|
|
1482
|
+
/**
|
|
1483
|
+
* MPC context ID which is used to identify the context to use for this request.
|
|
1484
|
+
*
|
|
1485
|
+
* NOTE: at the moment this can be None since we do not fully support multiple contexts.
|
|
1486
|
+
* See <https://github.com/zama-ai/kms-internal/issues/2530>
|
|
1487
|
+
* @returns {RequestId | undefined}
|
|
1488
|
+
*/
|
|
1489
|
+
get context_id() {
|
|
1490
|
+
const ret = wasm.__wbg_get_userdecryptionrequest_context_id(this.__wbg_ptr);
|
|
1491
|
+
return ret === 0 ? undefined : RequestId.__wrap(ret);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* MPC context ID which is used to identify the context to use for this request.
|
|
1495
|
+
*
|
|
1496
|
+
* NOTE: at the moment this can be None since we do not fully support multiple contexts.
|
|
1497
|
+
* See <https://github.com/zama-ai/kms-internal/issues/2530>
|
|
1498
|
+
* @param {RequestId | null} [arg0]
|
|
1499
|
+
*/
|
|
1500
|
+
set context_id(arg0) {
|
|
1501
|
+
let ptr0 = 0;
|
|
1502
|
+
if (!isLikeNone(arg0)) {
|
|
1503
|
+
_assertClass(arg0, RequestId);
|
|
1504
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1505
|
+
}
|
|
1506
|
+
wasm.__wbg_set_userdecryptionrequest_context_id(this.__wbg_ptr, ptr0);
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* The epoch number placeholder (zama-ai/kms-internal#2743).
|
|
1510
|
+
* @returns {RequestId | undefined}
|
|
1511
|
+
*/
|
|
1512
|
+
get epoch_id() {
|
|
1513
|
+
const ret = wasm.__wbg_get_userdecryptionrequest_epoch_id(this.__wbg_ptr);
|
|
1514
|
+
return ret === 0 ? undefined : RequestId.__wrap(ret);
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* The epoch number placeholder (zama-ai/kms-internal#2743).
|
|
1518
|
+
* @param {RequestId | null} [arg0]
|
|
1519
|
+
*/
|
|
1520
|
+
set epoch_id(arg0) {
|
|
1521
|
+
let ptr0 = 0;
|
|
1522
|
+
if (!isLikeNone(arg0)) {
|
|
1523
|
+
_assertClass(arg0, RequestId);
|
|
1524
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1525
|
+
}
|
|
1526
|
+
wasm.__wbg_set_userdecryptionrequest_epoch_id(this.__wbg_ptr, ptr0);
|
|
1527
|
+
}
|
|
1482
1528
|
}
|
|
1483
1529
|
module.exports.UserDecryptionRequest = UserDecryptionRequest;
|
|
1484
1530
|
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|