@wireapp/core-crypto 0.6.0-rc.4 → 0.6.0-rc.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
1
  {
2
- "name": "@wireapp/core-crypto",
3
- "version": "0.6.0-rc.4",
4
- "description": "CoreCrypto bindings for the Web",
5
- "type": "module",
6
- "module": "platforms/web/corecrypto.js",
7
- "types": "platforms/web/corecrypto.d.js",
8
- "scripts": {
9
- "prepare": "npm run build",
10
- "build": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.js",
11
- "build:test": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.test.js",
12
- "clean": "rm -f ./platforms/web/*.{js,ts,wasm,html} && rm -rf ./platforms/web/assets",
13
- "package": "npm run build && npm pack",
14
- "test:raw": "jest -c crypto-ffi/bindings/js/jest.config.js --no-cache --runInBand --verbose",
15
- "test": "npm run build:test && npm run test:raw",
16
- "test:cov": "npm run build:test && jest -c crypto-ffi/bindings/js/jest.config.js --coverage --no-cache --runInBand --verbose"
17
- },
18
- "publishConfig": {
19
- "access": "public"
20
- },
21
- "files": [
22
- "platforms/web"
23
- ],
24
- "keywords": [
25
- "wire",
26
- "e2ee",
27
- "corecrypto",
28
- "mls",
29
- "proteus"
30
- ],
31
- "author": "Mathieu Amiot <amiot.mathieu@gmail.com>",
32
- "license": "GPL-3.0",
33
- "homepage": "https://github.com/wireapp/core-crypto",
34
- "repository": {
35
- "type": "git",
36
- "url": "git@github.com:wireapp/core-crypto.git"
37
- },
38
- "bugs": {
39
- "url": "https://github.com/wireapp/core-crypto/issues"
40
- },
41
- "devDependencies": {
42
- "@rollup/plugin-html": "^0.2.4",
43
- "@types/jest": "^29.0.1",
44
- "@types/jest-dev-server": "^5.0.0",
45
- "@typescript-eslint/eslint-plugin": "^5.36.2",
46
- "@typescript-eslint/parser": "^5.36.2",
47
- "@wasm-tool/rollup-plugin-rust": "^2.3.1",
48
- "dts-bundle-generator": "^6.13.0",
49
- "eslint": "^8.23.1",
50
- "eslint-config-prettier": "^8.5.0",
51
- "eslint-plugin-prettier": "^4.2.1",
52
- "jest": "^29.0.3",
53
- "jest-dev-server": "^6.1.1",
54
- "prettier": "^2.7.1",
55
- "puppeteer": "^17.1.3",
56
- "rollup": "^2.79.0",
57
- "rollup-jest": "^3.0.0",
58
- "rollup-plugin-ts": "^3.0.2",
59
- "ts-jest": "^29.0.0",
60
- "ts-loader": "^9.3.1",
61
- "typescript": "^4.8.3"
62
- }
63
- }
2
+ "name": "@wireapp/core-crypto",
3
+ "version": "0.6.0-rc.5",
4
+ "description": "CoreCrypto bindings for the Web",
5
+ "type": "module",
6
+ "module": "platforms/web/corecrypto.js",
7
+ "types": "platforms/web/corecrypto.d.js",
8
+ "scripts": {
9
+ "prepare": "npm run build",
10
+ "build": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.js",
11
+ "build:test": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.test.js",
12
+ "clean": "rm -f ./platforms/web/*.{js,ts,wasm,html} && rm -rf ./platforms/web/assets",
13
+ "package": "npm run build && npm pack",
14
+ "test:raw": "jest -c crypto-ffi/bindings/js/jest.config.js --no-cache --runInBand --verbose",
15
+ "test": "npm run build:test && npm run test:raw",
16
+ "test:cov": "npm run build:test && jest -c crypto-ffi/bindings/js/jest.config.js --coverage --no-cache --runInBand --verbose"
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "files": [
22
+ "platforms/web"
23
+ ],
24
+ "keywords": [
25
+ "wire",
26
+ "e2ee",
27
+ "corecrypto",
28
+ "mls",
29
+ "proteus"
30
+ ],
31
+ "author": "Mathieu Amiot <amiot.mathieu@gmail.com>",
32
+ "license": "GPL-3.0",
33
+ "homepage": "https://github.com/wireapp/core-crypto",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git@github.com:wireapp/core-crypto.git"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/wireapp/core-crypto/issues"
40
+ },
41
+ "devDependencies": {
42
+ "@rollup/plugin-html": "^0.2.4",
43
+ "@types/jest": "^29.0.1",
44
+ "@types/jest-dev-server": "^5.0.0",
45
+ "@typescript-eslint/eslint-plugin": "^5.36.2",
46
+ "@typescript-eslint/parser": "^5.36.2",
47
+ "@wasm-tool/rollup-plugin-rust": "^2.3.1",
48
+ "dts-bundle-generator": "^6.13.0",
49
+ "eslint": "^8.23.1",
50
+ "eslint-config-prettier": "^8.5.0",
51
+ "eslint-plugin-prettier": "^4.2.1",
52
+ "jest": "^29.0.3",
53
+ "jest-dev-server": "^6.1.1",
54
+ "prettier": "^2.7.1",
55
+ "puppeteer": "^17.1.3",
56
+ "rollup": "^2.79.0",
57
+ "rollup-jest": "^3.0.0",
58
+ "rollup-plugin-ts": "^3.0.2",
59
+ "ts-jest": "^29.0.0",
60
+ "ts-loader": "^9.3.1",
61
+ "typescript": "^4.8.3"
62
+ }
63
+ }
@@ -522,10 +522,11 @@ export interface CoreCryptoCallbacks {
522
522
  * Callback to ensure that the given `clientId` belongs to one of the provided `existingClients`
523
523
  * This basically allows to defer the client ID parsing logic to the caller - because CoreCrypto is oblivious to such things
524
524
  *
525
+ * @param conversationId - id of the group/conversation
525
526
  * @param clientId - id of a client
526
527
  * @param existingClients - all the clients currently within the MLS group
527
528
  */
528
- clientIsExistingGroupUser: (clientId: Uint8Array, existingClients: Uint8Array[]) => boolean;
529
+ clientIsExistingGroupUser: (conversationId: Uint8Array, clientId: Uint8Array, existingClients: Uint8Array[]) => boolean;
529
530
  }
530
531
  /**
531
532
  * Wrapper for the WASM-compiled version of CoreCrypto
@@ -26,6 +26,28 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
26
26
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
27
27
  }
28
28
 
29
+ class CoreCryptoError extends Error {
30
+ constructor(message, rustStackTrace, ...params) {
31
+ super(...params);
32
+
33
+ if (Error.captureStackTrace) {
34
+ Error.captureStackTrace(this, CoreCryptoError);
35
+ }
36
+
37
+ this.name = "CoreCryptoError";
38
+ this.rustStackTrace = rustStackTrace;
39
+ this.proteusErrorCode = 0;
40
+ }
41
+
42
+ setProteusErrorCode(code) {
43
+ this.proteusErrorCode = code;
44
+ }
45
+
46
+ proteusError() {
47
+ return this.proteusErrorCode;
48
+ }
49
+ }
50
+
29
51
  let wasm$1;
30
52
 
31
53
  const heap = new Array(32).fill(undefined);
@@ -57,6 +79,37 @@ function takeObject(idx) {
57
79
  return ret;
58
80
  }
59
81
 
82
+ function isLikeNone(x) {
83
+ return x === undefined || x === null;
84
+ }
85
+
86
+ let cachedFloat64Memory0 = new Float64Array();
87
+
88
+ function getFloat64Memory0() {
89
+ if (cachedFloat64Memory0.byteLength === 0) {
90
+ cachedFloat64Memory0 = new Float64Array(wasm$1.memory.buffer);
91
+ }
92
+ return cachedFloat64Memory0;
93
+ }
94
+
95
+ let cachedInt32Memory0 = new Int32Array();
96
+
97
+ function getInt32Memory0() {
98
+ if (cachedInt32Memory0.byteLength === 0) {
99
+ cachedInt32Memory0 = new Int32Array(wasm$1.memory.buffer);
100
+ }
101
+ return cachedInt32Memory0;
102
+ }
103
+
104
+ let cachedBigInt64Memory0 = new BigInt64Array();
105
+
106
+ function getBigInt64Memory0() {
107
+ if (cachedBigInt64Memory0.byteLength === 0) {
108
+ cachedBigInt64Memory0 = new BigInt64Array(wasm$1.memory.buffer);
109
+ }
110
+ return cachedBigInt64Memory0;
111
+ }
112
+
60
113
  const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
61
114
 
62
115
  cachedTextDecoder.decode();
@@ -129,37 +182,6 @@ function passStringToWasm0(arg, malloc, realloc) {
129
182
  return ptr;
130
183
  }
131
184
 
132
- function isLikeNone(x) {
133
- return x === undefined || x === null;
134
- }
135
-
136
- let cachedInt32Memory0 = new Int32Array();
137
-
138
- function getInt32Memory0() {
139
- if (cachedInt32Memory0.byteLength === 0) {
140
- cachedInt32Memory0 = new Int32Array(wasm$1.memory.buffer);
141
- }
142
- return cachedInt32Memory0;
143
- }
144
-
145
- let cachedFloat64Memory0 = new Float64Array();
146
-
147
- function getFloat64Memory0() {
148
- if (cachedFloat64Memory0.byteLength === 0) {
149
- cachedFloat64Memory0 = new Float64Array(wasm$1.memory.buffer);
150
- }
151
- return cachedFloat64Memory0;
152
- }
153
-
154
- let cachedBigInt64Memory0 = new BigInt64Array();
155
-
156
- function getBigInt64Memory0() {
157
- if (cachedBigInt64Memory0.byteLength === 0) {
158
- cachedBigInt64Memory0 = new BigInt64Array(wasm$1.memory.buffer);
159
- }
160
- return cachedBigInt64Memory0;
161
- }
162
-
163
185
  function debugString(val) {
164
186
  // primitive types
165
187
  const type = typeof val;
@@ -337,7 +359,7 @@ function handleError(f, args) {
337
359
  function getArrayU8FromWasm0(ptr, len) {
338
360
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
339
361
  }
340
- function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
362
+ function __wbg_adapter_264(arg0, arg1, arg2, arg3) {
341
363
  wasm$1.wasm_bindgen__convert__closures__invoke2_mut__ha446eb95921e2107(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
342
364
  }
343
365
 
@@ -2333,14 +2355,14 @@ function getImports() {
2333
2355
  const ret = getObject(arg0);
2334
2356
  return addHeapObject(ret);
2335
2357
  };
2336
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2337
- takeObject(arg0);
2338
- };
2339
2358
  imports.wbg.__wbindgen_is_object = function(arg0) {
2340
2359
  const val = getObject(arg0);
2341
2360
  const ret = typeof(val) === 'object' && val !== null;
2342
2361
  return ret;
2343
2362
  };
2363
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2364
+ takeObject(arg0);
2365
+ };
2344
2366
  imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
2345
2367
  const ret = getObject(arg0)[getObject(arg1)];
2346
2368
  return addHeapObject(ret);
@@ -2353,34 +2375,10 @@ function getImports() {
2353
2375
  const ret = getObject(arg0) in getObject(arg1);
2354
2376
  return ret;
2355
2377
  };
2356
- imports.wbg.__wbg_objectStoreNames_8c06c40d2b05141c = function(arg0) {
2357
- const ret = getObject(arg0).objectStoreNames;
2358
- return addHeapObject(ret);
2359
- };
2360
- imports.wbg.__wbg_length_b59f358f797fd9f4 = function(arg0) {
2361
- const ret = getObject(arg0).length;
2362
- return ret;
2363
- };
2364
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2365
- const ret = getStringFromWasm0(arg0, arg1);
2366
- return addHeapObject(ret);
2367
- };
2368
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2369
- const obj = getObject(arg1);
2370
- const ret = typeof(obj) === 'string' ? obj : undefined;
2371
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2372
- var len0 = WASM_VECTOR_LEN;
2373
- getInt32Memory0()[arg0 / 4 + 1] = len0;
2374
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
2375
- };
2376
2378
  imports.wbg.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
2377
2379
  const ret = getObject(arg0).length;
2378
2380
  return ret;
2379
2381
  };
2380
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2381
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2382
- return addHeapObject(ret);
2383
- };
2384
2382
  imports.wbg.__wbg_new0_a57059d72c5b7aee = function() {
2385
2383
  const ret = new Date();
2386
2384
  return addHeapObject(ret);
@@ -2430,6 +2428,18 @@ function getImports() {
2430
2428
  const ret = BigInt.asUintN(64, arg0);
2431
2429
  return addHeapObject(ret);
2432
2430
  };
2431
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2432
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2433
+ return addHeapObject(ret);
2434
+ };
2435
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2436
+ const obj = getObject(arg1);
2437
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2438
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
2439
+ var len0 = WASM_VECTOR_LEN;
2440
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
2441
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
2442
+ };
2433
2443
  imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
2434
2444
  const ret = Array.isArray(getObject(arg0));
2435
2445
  return ret;
@@ -2442,33 +2452,56 @@ function getImports() {
2442
2452
  const ret = getObject(arg0)[arg1 >>> 0];
2443
2453
  return addHeapObject(ret);
2444
2454
  };
2455
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2456
+ const ret = getStringFromWasm0(arg0, arg1);
2457
+ return addHeapObject(ret);
2458
+ };
2445
2459
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
2446
2460
  const ret = CoreCrypto$1.__wrap(arg0);
2447
2461
  return addHeapObject(ret);
2448
2462
  };
2463
+ imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
2464
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2465
+ };
2449
2466
  imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
2450
2467
  const ret = new Object();
2451
2468
  return addHeapObject(ret);
2452
2469
  };
2453
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
2454
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2455
- };
2456
2470
  imports.wbg.__wbindgen_number_new = function(arg0) {
2457
2471
  const ret = arg0;
2458
2472
  return addHeapObject(ret);
2459
2473
  };
2460
- imports.wbg.__wbg_wiree2eidentity_new = function(arg0) {
2461
- const ret = WireE2eIdentity$1.__wrap(arg0);
2462
- return addHeapObject(ret);
2463
- };
2464
2474
  imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
2465
2475
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2466
2476
  return addHeapObject(ret);
2467
2477
  }, arguments) };
2478
+ imports.wbg.__wbg_new_1d9a920c6bfc44a8 = function() {
2479
+ const ret = new Array();
2480
+ return addHeapObject(ret);
2481
+ };
2468
2482
  imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {
2469
2483
  const ret = new Uint8Array(getObject(arg0));
2470
2484
  return addHeapObject(ret);
2471
2485
  };
2486
+ imports.wbg.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
2487
+ const ret = getObject(arg0).push(getObject(arg1));
2488
+ return ret;
2489
+ };
2490
+ imports.wbg.__wbg_wiree2eidentity_new = function(arg0) {
2491
+ const ret = WireE2eIdentity$1.__wrap(arg0);
2492
+ return addHeapObject(ret);
2493
+ };
2494
+ imports.wbg.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
2495
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2496
+ };
2497
+ imports.wbg.__wbg_new_268f7b7dd3430798 = function() {
2498
+ const ret = new Map();
2499
+ return addHeapObject(ret);
2500
+ };
2501
+ imports.wbg.__wbg_set_933729cf5b66ac11 = function(arg0, arg1, arg2) {
2502
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2503
+ return addHeapObject(ret);
2504
+ };
2472
2505
  imports.wbg.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
2473
2506
  try {
2474
2507
  var state0 = {a: arg0, b: arg1};
@@ -2476,7 +2509,7 @@ function getImports() {
2476
2509
  const a = state0.a;
2477
2510
  state0.a = 0;
2478
2511
  try {
2479
- return __wbg_adapter_260(a, state0.b, arg0, arg1);
2512
+ return __wbg_adapter_264(a, state0.b, arg0, arg1);
2480
2513
  } finally {
2481
2514
  state0.a = a;
2482
2515
  }
@@ -2487,24 +2520,16 @@ function getImports() {
2487
2520
  state0.a = state0.b = 0;
2488
2521
  }
2489
2522
  };
2490
- imports.wbg.__wbg_new_1d9a920c6bfc44a8 = function() {
2491
- const ret = new Array();
2523
+ imports.wbg.__wbg_objectStoreNames_8c06c40d2b05141c = function(arg0) {
2524
+ const ret = getObject(arg0).objectStoreNames;
2492
2525
  return addHeapObject(ret);
2493
2526
  };
2494
- imports.wbg.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
2495
- const ret = getObject(arg0).push(getObject(arg1));
2527
+ imports.wbg.__wbg_length_b59f358f797fd9f4 = function(arg0) {
2528
+ const ret = getObject(arg0).length;
2496
2529
  return ret;
2497
2530
  };
2498
- imports.wbg.__wbg_new_268f7b7dd3430798 = function() {
2499
- const ret = new Map();
2500
- return addHeapObject(ret);
2501
- };
2502
- imports.wbg.__wbg_set_933729cf5b66ac11 = function(arg0, arg1, arg2) {
2503
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2504
- return addHeapObject(ret);
2505
- };
2506
- imports.wbg.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
2507
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2531
+ imports.wbg.__wbg_setproteuserrorcode_5c292d4c4f7e5b6e = function(arg0, arg1) {
2532
+ getObject(arg0).set_proteus_error_code(arg1 >>> 0);
2508
2533
  };
2509
2534
  imports.wbg.__wbg_call_3999bee59e9f7719 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2510
2535
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
@@ -2522,6 +2547,15 @@ function getImports() {
2522
2547
  const ret = ProposalBundle.__wrap(arg0);
2523
2548
  return addHeapObject(ret);
2524
2549
  };
2550
+ imports.wbg.__wbg_new_141b86f11ac9df62 = function(arg0, arg1, arg2, arg3) {
2551
+ try {
2552
+ const ret = new CoreCryptoError(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
2553
+ return addHeapObject(ret);
2554
+ } finally {
2555
+ wasm$1.__wbindgen_free(arg0, arg1);
2556
+ wasm$1.__wbindgen_free(arg2, arg3);
2557
+ }
2558
+ };
2525
2559
  imports.wbg.__wbg_now_4d4a1d65c7a8c0ba = function() {
2526
2560
  const ret = Date.now();
2527
2561
  return ret;
@@ -2581,22 +2615,20 @@ function getImports() {
2581
2615
  const ret = false;
2582
2616
  return ret;
2583
2617
  };
2584
- imports.wbg.__wbg_openCursor_e036069f0e326708 = function() { return handleError(function (arg0, arg1) {
2585
- const ret = getObject(arg0).openCursor(getObject(arg1));
2618
+ imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
2619
+ const ret = getObject(arg0).get(getObject(arg1));
2586
2620
  return addHeapObject(ret);
2587
2621
  }, arguments) };
2588
- imports.wbg.__wbg_openCursor_f055654a98eeab7f = function() { return handleError(function (arg0) {
2589
- const ret = getObject(arg0).openCursor();
2622
+ imports.wbg.__wbg_put_84e7fc93eee27b28 = function() { return handleError(function (arg0, arg1, arg2) {
2623
+ const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
2590
2624
  return addHeapObject(ret);
2591
2625
  }, arguments) };
2592
- imports.wbg.__wbg_setonsuccess_5f71593bc51653a3 = function(arg0, arg1) {
2593
- getObject(arg0).onsuccess = getObject(arg1);
2594
- };
2595
- imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
2596
- getObject(arg0).onerror = getObject(arg1);
2597
- };
2598
- imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
2599
- const ret = getObject(arg0).get(getObject(arg1));
2626
+ imports.wbg.__wbg_put_f2763b05a07f3233 = function() { return handleError(function (arg0, arg1) {
2627
+ const ret = getObject(arg0).put(getObject(arg1));
2628
+ return addHeapObject(ret);
2629
+ }, arguments) };
2630
+ imports.wbg.__wbg_delete_8abedd1043b4105d = function() { return handleError(function (arg0, arg1) {
2631
+ const ret = getObject(arg0).delete(getObject(arg1));
2600
2632
  return addHeapObject(ret);
2601
2633
  }, arguments) };
2602
2634
  imports.wbg.__wbg_count_b0e88953a0ea909c = function() { return handleError(function (arg0) {
@@ -2607,18 +2639,17 @@ function getImports() {
2607
2639
  const ret = getObject(arg0).count(getObject(arg1));
2608
2640
  return addHeapObject(ret);
2609
2641
  }, arguments) };
2610
- imports.wbg.__wbg_delete_8abedd1043b4105d = function() { return handleError(function (arg0, arg1) {
2611
- const ret = getObject(arg0).delete(getObject(arg1));
2612
- return addHeapObject(ret);
2613
- }, arguments) };
2614
- imports.wbg.__wbg_put_84e7fc93eee27b28 = function() { return handleError(function (arg0, arg1, arg2) {
2615
- const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
2642
+ imports.wbg.__wbg_openCursor_e036069f0e326708 = function() { return handleError(function (arg0, arg1) {
2643
+ const ret = getObject(arg0).openCursor(getObject(arg1));
2616
2644
  return addHeapObject(ret);
2617
2645
  }, arguments) };
2618
- imports.wbg.__wbg_put_f2763b05a07f3233 = function() { return handleError(function (arg0, arg1) {
2619
- const ret = getObject(arg0).put(getObject(arg1));
2646
+ imports.wbg.__wbg_openCursor_f055654a98eeab7f = function() { return handleError(function (arg0) {
2647
+ const ret = getObject(arg0).openCursor();
2620
2648
  return addHeapObject(ret);
2621
2649
  }, arguments) };
2650
+ imports.wbg.__wbg_setonsuccess_5f71593bc51653a3 = function(arg0, arg1) {
2651
+ getObject(arg0).onsuccess = getObject(arg1);
2652
+ };
2622
2653
  imports.wbg.__wbg_open_a31c3fe1fdc244eb = function() { return handleError(function (arg0, arg1, arg2) {
2623
2654
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
2624
2655
  return addHeapObject(ret);
@@ -2630,6 +2661,9 @@ function getImports() {
2630
2661
  imports.wbg.__wbg_setonupgradeneeded_17d0b9530f1e0cac = function(arg0, arg1) {
2631
2662
  getObject(arg0).onupgradeneeded = getObject(arg1);
2632
2663
  };
2664
+ imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
2665
+ getObject(arg0).onerror = getObject(arg1);
2666
+ };
2633
2667
  imports.wbg.__wbg_index_86861edf1478f49c = function() { return handleError(function (arg0, arg1, arg2) {
2634
2668
  const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
2635
2669
  return addHeapObject(ret);
@@ -2650,13 +2684,13 @@ function getImports() {
2650
2684
  const ret = getObject(arg0).openCursor(getObject(arg1));
2651
2685
  return addHeapObject(ret);
2652
2686
  }, arguments) };
2687
+ imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
2688
+ getObject(arg0).close();
2689
+ };
2653
2690
  imports.wbg.__wbg_deleteDatabase_f6454de6a88aebde = function() { return handleError(function (arg0, arg1, arg2) {
2654
2691
  const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
2655
2692
  return addHeapObject(ret);
2656
2693
  }, arguments) };
2657
- imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
2658
- getObject(arg0).close();
2659
- };
2660
2694
  imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
2661
2695
  getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
2662
2696
  }, arguments) };
@@ -2926,12 +2960,12 @@ function getImports() {
2926
2960
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
2927
2961
  return addHeapObject(ret);
2928
2962
  }, arguments) };
2929
- imports.wbg.__wbindgen_closure_wrapper2639 = function(arg0, arg1, arg2) {
2930
- const ret = makeMutClosure(arg0, arg1, 142, __wbg_adapter_52);
2963
+ imports.wbg.__wbindgen_closure_wrapper2699 = function(arg0, arg1, arg2) {
2964
+ const ret = makeMutClosure(arg0, arg1, 141, __wbg_adapter_52);
2931
2965
  return addHeapObject(ret);
2932
2966
  };
2933
- imports.wbg.__wbindgen_closure_wrapper4541 = function(arg0, arg1, arg2) {
2934
- const ret = makeMutClosure(arg0, arg1, 142, __wbg_adapter_55);
2967
+ imports.wbg.__wbindgen_closure_wrapper4619 = function(arg0, arg1, arg2) {
2968
+ const ret = makeMutClosure(arg0, arg1, 141, __wbg_adapter_55);
2935
2969
  return addHeapObject(ret);
2936
2970
  };
2937
2971
 
@@ -3005,7 +3039,7 @@ var exports = /*#__PURE__*/Object.freeze({
3005
3039
  var wasm = async (opt = {}) => {
3006
3040
  let {importHook, serverPath} = opt;
3007
3041
 
3008
- let path = "assets/core_crypto_ffi-7a5675cc.wasm";
3042
+ let path = "assets/core_crypto_ffi-2b0ceda6.wasm";
3009
3043
 
3010
3044
  if (serverPath != null) {
3011
3045
  path = serverPath + /[^\/\\]*$/.exec(path)[0];