@wireapp/core-crypto 1.0.0-rc.22 → 1.0.0-rc.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-rc.22",
3
+ "version": "1.0.0-rc.24",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,5 +1,3 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  /**
4
2
  * see [core_crypto::prelude::DeviceStatus]
5
3
  */
@@ -209,24 +207,6 @@ export interface ConversationConfiguration {
209
207
  * Implementation specific configuration
210
208
  */
211
209
  custom?: CustomConfiguration;
212
- /**
213
- * Trust anchors to be added in the group's context extensions
214
- */
215
- perDomainTrustAnchors?: PerDomainTrustAnchor[];
216
- }
217
- /**
218
- * A wrapper containing the configuration for trust anchors to be added in the group's context
219
- * extensions
220
- */
221
- export interface PerDomainTrustAnchor {
222
- /**
223
- * Domain name of the owning backend this anchor refers to. One of the certificate in the chain has to have this domain in its SANs
224
- */
225
- domain_name: string;
226
- /**
227
- * PEM encoded (partial) certificate chain. This contains the certificate chain for the CA certificate issuing the E2E Identity certificates
228
- */
229
- intermediate_certificate_chain: string;
230
210
  }
231
211
  /**
232
212
  * see [core_crypto::prelude::MlsWirePolicy]
@@ -470,6 +450,23 @@ export interface ConversationInitBundle {
470
450
  */
471
451
  groupInfo: GroupInfoBundle;
472
452
  }
453
+ /**
454
+ * Supporting struct for CRL registration result
455
+ */
456
+ export interface CRLRegistration {
457
+ /**
458
+ * Whether this CRL modifies the old CRL (i.e. has a different revocated cert list)
459
+ *
460
+ * @readonly
461
+ */
462
+ dirty: boolean;
463
+ /**
464
+ * Optional expiration timestamp
465
+ *
466
+ * @readonly
467
+ */
468
+ expiration?: number;
469
+ }
473
470
  /**
474
471
  * This is a wrapper for all the possible outcomes you can get after decrypting a message
475
472
  */
@@ -857,22 +854,6 @@ export declare class CoreCrypto {
857
854
  * @returns The encrypted payload for the given group. This needs to be fanned out to the other members of the group.
858
855
  */
859
856
  encryptMessage(conversationId: ConversationId, message: Uint8Array): Promise<Uint8Array>;
860
- /**
861
- * Updates the trust anchors for a conversation. This should be called when a federated event happens (new team added/removed).
862
- * Clients should add and/or remove trust anchors from the new backend to the conversation. The method will check
863
- * for duplicated domains and the validity of the certificate chain.
864
- *
865
- * **CAUTION**: {@link CoreCrypto.commitAccepted} **HAS TO** be called afterwards **ONLY IF** the Delivery Service responds
866
- * '200 OK' to the {@link CommitBundle} upload. It will "merge" the commit locally i.e. increment the local group
867
- * epoch, use new encryption secrets etc...
868
- *
869
- * @param conversationId - The ID of the conversation
870
- * @param removeDomainNames - Domains to remove from the trust anchors
871
- * @param addTrustAnchors - New trust anchors to add to the conversation
872
- *
873
- * @returns A {@link CommitBundle}
874
- */
875
- updateTrustAnchorsFromConversation(conversationId: ConversationId, removeDomainNames: string[], addTrustAnchors: PerDomainTrustAnchor[]): Promise<CommitBundle>;
876
857
  /**
877
858
  * Ingest a TLS-serialized MLS welcome message to join an existing MLS group
878
859
  *
@@ -1253,6 +1234,36 @@ export declare class CoreCrypto {
1253
1234
  * @returns a MlsClient initialized with only a x509 credential
1254
1235
  */
1255
1236
  e2eiMlsInitOnly(enrollment: E2eiEnrollment, certificateChain: string, nbKeyPackage?: number): Promise<void>;
1237
+ /**
1238
+ * Registers a Root Trust Anchor CA for the use in E2EI processing.
1239
+ *
1240
+ * Please note that without a Root Trust Anchor, all validations *will* fail;
1241
+ * So this is the first step to perform after initializing your E2EI client
1242
+ *
1243
+ * @param trustAnchorPEM - PEM certificate to anchor as a Trust Root
1244
+ */
1245
+ e2eiRegisterAcmeCA(trustAnchorPEM: string): Promise<void>;
1246
+ /**
1247
+ * Registers an Intermediate CA for the use in E2EI processing.
1248
+ *
1249
+ * Please note that a Root Trust Anchor CA is needed to validate Intermediate CAs;
1250
+ * You **need** to have a Root CA registered before calling this
1251
+ *
1252
+ * @param certPEM - PEM certificate to register as an Intermediate CA
1253
+ */
1254
+ e2eiRegisterIntermediateCA(certPEM: string): Promise<void>;
1255
+ /**
1256
+ * Registers a CRL for the use in E2EI processing.
1257
+ *
1258
+ * Please note that a Root Trust Anchor CA is needed to validate CRLs;
1259
+ * You **need** to have a Root CA registered before calling this
1260
+ *
1261
+ * @param crlDP - CRL Distribution Point; Basically the URL you fetched it from
1262
+ * @param crlDER - DER representation of the CRL
1263
+ *
1264
+ * @returns a {@link CRLRegistration} with the dirty state of the new CRL (see struct) and its expiration timestamp
1265
+ */
1266
+ e2eiRegisterCRL(crlDP: string, crlDER: Uint8Array): Promise<CRLRegistration>;
1256
1267
  /**
1257
1268
  * Creates a commit in all local conversations for changing the credential. Requires first
1258
1269
  * having enrolled a new X509 certificate with either {@link CoreCrypto.e2eiNewActivationEnrollment}
@@ -157,12 +157,12 @@ var makeMutClosure = function(arg0, arg1, dtor, f) {
157
157
  return real;
158
158
  };
159
159
  var __wbg_adapter_54 = function(arg0, arg1, arg2) {
160
- wasm.wasm_bindgen__convert__closures__invoke1_mut__hee2344b2c4dec822(arg0, arg1, addHeapObject(arg2));
160
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__hdacbb3276abed73b(arg0, arg1, addHeapObject(arg2));
161
161
  };
162
162
  var __wbg_adapter_57 = function(arg0, arg1, arg2) {
163
163
  try {
164
164
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
165
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h0822694acdee5799(retptr, arg0, arg1, addHeapObject(arg2));
165
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h58c7595f44a39b9f(retptr, arg0, arg1, addHeapObject(arg2));
166
166
  var r0 = getInt32Memory0()[retptr / 4 + 0];
167
167
  var r1 = getInt32Memory0()[retptr / 4 + 1];
168
168
  if (r1) {
@@ -232,8 +232,8 @@ var handleError = function(f, args) {
232
232
  wasm.__wbindgen_exn_store(addHeapObject(e));
233
233
  }
234
234
  };
235
- var __wbg_adapter_406 = function(arg0, arg1, arg2, arg3) {
236
- wasm.wasm_bindgen__convert__closures__invoke2_mut__hb07ea52845d244dd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
235
+ var __wbg_adapter_411 = function(arg0, arg1, arg2, arg3) {
236
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h3f5a98551afd7f31(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
237
237
  };
238
238
  async function __wbg_load(module, imports) {
239
239
  if (typeof Response === "function" && module instanceof Response) {
@@ -262,61 +262,65 @@ async function __wbg_load(module, imports) {
262
262
  var __wbg_get_imports = function() {
263
263
  const imports = {};
264
264
  imports.wbg = {};
265
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
266
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
265
+ imports.wbg.__wbindgen_number_new = function(arg0) {
266
+ const ret = arg0;
267
267
  return addHeapObject(ret);
268
268
  };
269
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
270
- const ret = AcmeDirectory.__wrap(arg0);
269
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
+ takeObject(arg0);
271
+ };
272
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
273
+ const ret = CoreCrypto.__wrap(arg0);
271
274
  return addHeapObject(ret);
272
275
  };
273
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
274
- const ret = ProposalBundle.__wrap(arg0);
276
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
277
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
275
278
  return addHeapObject(ret);
276
279
  };
277
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
278
- const ret = NewAcmeAuthz.__wrap(arg0);
280
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
281
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
279
282
  return addHeapObject(ret);
280
283
  };
281
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
282
- const ret = CommitBundle.__wrap(arg0);
284
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
285
+ const ret = AcmeDirectory.__wrap(arg0);
283
286
  return addHeapObject(ret);
284
287
  };
285
288
  imports.wbg.__wbg_newacmeorder_new = function(arg0) {
286
289
  const ret = NewAcmeOrder.__wrap(arg0);
287
290
  return addHeapObject(ret);
288
291
  };
289
- imports.wbg.__wbindgen_number_new = function(arg0) {
290
- const ret = arg0;
292
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
293
+ const ret = NewAcmeAuthz.__wrap(arg0);
291
294
  return addHeapObject(ret);
292
295
  };
293
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
294
- const ret = BufferedDecryptedMessage.__wrap(arg0);
296
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
297
+ const ret = ProposalBundle.__wrap(arg0);
295
298
  return addHeapObject(ret);
296
299
  };
297
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
298
- const ret = CoreCrypto.__wrap(arg0);
300
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
301
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
299
302
  return addHeapObject(ret);
300
303
  };
301
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
302
- const ret = FfiWireE2EIdentity.__wrap(arg0);
304
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
305
+ const ret = CommitBundle.__wrap(arg0);
303
306
  return addHeapObject(ret);
304
307
  };
305
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
306
- takeObject(arg0);
307
- };
308
308
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
309
309
  const ret = getObject(arg0);
310
310
  return addHeapObject(ret);
311
311
  };
312
- imports.wbg.__wbindgen_is_null = function(arg0) {
313
- const ret = getObject(arg0) === null;
314
- return ret;
315
- };
316
312
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
317
313
  const ret = getStringFromWasm0(arg0, arg1);
318
314
  return addHeapObject(ret);
319
315
  };
316
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
317
+ const ret = getObject(arg0) === undefined;
318
+ return ret;
319
+ };
320
+ imports.wbg.__wbindgen_is_null = function(arg0) {
321
+ const ret = getObject(arg0) === null;
322
+ return ret;
323
+ };
320
324
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
321
325
  const ret = BigInt.asUintN(64, arg0);
322
326
  return addHeapObject(ret);
@@ -329,14 +333,6 @@ var __wbg_get_imports = function() {
329
333
  getInt32Memory0()[arg0 / 4 + 1] = len1;
330
334
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
331
335
  };
332
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
333
- const ret = getObject(arg0) === undefined;
334
- return ret;
335
- };
336
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
337
- const ret = getObject(arg0) in getObject(arg1);
338
- return ret;
339
- };
340
336
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
341
337
  const v = getObject(arg0);
342
338
  const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
@@ -365,7 +361,11 @@ var __wbg_get_imports = function() {
365
361
  const ret = typeof val === "object" && val !== null;
366
362
  return ret;
367
363
  };
368
- imports.wbg.__wbg_queueMicrotask_adae4bc085237231 = function(arg0) {
364
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
365
+ const ret = getObject(arg0) in getObject(arg1);
366
+ return ret;
367
+ };
368
+ imports.wbg.__wbg_queueMicrotask_26a89c14c53809c0 = function(arg0) {
369
369
  const ret = getObject(arg0).queueMicrotask;
370
370
  return addHeapObject(ret);
371
371
  };
@@ -382,7 +382,7 @@ var __wbg_get_imports = function() {
382
382
  const ret = false;
383
383
  return ret;
384
384
  };
385
- imports.wbg.__wbg_queueMicrotask_4d890031a6a5a50c = function(arg0) {
385
+ imports.wbg.__wbg_queueMicrotask_118eeb525d584d9a = function(arg0) {
386
386
  queueMicrotask(getObject(arg0));
387
387
  };
388
388
  imports.wbg.__wbg_now_0343d9c3e0e8eedc = function() {
@@ -441,79 +441,79 @@ var __wbg_get_imports = function() {
441
441
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
442
442
  }
443
443
  };
444
- imports.wbg.__wbg_length_acb2c4bcbfef2f1a = function(arg0) {
444
+ imports.wbg.__wbg_length_8df427eeded90205 = function(arg0) {
445
445
  const ret = getObject(arg0).length;
446
446
  return ret;
447
447
  };
448
- imports.wbg.__wbg_contains_f2be25be0242ccea = function(arg0, arg1, arg2) {
448
+ imports.wbg.__wbg_contains_7a87af89c3705616 = function(arg0, arg1, arg2) {
449
449
  const ret = getObject(arg0).contains(getStringFromWasm0(arg1, arg2));
450
450
  return ret;
451
451
  };
452
- imports.wbg.__wbg_get_f31a9f341421cffd = function(arg0, arg1, arg2) {
452
+ imports.wbg.__wbg_get_6de6fdeef4691e1a = function(arg0, arg1, arg2) {
453
453
  const ret = getObject(arg1)[arg2 >>> 0];
454
454
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
455
  var len1 = WASM_VECTOR_LEN;
456
456
  getInt32Memory0()[arg0 / 4 + 1] = len1;
457
457
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
458
458
  };
459
- imports.wbg.__wbg_target_52ddf6955f636bf5 = function(arg0) {
459
+ imports.wbg.__wbg_target_791826e938c3e308 = function(arg0) {
460
460
  const ret = getObject(arg0).target;
461
461
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
462
462
  };
463
- imports.wbg.__wbg_key_f5b181c13a2893c4 = function() {
463
+ imports.wbg.__wbg_key_37c38754953d9548 = function() {
464
464
  return handleError(function(arg0) {
465
465
  const ret = getObject(arg0).key;
466
466
  return addHeapObject(ret);
467
467
  }, arguments);
468
468
  };
469
- imports.wbg.__wbg_advance_4a9fc46f41566dd7 = function() {
469
+ imports.wbg.__wbg_advance_91191c6e755be0cf = function() {
470
470
  return handleError(function(arg0, arg1) {
471
471
  getObject(arg0).advance(arg1 >>> 0);
472
472
  }, arguments);
473
473
  };
474
- imports.wbg.__wbg_continue_ff6b09291a37ea4f = function() {
474
+ imports.wbg.__wbg_continue_dc63786eb32e68f4 = function() {
475
475
  return handleError(function(arg0) {
476
476
  getObject(arg0).continue();
477
477
  }, arguments);
478
478
  };
479
- imports.wbg.__wbg_value_818a84b71c8d6a92 = function() {
479
+ imports.wbg.__wbg_value_2423cc2503742f59 = function() {
480
480
  return handleError(function(arg0) {
481
481
  const ret = getObject(arg0).value;
482
482
  return addHeapObject(ret);
483
483
  }, arguments);
484
484
  };
485
- imports.wbg.__wbg_name_a965e127103fc2ed = function(arg0, arg1) {
485
+ imports.wbg.__wbg_name_19991fc9d5bba34b = function(arg0, arg1) {
486
486
  const ret = getObject(arg1).name;
487
487
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
488
  const len1 = WASM_VECTOR_LEN;
489
489
  getInt32Memory0()[arg0 / 4 + 1] = len1;
490
490
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
491
491
  };
492
- imports.wbg.__wbg_objectStoreNames_71c3096b04c76bcd = function(arg0) {
492
+ imports.wbg.__wbg_objectStoreNames_39d5d8ff165673c0 = function(arg0) {
493
493
  const ret = getObject(arg0).objectStoreNames;
494
494
  return addHeapObject(ret);
495
495
  };
496
- imports.wbg.__wbg_close_9830b4b2c785845c = function(arg0) {
496
+ imports.wbg.__wbg_close_acce9432a5e50b56 = function(arg0) {
497
497
  getObject(arg0).close();
498
498
  };
499
- imports.wbg.__wbg_createObjectStore_45c05e7be9907fde = function() {
499
+ imports.wbg.__wbg_createObjectStore_3e6033d951d4d4e3 = function() {
500
500
  return handleError(function(arg0, arg1, arg2, arg3) {
501
501
  const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
502
502
  return addHeapObject(ret);
503
503
  }, arguments);
504
504
  };
505
- imports.wbg.__wbg_deleteObjectStore_517effefcf018434 = function() {
505
+ imports.wbg.__wbg_deleteObjectStore_5e4d5099dfc2a4dd = function() {
506
506
  return handleError(function(arg0, arg1, arg2) {
507
507
  getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
508
508
  }, arguments);
509
509
  };
510
- imports.wbg.__wbg_transaction_632c349fd48458fb = function() {
510
+ imports.wbg.__wbg_transaction_f3434456de85f902 = function() {
511
511
  return handleError(function(arg0, arg1, arg2) {
512
512
  const ret = getObject(arg0).transaction(getObject(arg1), takeObject(arg2));
513
513
  return addHeapObject(ret);
514
514
  }, arguments);
515
515
  };
516
- imports.wbg.__wbg_instanceof_IdbFactory_32ca5b61b481d0d4 = function(arg0) {
516
+ imports.wbg.__wbg_instanceof_IdbFactory_44ad7bf9d2432630 = function(arg0) {
517
517
  let result;
518
518
  try {
519
519
  result = getObject(arg0) instanceof IDBFactory;
@@ -523,152 +523,152 @@ var __wbg_get_imports = function() {
523
523
  const ret = result;
524
524
  return ret;
525
525
  };
526
- imports.wbg.__wbg_deleteDatabase_0fd407c03d274304 = function() {
526
+ imports.wbg.__wbg_deleteDatabase_4d9345751592d548 = function() {
527
527
  return handleError(function(arg0, arg1, arg2) {
528
528
  const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
529
529
  return addHeapObject(ret);
530
530
  }, arguments);
531
531
  };
532
- imports.wbg.__wbg_open_65e0826fa9c7929c = function() {
532
+ imports.wbg.__wbg_open_67f43f98b0470c36 = function() {
533
533
  return handleError(function(arg0, arg1, arg2, arg3) {
534
534
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
535
535
  return addHeapObject(ret);
536
536
  }, arguments);
537
537
  };
538
- imports.wbg.__wbg_open_7cc5c5a15ff86a65 = function() {
538
+ imports.wbg.__wbg_open_fdc86a2e78792175 = function() {
539
539
  return handleError(function(arg0, arg1, arg2) {
540
540
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
541
541
  return addHeapObject(ret);
542
542
  }, arguments);
543
543
  };
544
- imports.wbg.__wbg_get_351198fe19f44e4e = function() {
544
+ imports.wbg.__wbg_get_5a53f1db2e1f849e = function() {
545
545
  return handleError(function(arg0, arg1) {
546
546
  const ret = getObject(arg0).get(getObject(arg1));
547
547
  return addHeapObject(ret);
548
548
  }, arguments);
549
549
  };
550
- imports.wbg.__wbg_indexNames_cd26d0c4a3e2e6d3 = function(arg0) {
550
+ imports.wbg.__wbg_indexNames_46f7cbd210ff2316 = function(arg0) {
551
551
  const ret = getObject(arg0).indexNames;
552
552
  return addHeapObject(ret);
553
553
  };
554
- imports.wbg.__wbg_count_dcd33bc89329c846 = function() {
554
+ imports.wbg.__wbg_count_e8ca9e4c26c83124 = function() {
555
555
  return handleError(function(arg0) {
556
556
  const ret = getObject(arg0).count();
557
557
  return addHeapObject(ret);
558
558
  }, arguments);
559
559
  };
560
- imports.wbg.__wbg_count_c544c9d38c7e7dd7 = function() {
560
+ imports.wbg.__wbg_count_b52f69a5b1f2c70c = function() {
561
561
  return handleError(function(arg0, arg1) {
562
562
  const ret = getObject(arg0).count(getObject(arg1));
563
563
  return addHeapObject(ret);
564
564
  }, arguments);
565
565
  };
566
- imports.wbg.__wbg_createIndex_e1a9dfc378a45abb = function() {
566
+ imports.wbg.__wbg_createIndex_224ae7381d3b4bfd = function() {
567
567
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
568
568
  const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
569
569
  return addHeapObject(ret);
570
570
  }, arguments);
571
571
  };
572
- imports.wbg.__wbg_delete_e8e3bfaf1ea215be = function() {
572
+ imports.wbg.__wbg_delete_a1548c00f44e1608 = function() {
573
573
  return handleError(function(arg0, arg1) {
574
574
  const ret = getObject(arg0).delete(getObject(arg1));
575
575
  return addHeapObject(ret);
576
576
  }, arguments);
577
577
  };
578
- imports.wbg.__wbg_deleteIndex_fdc764ebf52d4c6e = function() {
578
+ imports.wbg.__wbg_deleteIndex_c9c7ce8f15358d94 = function() {
579
579
  return handleError(function(arg0, arg1, arg2) {
580
580
  getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2));
581
581
  }, arguments);
582
582
  };
583
- imports.wbg.__wbg_get_b1f3efa7f2a2f7d1 = function() {
583
+ imports.wbg.__wbg_get_f477c47401497f39 = function() {
584
584
  return handleError(function(arg0, arg1) {
585
585
  const ret = getObject(arg0).get(getObject(arg1));
586
586
  return addHeapObject(ret);
587
587
  }, arguments);
588
588
  };
589
- imports.wbg.__wbg_index_e7603c51b9a919eb = function() {
589
+ imports.wbg.__wbg_index_467316d1b83c23e0 = function() {
590
590
  return handleError(function(arg0, arg1, arg2) {
591
591
  const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
592
592
  return addHeapObject(ret);
593
593
  }, arguments);
594
594
  };
595
- imports.wbg.__wbg_openCursor_218846b7f56f5d54 = function() {
595
+ imports.wbg.__wbg_openCursor_f22aef1cc12ac4f8 = function() {
596
596
  return handleError(function(arg0) {
597
597
  const ret = getObject(arg0).openCursor();
598
598
  return addHeapObject(ret);
599
599
  }, arguments);
600
600
  };
601
- imports.wbg.__wbg_openCursor_31878cfe72aac75c = function() {
601
+ imports.wbg.__wbg_openCursor_dfd216338fea9811 = function() {
602
602
  return handleError(function(arg0, arg1) {
603
603
  const ret = getObject(arg0).openCursor(getObject(arg1));
604
604
  return addHeapObject(ret);
605
605
  }, arguments);
606
606
  };
607
- imports.wbg.__wbg_openCursor_028e15e1e8bc1d13 = function() {
607
+ imports.wbg.__wbg_openCursor_d0e99645eacfd500 = function() {
608
608
  return handleError(function(arg0, arg1, arg2) {
609
609
  const ret = getObject(arg0).openCursor(getObject(arg1), takeObject(arg2));
610
610
  return addHeapObject(ret);
611
611
  }, arguments);
612
612
  };
613
- imports.wbg.__wbg_put_23b163c3aeb63c96 = function() {
613
+ imports.wbg.__wbg_put_39d210624272c87d = function() {
614
614
  return handleError(function(arg0, arg1) {
615
615
  const ret = getObject(arg0).put(getObject(arg1));
616
616
  return addHeapObject(ret);
617
617
  }, arguments);
618
618
  };
619
- imports.wbg.__wbg_put_f50a8dd6e4a8a13a = function() {
619
+ imports.wbg.__wbg_put_d0c11cfda402797f = function() {
620
620
  return handleError(function(arg0, arg1, arg2) {
621
621
  const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
622
622
  return addHeapObject(ret);
623
623
  }, arguments);
624
624
  };
625
- imports.wbg.__wbg_setonupgradeneeded_73793bc200a4f7b8 = function(arg0, arg1) {
625
+ imports.wbg.__wbg_setonupgradeneeded_ebb6b49da07ef076 = function(arg0, arg1) {
626
626
  getObject(arg0).onupgradeneeded = getObject(arg1);
627
627
  };
628
- imports.wbg.__wbg_result_915d75a0bb0397a1 = function() {
628
+ imports.wbg.__wbg_result_43945900200dc972 = function() {
629
629
  return handleError(function(arg0) {
630
630
  const ret = getObject(arg0).result;
631
631
  return addHeapObject(ret);
632
632
  }, arguments);
633
633
  };
634
- imports.wbg.__wbg_error_a093a4b69c2260a3 = function() {
634
+ imports.wbg.__wbg_error_ebceed2ec415ded1 = function() {
635
635
  return handleError(function(arg0) {
636
636
  const ret = getObject(arg0).error;
637
637
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
638
638
  }, arguments);
639
639
  };
640
- imports.wbg.__wbg_transaction_fe8e1f87ae7ea4cc = function(arg0) {
640
+ imports.wbg.__wbg_transaction_e0b73c5d10b37756 = function(arg0) {
641
641
  const ret = getObject(arg0).transaction;
642
642
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
643
643
  };
644
- imports.wbg.__wbg_setonsuccess_a04d5d5a703ed886 = function(arg0, arg1) {
644
+ imports.wbg.__wbg_setonsuccess_8c53d1b7e13c41e5 = function(arg0, arg1) {
645
645
  getObject(arg0).onsuccess = getObject(arg1);
646
646
  };
647
- imports.wbg.__wbg_setonerror_80c9bac4e4864adf = function(arg0, arg1) {
647
+ imports.wbg.__wbg_setonerror_39dab75ef2d606f0 = function(arg0, arg1) {
648
648
  getObject(arg0).onerror = getObject(arg1);
649
649
  };
650
- imports.wbg.__wbg_objectStore_b0e52dee7e737df7 = function() {
650
+ imports.wbg.__wbg_objectStore_fe6c5364a54fc56a = function() {
651
651
  return handleError(function(arg0, arg1, arg2) {
652
652
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
653
653
  return addHeapObject(ret);
654
654
  }, arguments);
655
655
  };
656
- imports.wbg.__wbg_warn_f260f49434e45e62 = function(arg0) {
656
+ imports.wbg.__wbg_warn_0e0204547af47087 = function(arg0) {
657
657
  console.warn(getObject(arg0));
658
658
  };
659
- imports.wbg.__wbg_crypto_58f13aa23ffcb166 = function(arg0) {
659
+ imports.wbg.__wbg_crypto_d05b68a3572bb8ca = function(arg0) {
660
660
  const ret = getObject(arg0).crypto;
661
661
  return addHeapObject(ret);
662
662
  };
663
- imports.wbg.__wbg_process_5b786e71d465a513 = function(arg0) {
663
+ imports.wbg.__wbg_process_b02b3570280d0366 = function(arg0) {
664
664
  const ret = getObject(arg0).process;
665
665
  return addHeapObject(ret);
666
666
  };
667
- imports.wbg.__wbg_versions_c2ab80650590b6a2 = function(arg0) {
667
+ imports.wbg.__wbg_versions_c1cb42213cedf0f5 = function(arg0) {
668
668
  const ret = getObject(arg0).versions;
669
669
  return addHeapObject(ret);
670
670
  };
671
- imports.wbg.__wbg_node_523d7bd03ef69fba = function(arg0) {
671
+ imports.wbg.__wbg_node_43b1089f407e4ec2 = function(arg0) {
672
672
  const ret = getObject(arg0).node;
673
673
  return addHeapObject(ret);
674
674
  };
@@ -676,124 +676,124 @@ var __wbg_get_imports = function() {
676
676
  const ret = typeof getObject(arg0) === "string";
677
677
  return ret;
678
678
  };
679
- imports.wbg.__wbg_require_2784e593a4674877 = function() {
679
+ imports.wbg.__wbg_require_9a7e0f667ead4995 = function() {
680
680
  return handleError(function() {
681
681
  const ret = module_core_crypto_ffi.require;
682
682
  return addHeapObject(ret);
683
683
  }, arguments);
684
684
  };
685
- imports.wbg.__wbg_msCrypto_abcb1295e768d1f2 = function(arg0) {
685
+ imports.wbg.__wbg_msCrypto_10fc94afee92bd76 = function(arg0) {
686
686
  const ret = getObject(arg0).msCrypto;
687
687
  return addHeapObject(ret);
688
688
  };
689
- imports.wbg.__wbg_randomFillSync_a0d98aa11c81fe89 = function() {
689
+ imports.wbg.__wbg_randomFillSync_b70ccbdf4926a99d = function() {
690
690
  return handleError(function(arg0, arg1) {
691
691
  getObject(arg0).randomFillSync(takeObject(arg1));
692
692
  }, arguments);
693
693
  };
694
- imports.wbg.__wbg_getRandomValues_504510b5564925af = function() {
694
+ imports.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d = function() {
695
695
  return handleError(function(arg0, arg1) {
696
696
  getObject(arg0).getRandomValues(getObject(arg1));
697
697
  }, arguments);
698
698
  };
699
- imports.wbg.__wbg_self_f0e34d89f33b99fd = function() {
699
+ imports.wbg.__wbg_self_086b5302bcafb962 = function() {
700
700
  return handleError(function() {
701
701
  const ret = self.self;
702
702
  return addHeapObject(ret);
703
703
  }, arguments);
704
704
  };
705
- imports.wbg.__wbg_window_d3b084224f4774d7 = function() {
705
+ imports.wbg.__wbg_window_132fa5d7546f1de5 = function() {
706
706
  return handleError(function() {
707
707
  const ret = window.window;
708
708
  return addHeapObject(ret);
709
709
  }, arguments);
710
710
  };
711
- imports.wbg.__wbg_globalThis_9caa27ff917c6860 = function() {
711
+ imports.wbg.__wbg_globalThis_e5f801a37ad7d07b = function() {
712
712
  return handleError(function() {
713
713
  const ret = globalThis.globalThis;
714
714
  return addHeapObject(ret);
715
715
  }, arguments);
716
716
  };
717
- imports.wbg.__wbg_global_35dfdd59a4da3e74 = function() {
717
+ imports.wbg.__wbg_global_f9a61fce4af6b7c1 = function() {
718
718
  return handleError(function() {
719
719
  const ret = global.global;
720
720
  return addHeapObject(ret);
721
721
  }, arguments);
722
722
  };
723
- imports.wbg.__wbg_newnoargs_c62ea9419c21fbac = function(arg0, arg1) {
723
+ imports.wbg.__wbg_newnoargs_5859b6d41c6fe9f7 = function(arg0, arg1) {
724
724
  const ret = new Function(getStringFromWasm0(arg0, arg1));
725
725
  return addHeapObject(ret);
726
726
  };
727
- imports.wbg.__wbg_call_90c26b09837aba1c = function() {
727
+ imports.wbg.__wbg_call_a79f1973a4f07d5e = function() {
728
728
  return handleError(function(arg0, arg1) {
729
729
  const ret = getObject(arg0).call(getObject(arg1));
730
730
  return addHeapObject(ret);
731
731
  }, arguments);
732
732
  };
733
- imports.wbg.__wbg_get_f01601b5a68d10e3 = function(arg0, arg1) {
733
+ imports.wbg.__wbg_get_c43534c00f382c8a = function(arg0, arg1) {
734
734
  const ret = getObject(arg0)[arg1 >>> 0];
735
735
  return addHeapObject(ret);
736
736
  };
737
- imports.wbg.__wbg_length_1009b1af0c481d7b = function(arg0) {
737
+ imports.wbg.__wbg_length_d99b680fd68bf71b = function(arg0) {
738
738
  const ret = getObject(arg0).length;
739
739
  return ret;
740
740
  };
741
- imports.wbg.__wbg_new_ffc6d4d085022169 = function() {
741
+ imports.wbg.__wbg_new_34c624469fb1d4fd = function() {
742
742
  const ret = new Array;
743
743
  return addHeapObject(ret);
744
744
  };
745
- imports.wbg.__wbg_new_bfd4534b584a9593 = function() {
745
+ imports.wbg.__wbg_new_ad4df4628315a892 = function() {
746
746
  const ret = new Map;
747
747
  return addHeapObject(ret);
748
748
  };
749
- imports.wbg.__wbg_next_9b877f231f476d01 = function(arg0) {
749
+ imports.wbg.__wbg_next_1938cf110c9491d4 = function(arg0) {
750
750
  const ret = getObject(arg0).next;
751
751
  return addHeapObject(ret);
752
752
  };
753
- imports.wbg.__wbg_next_6529ee0cca8d57ed = function() {
753
+ imports.wbg.__wbg_next_267398d0e0761bf9 = function() {
754
754
  return handleError(function(arg0) {
755
755
  const ret = getObject(arg0).next();
756
756
  return addHeapObject(ret);
757
757
  }, arguments);
758
758
  };
759
- imports.wbg.__wbg_done_5fe336b092d60cf2 = function(arg0) {
759
+ imports.wbg.__wbg_done_506b44765ba84b9c = function(arg0) {
760
760
  const ret = getObject(arg0).done;
761
761
  return ret;
762
762
  };
763
- imports.wbg.__wbg_value_0c248a78fdc8e19f = function(arg0) {
763
+ imports.wbg.__wbg_value_31485d8770eb06ab = function(arg0) {
764
764
  const ret = getObject(arg0).value;
765
765
  return addHeapObject(ret);
766
766
  };
767
- imports.wbg.__wbg_iterator_db7ca081358d4fb2 = function() {
767
+ imports.wbg.__wbg_iterator_364187e1ee96b750 = function() {
768
768
  const ret = Symbol.iterator;
769
769
  return addHeapObject(ret);
770
770
  };
771
- imports.wbg.__wbg_get_7b48513de5dc5ea4 = function() {
771
+ imports.wbg.__wbg_get_5027b32da70f39b1 = function() {
772
772
  return handleError(function(arg0, arg1) {
773
773
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
774
774
  return addHeapObject(ret);
775
775
  }, arguments);
776
776
  };
777
- imports.wbg.__wbg_new_9fb8d994e1c0aaac = function() {
777
+ imports.wbg.__wbg_new_87d841e70661f6e9 = function() {
778
778
  const ret = new Object;
779
779
  return addHeapObject(ret);
780
780
  };
781
- imports.wbg.__wbg_set_f2740edb12e318cd = function(arg0, arg1, arg2) {
781
+ imports.wbg.__wbg_set_379b27f1d5f1bf9c = function(arg0, arg1, arg2) {
782
782
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
783
783
  };
784
- imports.wbg.__wbg_isArray_74fb723e24f76012 = function(arg0) {
784
+ imports.wbg.__wbg_isArray_fbd24d447869b527 = function(arg0) {
785
785
  const ret = Array.isArray(getObject(arg0));
786
786
  return ret;
787
787
  };
788
- imports.wbg.__wbg_of_8e4363f2cb002c8b = function(arg0, arg1, arg2, arg3) {
788
+ imports.wbg.__wbg_of_d43fb39c006c0b36 = function(arg0, arg1, arg2, arg3) {
789
789
  const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
790
790
  return addHeapObject(ret);
791
791
  };
792
- imports.wbg.__wbg_push_901f3914205d44de = function(arg0, arg1) {
792
+ imports.wbg.__wbg_push_906164999551d793 = function(arg0, arg1) {
793
793
  const ret = getObject(arg0).push(getObject(arg1));
794
794
  return ret;
795
795
  };
796
- imports.wbg.__wbg_instanceof_ArrayBuffer_e7d53d51371448e2 = function(arg0) {
796
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f4521cec1b99ee35 = function(arg0) {
797
797
  let result;
798
798
  try {
799
799
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -803,73 +803,73 @@ var __wbg_get_imports = function() {
803
803
  const ret = result;
804
804
  return ret;
805
805
  };
806
- imports.wbg.__wbg_new_a64e3f2afc2cf2f8 = function(arg0, arg1) {
806
+ imports.wbg.__wbg_new_3a66822ed076951c = function(arg0, arg1) {
807
807
  const ret = new Error(getStringFromWasm0(arg0, arg1));
808
808
  return addHeapObject(ret);
809
809
  };
810
- imports.wbg.__wbg_toString_a44236e90224e279 = function(arg0) {
810
+ imports.wbg.__wbg_toString_5326377607a05bf2 = function(arg0) {
811
811
  const ret = getObject(arg0).toString();
812
812
  return addHeapObject(ret);
813
813
  };
814
- imports.wbg.__wbg_apply_a6b207475e344bf9 = function() {
814
+ imports.wbg.__wbg_apply_d890a2eae27f4a03 = function() {
815
815
  return handleError(function(arg0, arg1, arg2) {
816
816
  const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
817
817
  return addHeapObject(ret);
818
818
  }, arguments);
819
819
  };
820
- imports.wbg.__wbg_call_5da1969d7cd31ccd = function() {
820
+ imports.wbg.__wbg_call_f6a2bc58c19c53c6 = function() {
821
821
  return handleError(function(arg0, arg1, arg2) {
822
822
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
823
823
  return addHeapObject(ret);
824
824
  }, arguments);
825
825
  };
826
- imports.wbg.__wbg_call_9079ecd7da811539 = function() {
826
+ imports.wbg.__wbg_call_5830eb5e103aa772 = function() {
827
827
  return handleError(function(arg0, arg1, arg2, arg3) {
828
828
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
829
829
  return addHeapObject(ret);
830
830
  }, arguments);
831
831
  };
832
- imports.wbg.__wbg_call_11073254314c3f34 = function() {
832
+ imports.wbg.__wbg_call_84a3935b24cb0625 = function() {
833
833
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
834
834
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
835
835
  return addHeapObject(ret);
836
836
  }, arguments);
837
837
  };
838
- imports.wbg.__wbg_set_d257c6f2da008627 = function(arg0, arg1, arg2) {
838
+ imports.wbg.__wbg_set_83e83bc2428e50ab = function(arg0, arg1, arg2) {
839
839
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
840
840
  return addHeapObject(ret);
841
841
  };
842
- imports.wbg.__wbg_isSafeInteger_f93fde0dca9820f8 = function(arg0) {
842
+ imports.wbg.__wbg_isSafeInteger_d8c89788832a17bf = function(arg0) {
843
843
  const ret = Number.isSafeInteger(getObject(arg0));
844
844
  return ret;
845
845
  };
846
- imports.wbg.__wbg_getTime_9272be78826033e1 = function(arg0) {
846
+ imports.wbg.__wbg_getTime_af7ca51c0bcefa08 = function(arg0) {
847
847
  const ret = getObject(arg0).getTime();
848
848
  return ret;
849
849
  };
850
- imports.wbg.__wbg_new0_622c21a64f3d83ea = function() {
850
+ imports.wbg.__wbg_new0_c0e40662db0749ee = function() {
851
851
  const ret = new Date;
852
852
  return addHeapObject(ret);
853
853
  };
854
- imports.wbg.__wbg_now_096aa89623f72d50 = function() {
854
+ imports.wbg.__wbg_now_86f7ca537c8b86d5 = function() {
855
855
  const ret = Date.now();
856
856
  return ret;
857
857
  };
858
- imports.wbg.__wbg_entries_9e2e2aa45aa5094a = function(arg0) {
858
+ imports.wbg.__wbg_entries_7a47f5716366056b = function(arg0) {
859
859
  const ret = Object.entries(getObject(arg0));
860
860
  return addHeapObject(ret);
861
861
  };
862
- imports.wbg.__wbg_set_759f75cd92b612d2 = function() {
862
+ imports.wbg.__wbg_set_37a50e901587b477 = function() {
863
863
  return handleError(function(arg0, arg1, arg2) {
864
864
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
865
865
  return ret;
866
866
  }, arguments);
867
867
  };
868
- imports.wbg.__wbg_buffer_a448f833075b71ba = function(arg0) {
868
+ imports.wbg.__wbg_buffer_5d1b598a01b41a42 = function(arg0) {
869
869
  const ret = getObject(arg0).buffer;
870
870
  return addHeapObject(ret);
871
871
  };
872
- imports.wbg.__wbg_instanceof_Promise_19f535f8956ce783 = function(arg0) {
872
+ imports.wbg.__wbg_instanceof_Promise_bbd46d56519fb966 = function(arg0) {
873
873
  let result;
874
874
  try {
875
875
  result = getObject(arg0) instanceof Promise;
@@ -879,14 +879,14 @@ var __wbg_get_imports = function() {
879
879
  const ret = result;
880
880
  return ret;
881
881
  };
882
- imports.wbg.__wbg_new_60f57089c7563e81 = function(arg0, arg1) {
882
+ imports.wbg.__wbg_new_1d93771b84541aa5 = function(arg0, arg1) {
883
883
  try {
884
884
  var state0 = { a: arg0, b: arg1 };
885
885
  var cb0 = (arg02, arg12) => {
886
886
  const a = state0.a;
887
887
  state0.a = 0;
888
888
  try {
889
- return __wbg_adapter_406(a, state0.b, arg02, arg12);
889
+ return __wbg_adapter_411(a, state0.b, arg02, arg12);
890
890
  } finally {
891
891
  state0.a = a;
892
892
  }
@@ -897,38 +897,38 @@ var __wbg_get_imports = function() {
897
897
  state0.a = state0.b = 0;
898
898
  }
899
899
  };
900
- imports.wbg.__wbg_reject_057d6efc513b1660 = function(arg0) {
900
+ imports.wbg.__wbg_reject_c314396c0c29d52d = function(arg0) {
901
901
  const ret = Promise.reject(getObject(arg0));
902
902
  return addHeapObject(ret);
903
903
  };
904
- imports.wbg.__wbg_resolve_6e1c6553a82f85b7 = function(arg0) {
904
+ imports.wbg.__wbg_resolve_97ecd55ee839391b = function(arg0) {
905
905
  const ret = Promise.resolve(getObject(arg0));
906
906
  return addHeapObject(ret);
907
907
  };
908
- imports.wbg.__wbg_then_3ab08cd4fbb91ae9 = function(arg0, arg1) {
908
+ imports.wbg.__wbg_then_7aeb7c5f1536640f = function(arg0, arg1) {
909
909
  const ret = getObject(arg0).then(getObject(arg1));
910
910
  return addHeapObject(ret);
911
911
  };
912
- imports.wbg.__wbg_then_8371cc12cfedc5a2 = function(arg0, arg1, arg2) {
912
+ imports.wbg.__wbg_then_5842e4e97f7beace = function(arg0, arg1, arg2) {
913
913
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
914
914
  return addHeapObject(ret);
915
915
  };
916
- imports.wbg.__wbg_newwithbyteoffsetandlength_d0482f893617af71 = function(arg0, arg1, arg2) {
916
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d695c7957788f922 = function(arg0, arg1, arg2) {
917
917
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
918
918
  return addHeapObject(ret);
919
919
  };
920
- imports.wbg.__wbg_new_8f67e318f15d7254 = function(arg0) {
920
+ imports.wbg.__wbg_new_ace717933ad7117f = function(arg0) {
921
921
  const ret = new Uint8Array(getObject(arg0));
922
922
  return addHeapObject(ret);
923
923
  };
924
- imports.wbg.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
924
+ imports.wbg.__wbg_set_74906aa30864df5a = function(arg0, arg1, arg2) {
925
925
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
926
926
  };
927
- imports.wbg.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
927
+ imports.wbg.__wbg_length_f0764416ba5bb237 = function(arg0) {
928
928
  const ret = getObject(arg0).length;
929
929
  return ret;
930
930
  };
931
- imports.wbg.__wbg_instanceof_Uint8Array_bced6f43aed8c1aa = function(arg0) {
931
+ imports.wbg.__wbg_instanceof_Uint8Array_4f5cffed7df34b2f = function(arg0) {
932
932
  let result;
933
933
  try {
934
934
  result = getObject(arg0) instanceof Uint8Array;
@@ -938,11 +938,11 @@ var __wbg_get_imports = function() {
938
938
  const ret = result;
939
939
  return ret;
940
940
  };
941
- imports.wbg.__wbg_newwithlength_6c2df9e2f3028c43 = function(arg0) {
941
+ imports.wbg.__wbg_newwithlength_728575f3bba9959b = function(arg0) {
942
942
  const ret = new Uint8Array(arg0 >>> 0);
943
943
  return addHeapObject(ret);
944
944
  };
945
- imports.wbg.__wbg_subarray_2e940e41c0f5a1d9 = function(arg0, arg1, arg2) {
945
+ imports.wbg.__wbg_subarray_7f7a652672800851 = function(arg0, arg1, arg2) {
946
946
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
947
947
  return addHeapObject(ret);
948
948
  };
@@ -966,12 +966,12 @@ var __wbg_get_imports = function() {
966
966
  const ret = wasm.memory;
967
967
  return addHeapObject(ret);
968
968
  };
969
- imports.wbg.__wbindgen_closure_wrapper2304 = function(arg0, arg1, arg2) {
970
- const ret = makeMutClosure(arg0, arg1, 424, __wbg_adapter_54);
969
+ imports.wbg.__wbindgen_closure_wrapper2495 = function(arg0, arg1, arg2) {
970
+ const ret = makeMutClosure(arg0, arg1, 649, __wbg_adapter_54);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper10033 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1396, __wbg_adapter_57);
973
+ imports.wbg.__wbindgen_closure_wrapper11403 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 1576, __wbg_adapter_57);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;
@@ -1033,14 +1033,6 @@ var cachedFloat64Memory0 = null;
1033
1033
  var cachedBigInt64Memory0 = null;
1034
1034
  var cachedUint32Memory0 = null;
1035
1035
  var cachedUint16Memory0 = null;
1036
- var DeviceStatus = Object.freeze({
1037
- Valid: 0,
1038
- "0": "Valid",
1039
- Expired: 1,
1040
- "1": "Expired",
1041
- Revoked: 2,
1042
- "2": "Revoked"
1043
- });
1044
1036
  var CredentialType = Object.freeze({
1045
1037
  Basic: 1,
1046
1038
  "1": "Basic",
@@ -1071,6 +1063,14 @@ var Ciphersuite = Object.freeze({
1071
1063
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1072
1064
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1073
1065
  });
1066
+ var DeviceStatus = Object.freeze({
1067
+ Valid: 0,
1068
+ "0": "Valid",
1069
+ Expired: 1,
1070
+ "1": "Expired",
1071
+ Revoked: 2,
1072
+ "2": "Revoked"
1073
+ });
1074
1074
 
1075
1075
  class AcmeChallenge {
1076
1076
  static __wrap(ptr) {
@@ -1310,12 +1310,12 @@ class ConversationConfiguration {
1310
1310
  const ptr = this.__destroy_into_raw();
1311
1311
  wasm.__wbg_conversationconfiguration_free(ptr);
1312
1312
  }
1313
- constructor(ciphersuite, external_senders, key_rotation_span, wire_policy, per_domain_trust_anchors) {
1313
+ constructor(ciphersuite, external_senders, key_rotation_span, wire_policy) {
1314
1314
  try {
1315
1315
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1316
1316
  var ptr0 = isLikeNone(external_senders) ? 0 : passArrayJsValueToWasm0(external_senders, wasm.__wbindgen_malloc);
1317
1317
  var len0 = WASM_VECTOR_LEN;
1318
- wasm.conversationconfiguration_new(retptr, isLikeNone(ciphersuite) ? 8 : ciphersuite, ptr0, len0, !isLikeNone(key_rotation_span), isLikeNone(key_rotation_span) ? 0 : key_rotation_span, isLikeNone(wire_policy) ? 3 : wire_policy, addHeapObject(per_domain_trust_anchors));
1318
+ wasm.conversationconfiguration_new(retptr, isLikeNone(ciphersuite) ? 8 : ciphersuite, ptr0, len0, !isLikeNone(key_rotation_span), isLikeNone(key_rotation_span) ? 0 : key_rotation_span, isLikeNone(wire_policy) ? 3 : wire_policy);
1319
1319
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1320
1320
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1321
1321
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -1377,6 +1377,26 @@ class CoreCrypto {
1377
1377
  const ret = wasm.corecrypto_e2ei_new_rotate_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_days, ciphersuite);
1378
1378
  return takeObject(ret);
1379
1379
  }
1380
+ e2ei_register_acme_ca(trust_anchor_pem) {
1381
+ const ptr0 = passStringToWasm0(trust_anchor_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1382
+ const len0 = WASM_VECTOR_LEN;
1383
+ const ret = wasm.corecrypto_e2ei_register_acme_ca(this.__wbg_ptr, ptr0, len0);
1384
+ return takeObject(ret);
1385
+ }
1386
+ e2ei_register_intermediate_ca(cert_pem) {
1387
+ const ptr0 = passStringToWasm0(cert_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1388
+ const len0 = WASM_VECTOR_LEN;
1389
+ const ret = wasm.corecrypto_e2ei_register_intermediate_ca(this.__wbg_ptr, ptr0, len0);
1390
+ return takeObject(ret);
1391
+ }
1392
+ e2ei_register_crl(crl_dp, crl_der) {
1393
+ const ptr0 = passStringToWasm0(crl_dp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1394
+ const len0 = WASM_VECTOR_LEN;
1395
+ const ptr1 = passArray8ToWasm0(crl_der, wasm.__wbindgen_malloc);
1396
+ const len1 = WASM_VECTOR_LEN;
1397
+ const ret = wasm.corecrypto_e2ei_register_crl(this.__wbg_ptr, ptr0, len0, ptr1, len1);
1398
+ return takeObject(ret);
1399
+ }
1380
1400
  e2ei_mls_init_only(enrollment, certificate_chain, nb_key_package) {
1381
1401
  _assertClass(enrollment, FfiWireE2EIdentity);
1382
1402
  var ptr0 = enrollment.__destroy_into_raw();
@@ -1627,14 +1647,6 @@ class CoreCrypto {
1627
1647
  const ret = wasm.corecrypto_encrypt_message(this.__wbg_ptr, ptr0, len0, ptr1, len1);
1628
1648
  return takeObject(ret);
1629
1649
  }
1630
- update_trust_anchors_from_conversation(conversation_id, remove_domain_names, add_trust_anchors) {
1631
- const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
1632
- const len0 = WASM_VECTOR_LEN;
1633
- const ptr1 = passArrayJsValueToWasm0(remove_domain_names, wasm.__wbindgen_malloc);
1634
- const len1 = WASM_VECTOR_LEN;
1635
- const ret = wasm.corecrypto_update_trust_anchors_from_conversation(this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(add_trust_anchors));
1636
- return takeObject(ret);
1637
- }
1638
1650
  new_add_proposal(conversation_id, keypackage) {
1639
1651
  const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
1640
1652
  const len0 = WASM_VECTOR_LEN;
@@ -1885,7 +1897,6 @@ class CoreCryptoWasmCallbacks {
1885
1897
  return this;
1886
1898
  }
1887
1899
  }
1888
-
1889
1900
  class CustomConfiguration {
1890
1901
  __destroy_into_raw() {
1891
1902
  const ptr = this.__wbg_ptr;
@@ -1986,8 +1997,7 @@ class FfiWireE2EIdentity {
1986
1997
  }
1987
1998
  new_oidc_challenge_response(cc, challenge) {
1988
1999
  _assertClass(cc, CoreCrypto);
1989
- var ptr0 = cc.__destroy_into_raw();
1990
- const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_response(this.__wbg_ptr, ptr0, addHeapObject(challenge));
2000
+ const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_response(this.__wbg_ptr, cc.__wbg_ptr, addHeapObject(challenge));
1991
2001
  return takeObject(ret);
1992
2002
  }
1993
2003
  check_order_request(order_url, previous_nonce) {
@@ -2138,6 +2148,7 @@ class NewAcmeOrder {
2138
2148
  }
2139
2149
  }
2140
2150
  }
2151
+
2141
2152
  class ProposalBundle {
2142
2153
  static __wrap(ptr) {
2143
2154
  ptr = ptr >>> 0;
@@ -2507,10 +2518,9 @@ class CoreCrypto2 {
2507
2518
  const {
2508
2519
  ciphersuite,
2509
2520
  externalSenders,
2510
- custom = {},
2511
- perDomainTrustAnchors = []
2521
+ custom = {}
2512
2522
  } = configuration || {};
2513
- const config = new ConversationConfiguration(ciphersuite, externalSenders, custom?.keyRotationSpan, custom?.wirePolicy, perDomainTrustAnchors);
2523
+ const config = new ConversationConfiguration(ciphersuite, externalSenders, custom?.keyRotationSpan, custom?.wirePolicy);
2514
2524
  const ret = await CoreCryptoError.asyncMapErr(this.#cc.create_conversation(conversationId, creatorCredentialType, config));
2515
2525
  return ret;
2516
2526
  } catch (e) {
@@ -2554,24 +2564,6 @@ class CoreCrypto2 {
2554
2564
  async encryptMessage(conversationId, message) {
2555
2565
  return await CoreCryptoError.asyncMapErr(this.#cc.encrypt_message(conversationId, message));
2556
2566
  }
2557
- async updateTrustAnchorsFromConversation(conversationId, removeDomainNames, addTrustAnchors) {
2558
- try {
2559
- const ffiRet = await CoreCryptoError.asyncMapErr(this.#cc.update_trust_anchors_from_conversation(conversationId, removeDomainNames, addTrustAnchors));
2560
- const gi = ffiRet.group_info;
2561
- const ret = {
2562
- welcome: ffiRet.welcome,
2563
- commit: ffiRet.commit,
2564
- groupInfo: {
2565
- encryptionType: gi.encryption_type,
2566
- ratchetTreeType: gi.ratchet_tree_type,
2567
- payload: gi.payload
2568
- }
2569
- };
2570
- return ret;
2571
- } catch (e) {
2572
- throw CoreCryptoError.fromStdError(e);
2573
- }
2574
- }
2575
2567
  async processWelcomeMessage(welcomeMessage, configuration = {}) {
2576
2568
  try {
2577
2569
  const { keyRotationSpan, wirePolicy } = configuration || {};
@@ -2825,6 +2817,15 @@ class CoreCrypto2 {
2825
2817
  async e2eiMlsInitOnly(enrollment, certificateChain, nbKeyPackage) {
2826
2818
  return await this.#cc.e2ei_mls_init_only(enrollment.inner(), certificateChain, nbKeyPackage);
2827
2819
  }
2820
+ async e2eiRegisterAcmeCA(trustAnchorPEM) {
2821
+ return await this.#cc.e2ei_register_acme_ca(trustAnchorPEM);
2822
+ }
2823
+ async e2eiRegisterIntermediateCA(certPEM) {
2824
+ return await this.#cc.e2ei_register_intermediate_ca(certPEM);
2825
+ }
2826
+ async e2eiRegisterCRL(crlDP, crlDER) {
2827
+ return await this.#cc.e2ei_register_crl(crlDP, crlDER);
2828
+ }
2828
2829
  async e2eiRotateAll(enrollment, certificateChain, newKeyPackageCount) {
2829
2830
  const ffiRet = await this.#cc.e2ei_rotate_all(enrollment.inner(), certificateChain, newKeyPackageCount);
2830
2831
  const ret = {