@keyhive/keyhive 0.0.0-alpha.4 → 0.0.0-alpha.6

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": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.4",
3
+ "version": "0.0.0-alpha.6",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -186,11 +186,22 @@ function debugString(val) {
186
186
  return className;
187
187
  }
188
188
 
189
+ function getArrayJsValueFromWasm0(ptr, len) {
190
+ ptr = ptr >>> 0;
191
+ const mem = getDataViewMemory0();
192
+ const result = [];
193
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
194
+ result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
195
+ }
196
+ wasm.__externref_drop_slice(ptr, len);
197
+ return result;
198
+ }
199
+
189
200
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
190
201
  ? { register: () => {}, unregister: () => {} }
191
202
  : new FinalizationRegistry(
192
203
  state => {
193
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
204
+ wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
194
205
  }
195
206
  );
196
207
 
@@ -208,7 +219,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
208
219
  return f(a, state.b, ...args);
209
220
  } finally {
210
221
  if (--state.cnt === 0) {
211
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
222
+ wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
212
223
  CLOSURE_DTORS.unregister(state);
213
224
  } else {
214
225
  state.a = a;
@@ -220,17 +231,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
220
231
  return real;
221
232
  }
222
233
 
223
- function getArrayJsValueFromWasm0(ptr, len) {
224
- ptr = ptr >>> 0;
225
- const mem = getDataViewMemory0();
226
- const result = [];
227
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
228
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
229
- }
230
- wasm.__externref_drop_slice(ptr, len);
231
- return result;
232
- }
233
-
234
234
  function passArray8ToWasm0(arg, malloc) {
235
235
  const ptr = malloc(arg.length * 1, 1) >>> 0;
236
236
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -269,11 +269,11 @@ export function setPanicHook() {
269
269
  wasm.setPanicHook();
270
270
  }
271
271
 
272
- function __wbg_adapter_14(arg0, arg1, arg2) {
273
- wasm.closure423_externref_shim(arg0, arg1, arg2);
272
+ function __wbg_adapter_6(arg0, arg1, arg2) {
273
+ wasm.closure430_externref_shim(arg0, arg1, arg2);
274
274
  }
275
275
 
276
- function __wbg_adapter_274(arg0, arg1, arg2, arg3) {
276
+ function __wbg_adapter_270(arg0, arg1, arg2, arg3) {
277
277
  wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
278
278
  }
279
279
 
@@ -2010,14 +2010,13 @@ export class Keyhive {
2010
2010
  */
2011
2011
  tryEncrypt(doc, content_ref, pred_refs, content) {
2012
2012
  _assertClass(doc, Document);
2013
- var ptr0 = doc.__destroy_into_raw();
2014
2013
  _assertClass(content_ref, ChangeRef);
2015
- var ptr1 = content_ref.__destroy_into_raw();
2016
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2014
+ var ptr0 = content_ref.__destroy_into_raw();
2015
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2016
+ const len1 = WASM_VECTOR_LEN;
2017
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2017
2018
  const len2 = WASM_VECTOR_LEN;
2018
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2019
- const len3 = WASM_VECTOR_LEN;
2020
- const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2019
+ const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2021
2020
  return ret;
2022
2021
  }
2023
2022
  /**
@@ -2029,14 +2028,13 @@ export class Keyhive {
2029
2028
  */
2030
2029
  tryEncryptArchive(doc, content_ref, pred_refs, content) {
2031
2030
  _assertClass(doc, Document);
2032
- var ptr0 = doc.__destroy_into_raw();
2033
2031
  _assertClass(content_ref, ChangeRef);
2034
- var ptr1 = content_ref.__destroy_into_raw();
2035
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2032
+ var ptr0 = content_ref.__destroy_into_raw();
2033
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2034
+ const len1 = WASM_VECTOR_LEN;
2035
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2036
2036
  const len2 = WASM_VECTOR_LEN;
2037
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2038
- const len3 = WASM_VECTOR_LEN;
2039
- const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2037
+ const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2040
2038
  return ret;
2041
2039
  }
2042
2040
  /**
@@ -2046,16 +2044,14 @@ export class Keyhive {
2046
2044
  */
2047
2045
  tryDecrypt(doc, encrypted) {
2048
2046
  _assertClass(doc, Document);
2049
- var ptr0 = doc.__destroy_into_raw();
2050
2047
  _assertClass(encrypted, Encrypted);
2051
- var ptr1 = encrypted.__destroy_into_raw();
2052
- const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, ptr0, ptr1);
2048
+ const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
2053
2049
  if (ret[3]) {
2054
2050
  throw takeFromExternrefTable0(ret[2]);
2055
2051
  }
2056
- var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2052
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2057
2053
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2058
- return v3;
2054
+ return v1;
2059
2055
  }
2060
2056
  /**
2061
2057
  * @param {Agent} to_add
@@ -2134,8 +2130,7 @@ export class Keyhive {
2134
2130
  */
2135
2131
  receiveContactCard(contact_card) {
2136
2132
  _assertClass(contact_card, ContactCard);
2137
- var ptr0 = contact_card.__destroy_into_raw();
2138
- const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, ptr0);
2133
+ const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
2139
2134
  if (ret[2]) {
2140
2135
  throw takeFromExternrefTable0(ret[1]);
2141
2136
  }
@@ -3100,11 +3095,6 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
3100
3095
  return ret;
3101
3096
  };
3102
3097
 
3103
- export function __wbg_crypto_92ce5ebc02988b17() { return handleError(function (arg0) {
3104
- const ret = arg0.crypto;
3105
- return ret;
3106
- }, arguments) };
3107
-
3108
3098
  export function __wbg_doccontentrefs_new(arg0) {
3109
3099
  const ret = DocContentRefs.__wrap(arg0);
3110
3100
  return ret;
@@ -3197,17 +3187,6 @@ export function __wbg_instanceof_Crypto_33ac2d91cca59233(arg0) {
3197
3187
  return ret;
3198
3188
  };
3199
3189
 
3200
- export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
3201
- let result;
3202
- try {
3203
- result = arg0 instanceof Window;
3204
- } catch (_) {
3205
- result = false;
3206
- }
3207
- const ret = result;
3208
- return ret;
3209
- };
3210
-
3211
3190
  export function __wbg_jsdecrypterror_new(arg0) {
3212
3191
  const ret = JsDecryptError.__wrap(arg0);
3213
3192
  return ret;
@@ -3250,7 +3229,7 @@ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
3250
3229
  const a = state0.a;
3251
3230
  state0.a = 0;
3252
3231
  try {
3253
- return __wbg_adapter_274(a, state0.b, arg0, arg1);
3232
+ return __wbg_adapter_270(a, state0.b, arg0, arg1);
3254
3233
  } finally {
3255
3234
  state0.a = a;
3256
3235
  }
@@ -3480,12 +3459,6 @@ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
3480
3459
  throw new Error(getStringFromWasm0(arg0, arg1));
3481
3460
  };
3482
3461
 
3483
- export function __wbindgen_cast_133053e9d0cd85aa(arg0, arg1) {
3484
- // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3485
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_14);
3486
- return ret;
3487
- };
3488
-
3489
3462
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
3490
3463
  // Cast intrinsic for `Ref(String) -> Externref`.
3491
3464
  const ret = getStringFromWasm0(arg0, arg1);
@@ -3500,6 +3473,12 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
3500
3473
  return ret;
3501
3474
  };
3502
3475
 
3476
+ export function __wbindgen_cast_85315aadc0a89016(arg0, arg1) {
3477
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 429, function: Function { arguments: [Externref], shim_idx: 430, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3478
+ const ret = makeMutClosure(arg0, arg1, 429, __wbg_adapter_6);
3479
+ return ret;
3480
+ };
3481
+
3503
3482
  export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
3504
3483
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3505
3484
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -116,6 +116,7 @@ export const __wbg_jsreceiveprekeyoperror_free: (a: number, b: number) => void;
116
116
  export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
117
117
  export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
118
118
  export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
119
+ export const setPanicHook: () => void;
119
120
  export const keyhive_whoami: (a: number) => number;
120
121
  export const __wbg_access_free: (a: number, b: number) => void;
121
122
  export const access_tryFromString: (a: number, b: number) => number;
@@ -193,7 +194,6 @@ export const signedrevocation_verify: (a: number) => number;
193
194
  export const signedrevocation_delegation: (a: number) => number;
194
195
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
195
196
  export const signedrevocation_signature: (a: number) => [number, number];
196
- export const setPanicHook: () => void;
197
197
  export const encrypted_toBytes: (a: number) => [number, number];
198
198
  export const __wbindgen_exn_store: (a: number) => void;
199
199
  export const __externref_table_alloc: () => number;
@@ -201,9 +201,9 @@ export const __wbindgen_export_2: WebAssembly.Table;
201
201
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
202
202
  export const __wbindgen_malloc: (a: number, b: number) => number;
203
203
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
204
- export const __wbindgen_export_6: WebAssembly.Table;
205
204
  export const __externref_drop_slice: (a: number, b: number) => void;
205
+ export const __wbindgen_export_7: WebAssembly.Table;
206
206
  export const __externref_table_dealloc: (a: number) => void;
207
- export const closure423_externref_shim: (a: number, b: number, c: any) => void;
207
+ export const closure430_externref_shim: (a: number, b: number, c: any) => void;
208
208
  export const closure571_externref_shim: (a: number, b: number, c: any, d: any) => void;
209
209
  export const __wbindgen_start: () => void;
@@ -176,11 +176,22 @@ function debugString(val) {
176
176
  return className;
177
177
  }
178
178
 
179
+ function getArrayJsValueFromWasm0(ptr, len) {
180
+ ptr = ptr >>> 0;
181
+ const mem = getDataViewMemory0();
182
+ const result = [];
183
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
184
+ result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
185
+ }
186
+ wasm.__externref_drop_slice(ptr, len);
187
+ return result;
188
+ }
189
+
179
190
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
180
191
  ? { register: () => {}, unregister: () => {} }
181
192
  : new FinalizationRegistry(
182
193
  state => {
183
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
194
+ wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
184
195
  }
185
196
  );
186
197
 
@@ -198,7 +209,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
198
209
  return f(a, state.b, ...args);
199
210
  } finally {
200
211
  if (--state.cnt === 0) {
201
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
212
+ wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
202
213
  CLOSURE_DTORS.unregister(state);
203
214
  } else {
204
215
  state.a = a;
@@ -210,17 +221,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
210
221
  return real;
211
222
  }
212
223
 
213
- function getArrayJsValueFromWasm0(ptr, len) {
214
- ptr = ptr >>> 0;
215
- const mem = getDataViewMemory0();
216
- const result = [];
217
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
218
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
219
- }
220
- wasm.__externref_drop_slice(ptr, len);
221
- return result;
222
- }
223
-
224
224
  function passArray8ToWasm0(arg, malloc) {
225
225
  const ptr = malloc(arg.length * 1, 1) >>> 0;
226
226
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -259,11 +259,11 @@ exports.setPanicHook = function() {
259
259
  wasm.setPanicHook();
260
260
  };
261
261
 
262
- function __wbg_adapter_10(arg0, arg1, arg2) {
263
- wasm.closure423_externref_shim(arg0, arg1, arg2);
262
+ function __wbg_adapter_8(arg0, arg1, arg2) {
263
+ wasm.closure430_externref_shim(arg0, arg1, arg2);
264
264
  }
265
265
 
266
- function __wbg_adapter_274(arg0, arg1, arg2, arg3) {
266
+ function __wbg_adapter_270(arg0, arg1, arg2, arg3) {
267
267
  wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
268
268
  }
269
269
 
@@ -2066,14 +2066,13 @@ class Keyhive {
2066
2066
  */
2067
2067
  tryEncrypt(doc, content_ref, pred_refs, content) {
2068
2068
  _assertClass(doc, Document);
2069
- var ptr0 = doc.__destroy_into_raw();
2070
2069
  _assertClass(content_ref, ChangeRef);
2071
- var ptr1 = content_ref.__destroy_into_raw();
2072
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2070
+ var ptr0 = content_ref.__destroy_into_raw();
2071
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2072
+ const len1 = WASM_VECTOR_LEN;
2073
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2073
2074
  const len2 = WASM_VECTOR_LEN;
2074
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2075
- const len3 = WASM_VECTOR_LEN;
2076
- const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2075
+ const ret = wasm.keyhive_tryEncrypt(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2077
2076
  return ret;
2078
2077
  }
2079
2078
  /**
@@ -2085,14 +2084,13 @@ class Keyhive {
2085
2084
  */
2086
2085
  tryEncryptArchive(doc, content_ref, pred_refs, content) {
2087
2086
  _assertClass(doc, Document);
2088
- var ptr0 = doc.__destroy_into_raw();
2089
2087
  _assertClass(content_ref, ChangeRef);
2090
- var ptr1 = content_ref.__destroy_into_raw();
2091
- const ptr2 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2088
+ var ptr0 = content_ref.__destroy_into_raw();
2089
+ const ptr1 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
2090
+ const len1 = WASM_VECTOR_LEN;
2091
+ const ptr2 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2092
2092
  const len2 = WASM_VECTOR_LEN;
2093
- const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
2094
- const len3 = WASM_VECTOR_LEN;
2095
- const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
2093
+ const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2);
2096
2094
  return ret;
2097
2095
  }
2098
2096
  /**
@@ -2102,16 +2100,14 @@ class Keyhive {
2102
2100
  */
2103
2101
  tryDecrypt(doc, encrypted) {
2104
2102
  _assertClass(doc, Document);
2105
- var ptr0 = doc.__destroy_into_raw();
2106
2103
  _assertClass(encrypted, Encrypted);
2107
- var ptr1 = encrypted.__destroy_into_raw();
2108
- const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, ptr0, ptr1);
2104
+ const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
2109
2105
  if (ret[3]) {
2110
2106
  throw takeFromExternrefTable0(ret[2]);
2111
2107
  }
2112
- var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2108
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
2113
2109
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2114
- return v3;
2110
+ return v1;
2115
2111
  }
2116
2112
  /**
2117
2113
  * @param {Agent} to_add
@@ -2190,8 +2186,7 @@ class Keyhive {
2190
2186
  */
2191
2187
  receiveContactCard(contact_card) {
2192
2188
  _assertClass(contact_card, ContactCard);
2193
- var ptr0 = contact_card.__destroy_into_raw();
2194
- const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, ptr0);
2189
+ const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
2195
2190
  if (ret[2]) {
2196
2191
  throw takeFromExternrefTable0(ret[1]);
2197
2192
  }
@@ -3192,11 +3187,6 @@ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
3192
3187
  return ret;
3193
3188
  };
3194
3189
 
3195
- exports.__wbg_crypto_92ce5ebc02988b17 = function() { return handleError(function (arg0) {
3196
- const ret = arg0.crypto;
3197
- return ret;
3198
- }, arguments) };
3199
-
3200
3190
  exports.__wbg_doccontentrefs_new = function(arg0) {
3201
3191
  const ret = DocContentRefs.__wrap(arg0);
3202
3192
  return ret;
@@ -3289,17 +3279,6 @@ exports.__wbg_instanceof_Crypto_33ac2d91cca59233 = function(arg0) {
3289
3279
  return ret;
3290
3280
  };
3291
3281
 
3292
- exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
3293
- let result;
3294
- try {
3295
- result = arg0 instanceof Window;
3296
- } catch (_) {
3297
- result = false;
3298
- }
3299
- const ret = result;
3300
- return ret;
3301
- };
3302
-
3303
3282
  exports.__wbg_jsdecrypterror_new = function(arg0) {
3304
3283
  const ret = JsDecryptError.__wrap(arg0);
3305
3284
  return ret;
@@ -3342,7 +3321,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
3342
3321
  const a = state0.a;
3343
3322
  state0.a = 0;
3344
3323
  try {
3345
- return __wbg_adapter_274(a, state0.b, arg0, arg1);
3324
+ return __wbg_adapter_270(a, state0.b, arg0, arg1);
3346
3325
  } finally {
3347
3326
  state0.a = a;
3348
3327
  }
@@ -3572,12 +3551,6 @@ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
3572
3551
  throw new Error(getStringFromWasm0(arg0, arg1));
3573
3552
  };
3574
3553
 
3575
- exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
3576
- // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3577
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_10);
3578
- return ret;
3579
- };
3580
-
3581
3554
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3582
3555
  // Cast intrinsic for `Ref(String) -> Externref`.
3583
3556
  const ret = getStringFromWasm0(arg0, arg1);
@@ -3592,6 +3565,12 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3592
3565
  return ret;
3593
3566
  };
3594
3567
 
3568
+ exports.__wbindgen_cast_85315aadc0a89016 = function(arg0, arg1) {
3569
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 429, function: Function { arguments: [Externref], shim_idx: 430, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3570
+ const ret = makeMutClosure(arg0, arg1, 429, __wbg_adapter_8);
3571
+ return ret;
3572
+ };
3573
+
3595
3574
  exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3596
3575
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3597
3576
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -116,6 +116,7 @@ export const __wbg_jsreceiveprekeyoperror_free: (a: number, b: number) => void;
116
116
  export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
117
117
  export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
118
118
  export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
119
+ export const setPanicHook: () => void;
119
120
  export const keyhive_whoami: (a: number) => number;
120
121
  export const __wbg_access_free: (a: number, b: number) => void;
121
122
  export const access_tryFromString: (a: number, b: number) => number;
@@ -193,7 +194,6 @@ export const signedrevocation_verify: (a: number) => number;
193
194
  export const signedrevocation_delegation: (a: number) => number;
194
195
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
195
196
  export const signedrevocation_signature: (a: number) => [number, number];
196
- export const setPanicHook: () => void;
197
197
  export const encrypted_toBytes: (a: number) => [number, number];
198
198
  export const __wbindgen_exn_store: (a: number) => void;
199
199
  export const __externref_table_alloc: () => number;
@@ -201,9 +201,9 @@ export const __wbindgen_export_2: WebAssembly.Table;
201
201
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
202
202
  export const __wbindgen_malloc: (a: number, b: number) => number;
203
203
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
204
- export const __wbindgen_export_6: WebAssembly.Table;
205
204
  export const __externref_drop_slice: (a: number, b: number) => void;
205
+ export const __wbindgen_export_7: WebAssembly.Table;
206
206
  export const __externref_table_dealloc: (a: number) => void;
207
- export const closure423_externref_shim: (a: number, b: number, c: any) => void;
207
+ export const closure430_externref_shim: (a: number, b: number, c: any) => void;
208
208
  export const closure571_externref_shim: (a: number, b: number, c: any, d: any) => void;
209
209
  export const __wbindgen_start: () => void;
@@ -519,6 +519,7 @@ export interface InitOutput {
519
519
  readonly __wbg_jsencrypterror_free: (a: number, b: number) => void;
520
520
  readonly __wbg_jsdecrypterror_free: (a: number, b: number) => void;
521
521
  readonly __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
522
+ readonly setPanicHook: () => void;
522
523
  readonly keyhive_whoami: (a: number) => number;
523
524
  readonly __wbg_access_free: (a: number, b: number) => void;
524
525
  readonly access_tryFromString: (a: number, b: number) => number;
@@ -596,7 +597,6 @@ export interface InitOutput {
596
597
  readonly signedrevocation_delegation: (a: number) => number;
597
598
  readonly signedrevocation_verifyingKey: (a: number) => [number, number];
598
599
  readonly signedrevocation_signature: (a: number) => [number, number];
599
- readonly setPanicHook: () => void;
600
600
  readonly encrypted_toBytes: (a: number) => [number, number];
601
601
  readonly __wbindgen_exn_store: (a: number) => void;
602
602
  readonly __externref_table_alloc: () => number;
@@ -604,10 +604,10 @@ export interface InitOutput {
604
604
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
605
605
  readonly __wbindgen_malloc: (a: number, b: number) => number;
606
606
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
607
- readonly __wbindgen_export_6: WebAssembly.Table;
608
607
  readonly __externref_drop_slice: (a: number, b: number) => void;
608
+ readonly __wbindgen_export_7: WebAssembly.Table;
609
609
  readonly __externref_table_dealloc: (a: number) => void;
610
- readonly closure423_externref_shim: (a: number, b: number, c: any) => void;
610
+ readonly closure430_externref_shim: (a: number, b: number, c: any) => void;
611
611
  readonly closure571_externref_shim: (a: number, b: number, c: any, d: any) => void;
612
612
  readonly __wbindgen_start: () => void;
613
613
  }