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 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();
@@ -428,6 +450,10 @@ export interface InitOutput {
428
450
  readonly __wbg_get_userdecryptionrequest_domain: (a: number) => number;
429
451
  readonly __wbg_set_userdecryptionrequest_domain: (a: number, b: number) => void;
430
452
  readonly __wbg_get_userdecryptionrequest_extra_data: (a: number) => [number, number];
453
+ readonly __wbg_get_userdecryptionrequest_context_id: (a: number) => number;
454
+ readonly __wbg_set_userdecryptionrequest_context_id: (a: number, b: number) => void;
455
+ readonly __wbg_get_userdecryptionrequest_epoch_id: (a: number) => number;
456
+ readonly __wbg_set_userdecryptionrequest_epoch_id: (a: number, b: number) => void;
431
457
  readonly __wbg_userdecryptionresponse_free: (a: number, b: number) => void;
432
458
  readonly __wbg_get_userdecryptionresponse_payload: (a: number) => number;
433
459
  readonly __wbg_set_userdecryptionresponse_payload: (a: number, b: number) => void;
package/kms_lib.js CHANGED
@@ -1462,6 +1462,52 @@ export class UserDecryptionRequest {
1462
1462
  const len0 = WASM_VECTOR_LEN;
1463
1463
  wasm.__wbg_set_eip712domainmsg_verifying_contract(this.__wbg_ptr, ptr0, len0);
1464
1464
  }
1465
+ /**
1466
+ * MPC context ID which is used to identify the context to use for this request.
1467
+ *
1468
+ * NOTE: at the moment this can be None since we do not fully support multiple contexts.
1469
+ * See <https://github.com/zama-ai/kms-internal/issues/2530>
1470
+ * @returns {RequestId | undefined}
1471
+ */
1472
+ get context_id() {
1473
+ const ret = wasm.__wbg_get_userdecryptionrequest_context_id(this.__wbg_ptr);
1474
+ return ret === 0 ? undefined : RequestId.__wrap(ret);
1475
+ }
1476
+ /**
1477
+ * MPC context ID which is used to identify the context to use for this request.
1478
+ *
1479
+ * NOTE: at the moment this can be None since we do not fully support multiple contexts.
1480
+ * See <https://github.com/zama-ai/kms-internal/issues/2530>
1481
+ * @param {RequestId | null} [arg0]
1482
+ */
1483
+ set context_id(arg0) {
1484
+ let ptr0 = 0;
1485
+ if (!isLikeNone(arg0)) {
1486
+ _assertClass(arg0, RequestId);
1487
+ ptr0 = arg0.__destroy_into_raw();
1488
+ }
1489
+ wasm.__wbg_set_userdecryptionrequest_context_id(this.__wbg_ptr, ptr0);
1490
+ }
1491
+ /**
1492
+ * The epoch number placeholder (zama-ai/kms-internal#2743).
1493
+ * @returns {RequestId | undefined}
1494
+ */
1495
+ get epoch_id() {
1496
+ const ret = wasm.__wbg_get_userdecryptionrequest_epoch_id(this.__wbg_ptr);
1497
+ return ret === 0 ? undefined : RequestId.__wrap(ret);
1498
+ }
1499
+ /**
1500
+ * The epoch number placeholder (zama-ai/kms-internal#2743).
1501
+ * @param {RequestId | null} [arg0]
1502
+ */
1503
+ set epoch_id(arg0) {
1504
+ let ptr0 = 0;
1505
+ if (!isLikeNone(arg0)) {
1506
+ _assertClass(arg0, RequestId);
1507
+ ptr0 = arg0.__destroy_into_raw();
1508
+ }
1509
+ wasm.__wbg_set_userdecryptionrequest_epoch_id(this.__wbg_ptr, ptr0);
1510
+ }
1465
1511
  }
1466
1512
 
1467
1513
  const UserDecryptionResponseFinalization = (typeof FinalizationRegistry === 'undefined')
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.11.0",
7
+ "version": "0.12.0",
8
8
  "license": "BSD-3-Clause-Clear",
9
9
  "files": [
10
10
  "kms_lib_bg.wasm",