@wireapp/core-crypto 0.7.0-rc.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "0.7.0-rc.4",
3
+ "version": "0.7.0",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -321,6 +321,33 @@ export interface DecryptedMessage {
321
321
  * true when the decrypted message resulted in an epoch change i.e. it was a commit
322
322
  */
323
323
  hasEpochChanged: boolean;
324
+ /**
325
+ * Identity claims present in the sender credential
326
+ * Only present when the credential is a x509 certificate
327
+ * Present for all messages
328
+ */
329
+ identity?: WireIdentity;
330
+ }
331
+ /**
332
+ * Represents the identity claims identifying a client. Those claims are verifiable by any member in the group
333
+ */
334
+ export interface WireIdentity {
335
+ /**
336
+ * Represents the identity claims identifying a client. Those claims are verifiable by any member in the group
337
+ */
338
+ clientId: string;
339
+ /**
340
+ * user handle e.g. `john_wire`
341
+ */
342
+ handle: string;
343
+ /**
344
+ * Name as displayed in the messaging application e.g. `John Fitzgerald Kennedy`
345
+ */
346
+ displayName: string;
347
+ /**
348
+ * DNS domain for which this identity proof was generated e.g. `whitehouse.gov`
349
+ */
350
+ domain: string;
324
351
  }
325
352
  /**
326
353
  * Returned by all methods creating proposals. Contains a proposal message and an identifier to roll back the proposal
@@ -226,12 +226,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  return real;
227
227
  }
228
228
  function __wbg_adapter_52(arg0, arg1, arg2) {
229
- wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcd81a8436ed0ce82(arg0, arg1, addHeapObject(arg2));
229
+ wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4f5b84878d1a1cd6(arg0, arg1, addHeapObject(arg2));
230
230
  }
231
231
  function __wbg_adapter_55(arg0, arg1, arg2) {
232
232
  try {
233
233
  const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
234
- wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h24e8da7fa5a69ec8(retptr, arg0, arg1, addHeapObject(arg2));
234
+ wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h035196cd566a20a2(retptr, arg0, arg1, addHeapObject(arg2));
235
235
  var r0 = getInt32Memory0()[retptr / 4 + 0];
236
236
  var r1 = getInt32Memory0()[retptr / 4 + 1];
237
237
  if (r1) {
@@ -281,8 +281,8 @@ function handleError(f, args) {
281
281
  wasm$1.__wbindgen_exn_store(addHeapObject(e));
282
282
  }
283
283
  }
284
- function __wbg_adapter_279(arg0, arg1, arg2, arg3) {
285
- wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h4a304d04c926e9b8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
284
+ function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
285
+ wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h77a2ddbf015f399a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
286
286
  }
287
287
  /**
288
288
  * see [core_crypto::prelude::MlsWirePolicy]
@@ -1565,6 +1565,13 @@ class DecryptedMessage {
1565
1565
  const ret = wasm$1.decryptedmessage_has_epoch_changed(this.ptr);
1566
1566
  return ret !== 0;
1567
1567
  }
1568
+ /**
1569
+ * @returns {WireIdentity | undefined}
1570
+ */
1571
+ get identity() {
1572
+ const ret = wasm$1.decryptedmessage_identity(this.ptr);
1573
+ return ret === 0 ? undefined : WireIdentity.__wrap(ret);
1574
+ }
1568
1575
  }
1569
1576
  /**
1570
1577
  */
@@ -2287,6 +2294,107 @@ class PublicGroupStateBundle {
2287
2294
  return takeObject(ret);
2288
2295
  }
2289
2296
  }
2297
+ /**
2298
+ * see [core_crypto::prelude::WireIdentity]
2299
+ */
2300
+ class WireIdentity {
2301
+ static __wrap(ptr) {
2302
+ const obj = Object.create(WireIdentity.prototype);
2303
+ obj.ptr = ptr;
2304
+ return obj;
2305
+ }
2306
+ __destroy_into_raw() {
2307
+ const ptr = this.ptr;
2308
+ this.ptr = 0;
2309
+ return ptr;
2310
+ }
2311
+ free() {
2312
+ const ptr = this.__destroy_into_raw();
2313
+ wasm$1.__wbg_wireidentity_free(ptr);
2314
+ }
2315
+ /**
2316
+ * @param {string} client_id
2317
+ * @param {string} handle
2318
+ * @param {string} display_name
2319
+ * @param {string} domain
2320
+ */
2321
+ constructor(client_id, handle, display_name, domain) {
2322
+ const ptr0 = passStringToWasm0(client_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2323
+ const len0 = WASM_VECTOR_LEN;
2324
+ const ptr1 = passStringToWasm0(handle, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2325
+ const len1 = WASM_VECTOR_LEN;
2326
+ const ptr2 = passStringToWasm0(display_name, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2327
+ const len2 = WASM_VECTOR_LEN;
2328
+ const ptr3 = passStringToWasm0(domain, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2329
+ const len3 = WASM_VECTOR_LEN;
2330
+ const ret = wasm$1.wireidentity_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
2331
+ return WireIdentity.__wrap(ret);
2332
+ }
2333
+ /**
2334
+ * @returns {string}
2335
+ */
2336
+ get client_id() {
2337
+ try {
2338
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
2339
+ wasm$1.acmedirectory_newNonce(retptr, this.ptr);
2340
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2341
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2342
+ return getStringFromWasm0(r0, r1);
2343
+ }
2344
+ finally {
2345
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
2346
+ wasm$1.__wbindgen_free(r0, r1);
2347
+ }
2348
+ }
2349
+ /**
2350
+ * @returns {string}
2351
+ */
2352
+ get handle() {
2353
+ try {
2354
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
2355
+ wasm$1.acmechallenge_url(retptr, this.ptr);
2356
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2357
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2358
+ return getStringFromWasm0(r0, r1);
2359
+ }
2360
+ finally {
2361
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
2362
+ wasm$1.__wbindgen_free(r0, r1);
2363
+ }
2364
+ }
2365
+ /**
2366
+ * @returns {string}
2367
+ */
2368
+ get display_name() {
2369
+ try {
2370
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
2371
+ wasm$1.acmedirectory_newOrder(retptr, this.ptr);
2372
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2373
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2374
+ return getStringFromWasm0(r0, r1);
2375
+ }
2376
+ finally {
2377
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
2378
+ wasm$1.__wbindgen_free(r0, r1);
2379
+ }
2380
+ }
2381
+ /**
2382
+ * @returns {string}
2383
+ */
2384
+ get domain() {
2385
+ try {
2386
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
2387
+ wasm$1.wireidentity_domain(retptr, this.ptr);
2388
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2389
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2390
+ return getStringFromWasm0(r0, r1);
2391
+ }
2392
+ finally {
2393
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
2394
+ wasm$1.__wbindgen_free(r0, r1);
2395
+ }
2396
+ }
2397
+ }
2290
2398
  async function load(module, imports) {
2291
2399
  if (typeof Response === 'function' && module instanceof Response) {
2292
2400
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -2322,14 +2430,14 @@ function getImports() {
2322
2430
  const ret = getObject(arg0);
2323
2431
  return addHeapObject(ret);
2324
2432
  };
2433
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2434
+ takeObject(arg0);
2435
+ };
2325
2436
  imports.wbg.__wbindgen_is_object = function (arg0) {
2326
2437
  const val = getObject(arg0);
2327
2438
  const ret = typeof (val) === 'object' && val !== null;
2328
2439
  return ret;
2329
2440
  };
2330
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2331
- takeObject(arg0);
2332
- };
2333
2441
  imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function (arg0, arg1) {
2334
2442
  const ret = getObject(arg0)[getObject(arg1)];
2335
2443
  return addHeapObject(ret);
@@ -2370,14 +2478,18 @@ function getImports() {
2370
2478
  const ret = getObject(arg0).length;
2371
2479
  return ret;
2372
2480
  };
2481
+ imports.wbg.__wbindgen_number_new = function (arg0) {
2482
+ const ret = arg0;
2483
+ return addHeapObject(ret);
2484
+ };
2373
2485
  imports.wbg.__wbg_call_9495de66fdbe016b = function () {
2374
2486
  return handleError(function (arg0, arg1, arg2) {
2375
2487
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2376
2488
  return addHeapObject(ret);
2377
2489
  }, arguments);
2378
2490
  };
2379
- imports.wbg.__wbg_new_537b7341ce90bb31 = function (arg0) {
2380
- const ret = new Uint8Array(getObject(arg0));
2491
+ imports.wbg.__wbg_new_f9876326328f45ed = function () {
2492
+ const ret = new Object();
2381
2493
  return addHeapObject(ret);
2382
2494
  };
2383
2495
  imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function (arg0, arg1) {
@@ -2387,7 +2499,7 @@ function getImports() {
2387
2499
  const a = state0.a;
2388
2500
  state0.a = 0;
2389
2501
  try {
2390
- return __wbg_adapter_279(a, state0.b, arg0, arg1);
2502
+ return __wbg_adapter_285(a, state0.b, arg0, arg1);
2391
2503
  }
2392
2504
  finally {
2393
2505
  state0.a = a;
@@ -2400,16 +2512,8 @@ function getImports() {
2400
2512
  state0.a = state0.b = 0;
2401
2513
  }
2402
2514
  };
2403
- imports.wbg.__wbg_new_f841cc6f2098f4b5 = function () {
2404
- const ret = new Map();
2405
- return addHeapObject(ret);
2406
- };
2407
- imports.wbg.__wbg_set_388c4c6422704173 = function (arg0, arg1, arg2) {
2408
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2409
- return addHeapObject(ret);
2410
- };
2411
- imports.wbg.__wbindgen_number_new = function (arg0) {
2412
- const ret = arg0;
2515
+ imports.wbg.__wbg_new_537b7341ce90bb31 = function (arg0) {
2516
+ const ret = new Uint8Array(getObject(arg0));
2413
2517
  return addHeapObject(ret);
2414
2518
  };
2415
2519
  imports.wbg.__wbg_new_b525de17f44a8943 = function () {
@@ -2420,33 +2524,29 @@ function getImports() {
2420
2524
  const ret = getObject(arg0).push(getObject(arg1));
2421
2525
  return ret;
2422
2526
  };
2423
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2424
- const ret = BigInt.asUintN(64, arg0);
2527
+ imports.wbg.__wbg_new_f841cc6f2098f4b5 = function () {
2528
+ const ret = new Map();
2425
2529
  return addHeapObject(ret);
2426
2530
  };
2427
- imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2428
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2531
+ imports.wbg.__wbg_set_388c4c6422704173 = function (arg0, arg1, arg2) {
2532
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2533
+ return addHeapObject(ret);
2534
+ };
2535
+ imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2536
+ const ret = BigInt.asUintN(64, arg0);
2429
2537
  return addHeapObject(ret);
2430
2538
  };
2431
2539
  imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
2432
2540
  const ret = FfiWireE2EIdentity.__wrap(arg0);
2433
2541
  return addHeapObject(ret);
2434
2542
  };
2435
- imports.wbg.__wbg_new_f9876326328f45ed = function () {
2436
- const ret = new Object();
2543
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2544
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2437
2545
  return addHeapObject(ret);
2438
2546
  };
2439
2547
  imports.wbg.__wbg_setonsuccess_925a7718d3f62bc1 = function (arg0, arg1) {
2440
2548
  getObject(arg0).onsuccess = getObject(arg1);
2441
2549
  };
2442
- imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function (arg0) {
2443
- const ret = Array.isArray(getObject(arg0));
2444
- return ret;
2445
- };
2446
- imports.wbg.__wbg_get_27fe3dac1c4d0224 = function (arg0, arg1) {
2447
- const ret = getObject(arg0)[arg1 >>> 0];
2448
- return addHeapObject(ret);
2449
- };
2450
2550
  imports.wbg.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
2451
2551
  const ret = getObject(arg0) == getObject(arg1);
2452
2552
  return ret;
@@ -2488,10 +2588,18 @@ function getImports() {
2488
2588
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2489
2589
  return addHeapObject(ret);
2490
2590
  };
2591
+ imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function (arg0) {
2592
+ const ret = Array.isArray(getObject(arg0));
2593
+ return ret;
2594
+ };
2491
2595
  imports.wbg.__wbg_iterator_55f114446221aa5a = function () {
2492
2596
  const ret = Symbol.iterator;
2493
2597
  return addHeapObject(ret);
2494
2598
  };
2599
+ imports.wbg.__wbg_get_27fe3dac1c4d0224 = function (arg0, arg1) {
2600
+ const ret = getObject(arg0)[arg1 >>> 0];
2601
+ return addHeapObject(ret);
2602
+ };
2495
2603
  imports.wbg.__wbg_corecrypto_new = function (arg0) {
2496
2604
  const ret = CoreCrypto$1.__wrap(arg0);
2497
2605
  return addHeapObject(ret);
@@ -2499,9 +2607,6 @@ function getImports() {
2499
2607
  imports.wbg.__wbg_set_841ac57cff3d672b = function (arg0, arg1, arg2) {
2500
2608
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2501
2609
  };
2502
- imports.wbg.__wbg_set_17224bc548dd1d7b = function (arg0, arg1, arg2) {
2503
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2504
- };
2505
2610
  imports.wbg.__wbg_new_15d3966e9981a196 = function (arg0, arg1) {
2506
2611
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2507
2612
  return addHeapObject(ret);
@@ -2524,13 +2629,6 @@ function getImports() {
2524
2629
  imports.wbg.__wbg_warn_e57696dbb3977030 = function (arg0) {
2525
2630
  console.warn(getObject(arg0));
2526
2631
  };
2527
- imports.wbg.__wbg_String_88810dfeb4021902 = function (arg0, arg1) {
2528
- const ret = String(getObject(arg1));
2529
- const ptr0 = passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2530
- const len0 = WASM_VECTOR_LEN;
2531
- getInt32Memory0()[arg0 / 4 + 1] = len0;
2532
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
2533
- };
2534
2632
  imports.wbg.__wbg_call_96878afb7a8201ca = function () {
2535
2633
  return handleError(function (arg0, arg1, arg2, arg3) {
2536
2634
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
@@ -2561,6 +2659,9 @@ function getImports() {
2561
2659
  const ret = Promise.reject(getObject(arg0));
2562
2660
  return addHeapObject(ret);
2563
2661
  };
2662
+ imports.wbg.__wbg_set_17224bc548dd1d7b = function (arg0, arg1, arg2) {
2663
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2664
+ };
2564
2665
  imports.wbg.__wbg_proposalbundle_new = function (arg0) {
2565
2666
  const ret = ProposalBundle.__wrap(arg0);
2566
2667
  return addHeapObject(ret);
@@ -2599,10 +2700,6 @@ function getImports() {
2599
2700
  imports.wbg.__wbg_setonerror_7cbe775a0abc7a8e = function (arg0, arg1) {
2600
2701
  getObject(arg0).onerror = getObject(arg1);
2601
2702
  };
2602
- imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function (arg0, arg1) {
2603
- const ret = getObject(arg0)[getObject(arg1)];
2604
- return addHeapObject(ret);
2605
- };
2606
2703
  imports.wbg.__wbg_name_31ef05f12c1d72c6 = function (arg0, arg1) {
2607
2704
  const ret = getObject(arg1).name;
2608
2705
  const ptr0 = passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
@@ -2628,9 +2725,6 @@ function getImports() {
2628
2725
  const ret = false;
2629
2726
  return ret;
2630
2727
  };
2631
- imports.wbg.__wbg_set_20cbc34131e76824 = function (arg0, arg1, arg2) {
2632
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2633
- };
2634
2728
  imports.wbg.__wbg_close_98f3a5ab91060b8b = function (arg0) {
2635
2729
  getObject(arg0).close();
2636
2730
  };
@@ -2694,37 +2788,45 @@ function getImports() {
2694
2788
  return addHeapObject(ret);
2695
2789
  }, arguments);
2696
2790
  };
2697
- imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function () {
2698
- return handleError(function (arg0, arg1, arg2) {
2699
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
2791
+ imports.wbg.__wbindgen_memory = function () {
2792
+ const ret = wasm$1.memory;
2793
+ return addHeapObject(ret);
2794
+ };
2795
+ imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function (arg0) {
2796
+ const ret = getObject(arg0).buffer;
2797
+ return addHeapObject(ret);
2798
+ };
2799
+ imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function (arg0, arg1, arg2) {
2800
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
2801
+ return addHeapObject(ret);
2802
+ };
2803
+ imports.wbg.__wbg_randomFillSync_e950366c42764a07 = function () {
2804
+ return handleError(function (arg0, arg1) {
2805
+ getObject(arg0).randomFillSync(takeObject(arg1));
2700
2806
  }, arguments);
2701
2807
  };
2702
2808
  imports.wbg.__wbg_subarray_7526649b91a252a6 = function (arg0, arg1, arg2) {
2703
2809
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
2704
2810
  return addHeapObject(ret);
2705
2811
  };
2706
- imports.wbg.__wbg_getRandomValues_805f1c3d65988a5a = function () {
2812
+ imports.wbg.__wbg_getRandomValues_3774744e221a22ad = function () {
2707
2813
  return handleError(function (arg0, arg1) {
2708
2814
  getObject(arg0).getRandomValues(getObject(arg1));
2709
2815
  }, arguments);
2710
2816
  };
2711
- imports.wbg.__wbg_length_27a2afe8ab42b09f = function (arg0) {
2712
- const ret = getObject(arg0).length;
2713
- return ret;
2714
- };
2715
- imports.wbg.__wbg_crypto_e1d53a1d73fb10b8 = function (arg0) {
2817
+ imports.wbg.__wbg_crypto_70a96de3b6b73dac = function (arg0) {
2716
2818
  const ret = getObject(arg0).crypto;
2717
2819
  return addHeapObject(ret);
2718
2820
  };
2719
- imports.wbg.__wbg_process_038c26bf42b093f8 = function (arg0) {
2821
+ imports.wbg.__wbg_process_dd1577445152112e = function (arg0) {
2720
2822
  const ret = getObject(arg0).process;
2721
2823
  return addHeapObject(ret);
2722
2824
  };
2723
- imports.wbg.__wbg_versions_ab37218d2f0b24a8 = function (arg0) {
2825
+ imports.wbg.__wbg_versions_58036bec3add9e6f = function (arg0) {
2724
2826
  const ret = getObject(arg0).versions;
2725
2827
  return addHeapObject(ret);
2726
2828
  };
2727
- imports.wbg.__wbg_node_080f4b19d15bc1fe = function (arg0) {
2829
+ imports.wbg.__wbg_node_6a9d28205ed5b0d8 = function (arg0) {
2728
2830
  const ret = getObject(arg0).node;
2729
2831
  return addHeapObject(ret);
2730
2832
  };
@@ -2732,7 +2834,7 @@ function getImports() {
2732
2834
  const ret = typeof (getObject(arg0)) === 'string';
2733
2835
  return ret;
2734
2836
  };
2735
- imports.wbg.__wbg_require_78a3dcfbdba9cbce = function () {
2837
+ imports.wbg.__wbg_require_f05d779769764e82 = function () {
2736
2838
  return handleError(function () {
2737
2839
  const ret = module.require;
2738
2840
  return addHeapObject(ret);
@@ -2742,7 +2844,7 @@ function getImports() {
2742
2844
  const ret = typeof (getObject(arg0)) === 'function';
2743
2845
  return ret;
2744
2846
  };
2745
- imports.wbg.__wbg_msCrypto_6e7d3e1f92610cbb = function (arg0) {
2847
+ imports.wbg.__wbg_msCrypto_adbc770ec9eca9c7 = function (arg0) {
2746
2848
  const ret = getObject(arg0).msCrypto;
2747
2849
  return addHeapObject(ret);
2748
2850
  };
@@ -2808,21 +2910,13 @@ function getImports() {
2808
2910
  return ret;
2809
2911
  }, arguments);
2810
2912
  };
2811
- imports.wbg.__wbindgen_memory = function () {
2812
- const ret = wasm$1.memory;
2813
- return addHeapObject(ret);
2814
- };
2815
- imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function (arg0) {
2816
- const ret = getObject(arg0).buffer;
2817
- return addHeapObject(ret);
2818
- };
2819
- imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function (arg0, arg1, arg2) {
2820
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
2821
- return addHeapObject(ret);
2822
- };
2823
2913
  imports.wbg.__wbg_set_17499e8aa4003ebd = function (arg0, arg1, arg2) {
2824
2914
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
2825
2915
  };
2916
+ imports.wbg.__wbg_length_27a2afe8ab42b09f = function (arg0) {
2917
+ const ret = getObject(arg0).length;
2918
+ return ret;
2919
+ };
2826
2920
  imports.wbg.__wbg_now_931686b195a14f9d = function () {
2827
2921
  const ret = Date.now();
2828
2922
  return ret;
@@ -2948,7 +3042,7 @@ function getImports() {
2948
3042
  const ret = Object.entries(getObject(arg0));
2949
3043
  return addHeapObject(ret);
2950
3044
  };
2951
- imports.wbg.__wbg_String_91fba7ded13ba54c = function (arg0, arg1) {
3045
+ imports.wbg.__wbg_String_88810dfeb4021902 = function (arg0, arg1) {
2952
3046
  const ret = String(getObject(arg1));
2953
3047
  const ptr0 = passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2954
3048
  const len0 = WASM_VECTOR_LEN;
@@ -3041,12 +3135,12 @@ function getImports() {
3041
3135
  return addHeapObject(ret);
3042
3136
  }, arguments);
3043
3137
  };
3044
- imports.wbg.__wbindgen_closure_wrapper1545 = function (arg0, arg1, arg2) {
3045
- const ret = makeMutClosure(arg0, arg1, 156, __wbg_adapter_52);
3138
+ imports.wbg.__wbindgen_closure_wrapper1541 = function (arg0, arg1, arg2) {
3139
+ const ret = makeMutClosure(arg0, arg1, 155, __wbg_adapter_52);
3046
3140
  return addHeapObject(ret);
3047
3141
  };
3048
- imports.wbg.__wbindgen_closure_wrapper4563 = function (arg0, arg1, arg2) {
3049
- const ret = makeMutClosure(arg0, arg1, 156, __wbg_adapter_55);
3142
+ imports.wbg.__wbindgen_closure_wrapper4565 = function (arg0, arg1, arg2) {
3143
+ const ret = makeMutClosure(arg0, arg1, 155, __wbg_adapter_55);
3050
3144
  return addHeapObject(ret);
3051
3145
  };
3052
3146
  return imports;
@@ -3098,6 +3192,7 @@ var exports = /*#__PURE__*/Object.freeze({
3098
3192
  ProposalBundle: ProposalBundle,
3099
3193
  ProteusAutoPrekeyBundle: ProteusAutoPrekeyBundle,
3100
3194
  PublicGroupStateBundle: PublicGroupStateBundle,
3195
+ WireIdentity: WireIdentity,
3101
3196
  WirePolicy: WirePolicy$1,
3102
3197
  default: init,
3103
3198
  initSync: initSync
@@ -3106,7 +3201,7 @@ var exports = /*#__PURE__*/Object.freeze({
3106
3201
  var wasm = async (opt = {}) => {
3107
3202
  let {importHook, serverPath} = opt;
3108
3203
 
3109
- let path = "assets/core_crypto_ffi-2bc82439.wasm";
3204
+ let path = "assets/core_crypto_ffi-a6e9489a.wasm";
3110
3205
 
3111
3206
  if (serverPath != null) {
3112
3207
  path = serverPath + /[^\/\\]*$/.exec(path)[0];