@wireapp/core-crypto 4.1.0 → 4.2.1
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 +1 -1
- package/src/core-crypto-ffi_bg.wasm +0 -0
- package/src/core-crypto-ffi_bg.wasm.d.ts +236 -233
- package/src/corecrypto.d.ts +432 -639
- package/src/corecrypto.js +1031 -1253
package/src/corecrypto.js
CHANGED
@@ -78,37 +78,7 @@ class CoreCryptoError extends Error {
|
|
78
78
|
}
|
79
79
|
// src/core-crypto-ffi.js
|
80
80
|
var wasm;
|
81
|
-
var
|
82
|
-
heap.push(undefined, null, true, false);
|
83
|
-
function getObject(idx) {
|
84
|
-
return heap[idx];
|
85
|
-
}
|
86
|
-
var heap_next = heap.length;
|
87
|
-
function dropObject(idx) {
|
88
|
-
if (idx < 132)
|
89
|
-
return;
|
90
|
-
heap[idx] = heap_next;
|
91
|
-
heap_next = idx;
|
92
|
-
}
|
93
|
-
function takeObject(idx) {
|
94
|
-
const ret = getObject(idx);
|
95
|
-
dropObject(idx);
|
96
|
-
return ret;
|
97
|
-
}
|
98
|
-
function addHeapObject(obj) {
|
99
|
-
if (heap_next === heap.length)
|
100
|
-
heap.push(heap.length + 1);
|
101
|
-
const idx = heap_next;
|
102
|
-
heap_next = heap[idx];
|
103
|
-
heap[idx] = obj;
|
104
|
-
return idx;
|
105
|
-
}
|
106
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
107
|
-
throw Error("TextDecoder not available");
|
108
|
-
} };
|
109
|
-
if (typeof TextDecoder !== "undefined") {
|
110
|
-
cachedTextDecoder.decode();
|
111
|
-
}
|
81
|
+
var WASM_VECTOR_LEN = 0;
|
112
82
|
var cachedUint8ArrayMemory0 = null;
|
113
83
|
function getUint8ArrayMemory0() {
|
114
84
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
@@ -116,11 +86,6 @@ function getUint8ArrayMemory0() {
|
|
116
86
|
}
|
117
87
|
return cachedUint8ArrayMemory0;
|
118
88
|
}
|
119
|
-
function getStringFromWasm0(ptr, len) {
|
120
|
-
ptr = ptr >>> 0;
|
121
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
122
|
-
}
|
123
|
-
var WASM_VECTOR_LEN = 0;
|
124
89
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
125
90
|
throw Error("TextEncoder not available");
|
126
91
|
} };
|
@@ -165,9 +130,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
165
130
|
WASM_VECTOR_LEN = offset;
|
166
131
|
return ptr;
|
167
132
|
}
|
168
|
-
function isLikeNone(x) {
|
169
|
-
return x === undefined || x === null;
|
170
|
-
}
|
171
133
|
var cachedDataViewMemory0 = null;
|
172
134
|
function getDataViewMemory0() {
|
173
135
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
@@ -175,6 +137,56 @@ function getDataViewMemory0() {
|
|
175
137
|
}
|
176
138
|
return cachedDataViewMemory0;
|
177
139
|
}
|
140
|
+
function addToExternrefTable0(obj) {
|
141
|
+
const idx = wasm.__externref_table_alloc();
|
142
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
143
|
+
return idx;
|
144
|
+
}
|
145
|
+
function handleError(f, args) {
|
146
|
+
try {
|
147
|
+
return f.apply(this, args);
|
148
|
+
} catch (e) {
|
149
|
+
const idx = addToExternrefTable0(e);
|
150
|
+
wasm.__wbindgen_exn_store(idx);
|
151
|
+
}
|
152
|
+
}
|
153
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
154
|
+
throw Error("TextDecoder not available");
|
155
|
+
} };
|
156
|
+
if (typeof TextDecoder !== "undefined") {
|
157
|
+
cachedTextDecoder.decode();
|
158
|
+
}
|
159
|
+
function getStringFromWasm0(ptr, len) {
|
160
|
+
ptr = ptr >>> 0;
|
161
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
162
|
+
}
|
163
|
+
function isLikeNone(x) {
|
164
|
+
return x === undefined || x === null;
|
165
|
+
}
|
166
|
+
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((state) => {
|
167
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
|
168
|
+
});
|
169
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
170
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
171
|
+
const real = (...args) => {
|
172
|
+
state.cnt++;
|
173
|
+
const a = state.a;
|
174
|
+
state.a = 0;
|
175
|
+
try {
|
176
|
+
return f(a, state.b, ...args);
|
177
|
+
} finally {
|
178
|
+
if (--state.cnt === 0) {
|
179
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
180
|
+
CLOSURE_DTORS.unregister(state);
|
181
|
+
} else {
|
182
|
+
state.a = a;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
};
|
186
|
+
real.original = state;
|
187
|
+
CLOSURE_DTORS.register(real, state, state);
|
188
|
+
return real;
|
189
|
+
}
|
178
190
|
function debugString(val) {
|
179
191
|
const type = typeof val;
|
180
192
|
if (type == "number" || type == "boolean" || val == null) {
|
@@ -213,7 +225,7 @@ function debugString(val) {
|
|
213
225
|
}
|
214
226
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
215
227
|
let className;
|
216
|
-
if (builtInMatches.length > 1) {
|
228
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
217
229
|
className = builtInMatches[1];
|
218
230
|
} else {
|
219
231
|
return toString.call(val);
|
@@ -235,48 +247,14 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
235
247
|
ptr = ptr >>> 0;
|
236
248
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
237
249
|
}
|
238
|
-
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
239
|
-
}, unregister: () => {
|
240
|
-
} } : new FinalizationRegistry((state) => {
|
241
|
-
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b);
|
242
|
-
});
|
243
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
244
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
245
|
-
const real = (...args) => {
|
246
|
-
state.cnt++;
|
247
|
-
const a = state.a;
|
248
|
-
state.a = 0;
|
249
|
-
try {
|
250
|
-
return f(a, state.b, ...args);
|
251
|
-
} finally {
|
252
|
-
if (--state.cnt === 0) {
|
253
|
-
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
|
254
|
-
CLOSURE_DTORS.unregister(state);
|
255
|
-
} else {
|
256
|
-
state.a = a;
|
257
|
-
}
|
258
|
-
}
|
259
|
-
};
|
260
|
-
real.original = state;
|
261
|
-
CLOSURE_DTORS.register(real, state, state);
|
262
|
-
return real;
|
263
|
-
}
|
264
|
-
function __wbg_adapter_54(arg0, arg1, arg2) {
|
265
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1879890fdb6b4d62(arg0, arg1, addHeapObject(arg2));
|
266
|
-
}
|
267
|
-
function __wbg_adapter_57(arg0, arg1, arg2) {
|
268
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8f21815acd4fc165(arg0, arg1, addHeapObject(arg2));
|
269
|
-
}
|
270
|
-
function __wbg_adapter_60(arg0, arg1, arg2) {
|
271
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha44976f1fb2b6d28(arg0, arg1, addHeapObject(arg2));
|
272
|
-
}
|
273
250
|
function getArrayJsValueFromWasm0(ptr, len) {
|
274
251
|
ptr = ptr >>> 0;
|
275
252
|
const mem = getDataViewMemory0();
|
276
253
|
const result = [];
|
277
254
|
for (let i = ptr;i < ptr + 4 * len; i += 4) {
|
278
|
-
result.push(
|
255
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
279
256
|
}
|
257
|
+
wasm.__externref_drop_slice(ptr, len);
|
280
258
|
return result;
|
281
259
|
}
|
282
260
|
function passArray8ToWasm0(arg, malloc) {
|
@@ -289,7 +267,7 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
289
267
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
290
268
|
const mem = getDataViewMemory0();
|
291
269
|
for (let i = 0;i < array.length; i++) {
|
292
|
-
mem.setUint32(ptr + 4 * i,
|
270
|
+
mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
|
293
271
|
}
|
294
272
|
WASM_VECTOR_LEN = array.length;
|
295
273
|
return ptr;
|
@@ -311,40 +289,24 @@ function _assertClass(instance, klass) {
|
|
311
289
|
if (!(instance instanceof klass)) {
|
312
290
|
throw new Error(`expected instance of ${klass.name}`);
|
313
291
|
}
|
314
|
-
return instance.ptr;
|
315
292
|
}
|
316
|
-
function
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
321
|
-
}
|
293
|
+
function takeFromExternrefTable0(idx) {
|
294
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
295
|
+
wasm.__externref_table_dealloc(idx);
|
296
|
+
return value;
|
322
297
|
}
|
323
|
-
function
|
324
|
-
wasm.
|
298
|
+
function __wbg_adapter_60(arg0, arg1, arg2) {
|
299
|
+
wasm.closure877_externref_shim(arg0, arg1, arg2);
|
300
|
+
}
|
301
|
+
function __wbg_adapter_63(arg0, arg1, arg2) {
|
302
|
+
wasm.closure2567_externref_shim(arg0, arg1, arg2);
|
303
|
+
}
|
304
|
+
function __wbg_adapter_66(arg0, arg1, arg2) {
|
305
|
+
wasm.closure2763_externref_shim(arg0, arg1, arg2);
|
306
|
+
}
|
307
|
+
function __wbg_adapter_497(arg0, arg1, arg2, arg3) {
|
308
|
+
wasm.closure2850_externref_shim(arg0, arg1, arg2, arg3);
|
325
309
|
}
|
326
|
-
var DeviceStatus = Object.freeze({
|
327
|
-
Valid: 1,
|
328
|
-
"1": "Valid",
|
329
|
-
Expired: 2,
|
330
|
-
"2": "Expired",
|
331
|
-
Revoked: 3,
|
332
|
-
"3": "Revoked"
|
333
|
-
});
|
334
|
-
var CoreCryptoLogLevel = Object.freeze({ Off: 1, "1": "Off", Trace: 2, "2": "Trace", Debug: 3, "3": "Debug", Info: 4, "4": "Info", Warn: 5, "5": "Warn", Error: 6, "6": "Error" });
|
335
|
-
var MlsTransportResponseVariant = Object.freeze({ Success: 1, "1": "Success", Retry: 2, "2": "Retry", Abort: 3, "3": "Abort" });
|
336
|
-
var WirePolicy = Object.freeze({
|
337
|
-
Plaintext: 1,
|
338
|
-
"1": "Plaintext",
|
339
|
-
Ciphertext: 2,
|
340
|
-
"2": "Ciphertext"
|
341
|
-
});
|
342
|
-
var CredentialType = Object.freeze({
|
343
|
-
Basic: 1,
|
344
|
-
"1": "Basic",
|
345
|
-
X509: 2,
|
346
|
-
"2": "X509"
|
347
|
-
});
|
348
310
|
var Ciphersuite = Object.freeze({
|
349
311
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
350
312
|
"1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
|
@@ -361,9 +323,51 @@ var Ciphersuite = Object.freeze({
|
|
361
323
|
MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
|
362
324
|
"7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384"
|
363
325
|
});
|
364
|
-
var
|
365
|
-
|
366
|
-
|
326
|
+
var CoreCryptoLogLevel = Object.freeze({
|
327
|
+
Off: 1,
|
328
|
+
"1": "Off",
|
329
|
+
Trace: 2,
|
330
|
+
"2": "Trace",
|
331
|
+
Debug: 3,
|
332
|
+
"3": "Debug",
|
333
|
+
Info: 4,
|
334
|
+
"4": "Info",
|
335
|
+
Warn: 5,
|
336
|
+
"5": "Warn",
|
337
|
+
Error: 6,
|
338
|
+
"6": "Error"
|
339
|
+
});
|
340
|
+
var CredentialType = Object.freeze({
|
341
|
+
Basic: 1,
|
342
|
+
"1": "Basic",
|
343
|
+
X509: 2,
|
344
|
+
"2": "X509"
|
345
|
+
});
|
346
|
+
var DeviceStatus = Object.freeze({
|
347
|
+
Valid: 1,
|
348
|
+
"1": "Valid",
|
349
|
+
Expired: 2,
|
350
|
+
"2": "Expired",
|
351
|
+
Revoked: 3,
|
352
|
+
"3": "Revoked"
|
353
|
+
});
|
354
|
+
var MlsTransportResponseVariant = Object.freeze({
|
355
|
+
Success: 1,
|
356
|
+
"1": "Success",
|
357
|
+
Retry: 2,
|
358
|
+
"2": "Retry",
|
359
|
+
Abort: 3,
|
360
|
+
"3": "Abort"
|
361
|
+
});
|
362
|
+
var WirePolicy = Object.freeze({
|
363
|
+
Plaintext: 1,
|
364
|
+
"1": "Plaintext",
|
365
|
+
Ciphertext: 2,
|
366
|
+
"2": "Ciphertext"
|
367
|
+
});
|
368
|
+
var __wbindgen_enum_IdbCursorDirection = ["next", "nextunique", "prev", "prevunique"];
|
369
|
+
var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
370
|
+
var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0, 1));
|
367
371
|
|
368
372
|
class AcmeChallenge {
|
369
373
|
static __wrap(ptr) {
|
@@ -384,31 +388,20 @@ class AcmeChallenge {
|
|
384
388
|
wasm.__wbg_acmechallenge_free(ptr, 0);
|
385
389
|
}
|
386
390
|
get delegate() {
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
392
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
393
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
394
|
-
return v1;
|
395
|
-
} finally {
|
396
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
397
|
-
}
|
391
|
+
const ret = wasm.__wbg_get_acmechallenge_delegate(this.__wbg_ptr);
|
392
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
393
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
394
|
+
return v1;
|
398
395
|
}
|
399
396
|
get url() {
|
400
397
|
let deferred1_0;
|
401
398
|
let deferred1_1;
|
402
399
|
try {
|
403
|
-
const
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
deferred1_0 = r0;
|
408
|
-
deferred1_1 = r1;
|
409
|
-
return getStringFromWasm0(r0, r1);
|
400
|
+
const ret = wasm.__wbg_get_acmechallenge_url(this.__wbg_ptr);
|
401
|
+
deferred1_0 = ret[0];
|
402
|
+
deferred1_1 = ret[1];
|
403
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
410
404
|
} finally {
|
411
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
412
405
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
413
406
|
}
|
414
407
|
}
|
@@ -416,22 +409,16 @@ class AcmeChallenge {
|
|
416
409
|
let deferred1_0;
|
417
410
|
let deferred1_1;
|
418
411
|
try {
|
419
|
-
const
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
deferred1_0 = r0;
|
424
|
-
deferred1_1 = r1;
|
425
|
-
return getStringFromWasm0(r0, r1);
|
412
|
+
const ret = wasm.__wbg_get_acmechallenge_target(this.__wbg_ptr);
|
413
|
+
deferred1_0 = ret[0];
|
414
|
+
deferred1_1 = ret[1];
|
415
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
426
416
|
} finally {
|
427
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
428
417
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
429
418
|
}
|
430
419
|
}
|
431
420
|
}
|
432
|
-
var AcmeDirectoryFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
433
|
-
}, unregister: () => {
|
434
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmedirectory_free(ptr >>> 0, 1));
|
421
|
+
var AcmeDirectoryFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmedirectory_free(ptr >>> 0, 1));
|
435
422
|
|
436
423
|
class AcmeDirectory {
|
437
424
|
static __wrap(ptr) {
|
@@ -455,15 +442,11 @@ class AcmeDirectory {
|
|
455
442
|
let deferred1_0;
|
456
443
|
let deferred1_1;
|
457
444
|
try {
|
458
|
-
const
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
deferred1_0 = r0;
|
463
|
-
deferred1_1 = r1;
|
464
|
-
return getStringFromWasm0(r0, r1);
|
445
|
+
const ret = wasm.__wbg_get_acmedirectory_new_nonce(this.__wbg_ptr);
|
446
|
+
deferred1_0 = ret[0];
|
447
|
+
deferred1_1 = ret[1];
|
448
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
465
449
|
} finally {
|
466
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
467
450
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
468
451
|
}
|
469
452
|
}
|
@@ -471,15 +454,11 @@ class AcmeDirectory {
|
|
471
454
|
let deferred1_0;
|
472
455
|
let deferred1_1;
|
473
456
|
try {
|
474
|
-
const
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
deferred1_0 = r0;
|
479
|
-
deferred1_1 = r1;
|
480
|
-
return getStringFromWasm0(r0, r1);
|
457
|
+
const ret = wasm.__wbg_get_acmedirectory_new_account(this.__wbg_ptr);
|
458
|
+
deferred1_0 = ret[0];
|
459
|
+
deferred1_1 = ret[1];
|
460
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
481
461
|
} finally {
|
482
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
483
462
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
484
463
|
}
|
485
464
|
}
|
@@ -487,15 +466,11 @@ class AcmeDirectory {
|
|
487
466
|
let deferred1_0;
|
488
467
|
let deferred1_1;
|
489
468
|
try {
|
490
|
-
const
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
deferred1_0 = r0;
|
495
|
-
deferred1_1 = r1;
|
496
|
-
return getStringFromWasm0(r0, r1);
|
469
|
+
const ret = wasm.__wbg_get_acmedirectory_new_order(this.__wbg_ptr);
|
470
|
+
deferred1_0 = ret[0];
|
471
|
+
deferred1_1 = ret[1];
|
472
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
497
473
|
} finally {
|
498
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
499
474
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
500
475
|
}
|
501
476
|
}
|
@@ -503,22 +478,16 @@ class AcmeDirectory {
|
|
503
478
|
let deferred1_0;
|
504
479
|
let deferred1_1;
|
505
480
|
try {
|
506
|
-
const
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
deferred1_0 = r0;
|
511
|
-
deferred1_1 = r1;
|
512
|
-
return getStringFromWasm0(r0, r1);
|
481
|
+
const ret = wasm.__wbg_get_acmedirectory_revoke_cert(this.__wbg_ptr);
|
482
|
+
deferred1_0 = ret[0];
|
483
|
+
deferred1_1 = ret[1];
|
484
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
513
485
|
} finally {
|
514
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
515
486
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
516
487
|
}
|
517
488
|
}
|
518
489
|
}
|
519
|
-
var BufferedDecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
520
|
-
}, unregister: () => {
|
521
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_buffereddecryptedmessage_free(ptr >>> 0, 1));
|
490
|
+
var BufferedDecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_buffereddecryptedmessage_free(ptr >>> 0, 1));
|
522
491
|
|
523
492
|
class BufferedDecryptedMessage {
|
524
493
|
static __wrap(ptr) {
|
@@ -540,30 +509,23 @@ class BufferedDecryptedMessage {
|
|
540
509
|
}
|
541
510
|
get message() {
|
542
511
|
const ret = wasm.buffereddecryptedmessage_message(this.__wbg_ptr);
|
543
|
-
return
|
512
|
+
return ret;
|
544
513
|
}
|
545
514
|
get proposals() {
|
546
515
|
const ret = wasm.buffereddecryptedmessage_proposals(this.__wbg_ptr);
|
547
|
-
return
|
516
|
+
return ret;
|
548
517
|
}
|
549
518
|
get is_active() {
|
550
519
|
const ret = wasm.buffereddecryptedmessage_is_active(this.__wbg_ptr);
|
551
520
|
return ret !== 0;
|
552
521
|
}
|
553
522
|
get commit_delay() {
|
554
|
-
|
555
|
-
|
556
|
-
wasm.buffereddecryptedmessage_commit_delay(retptr, this.__wbg_ptr);
|
557
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
558
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
559
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
560
|
-
} finally {
|
561
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
562
|
-
}
|
523
|
+
const ret = wasm.buffereddecryptedmessage_commit_delay(this.__wbg_ptr);
|
524
|
+
return ret === 4294967297 ? undefined : ret;
|
563
525
|
}
|
564
526
|
get sender_client_id() {
|
565
527
|
const ret = wasm.buffereddecryptedmessage_sender_client_id(this.__wbg_ptr);
|
566
|
-
return
|
528
|
+
return ret;
|
567
529
|
}
|
568
530
|
get has_epoch_changed() {
|
569
531
|
const ret = wasm.buffereddecryptedmessage_has_epoch_changed(this.__wbg_ptr);
|
@@ -575,12 +537,10 @@ class BufferedDecryptedMessage {
|
|
575
537
|
}
|
576
538
|
get crl_new_distribution_points() {
|
577
539
|
const ret = wasm.buffereddecryptedmessage_crl_new_distribution_points(this.__wbg_ptr);
|
578
|
-
return
|
540
|
+
return ret;
|
579
541
|
}
|
580
542
|
}
|
581
|
-
var BuildMetadataFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
582
|
-
}, unregister: () => {
|
583
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_buildmetadata_free(ptr >>> 0, 1));
|
543
|
+
var BuildMetadataFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_buildmetadata_free(ptr >>> 0, 1));
|
584
544
|
|
585
545
|
class BuildMetadata {
|
586
546
|
static __wrap(ptr) {
|
@@ -617,108 +577,43 @@ class BuildMetadata {
|
|
617
577
|
wasm.__wbg_buildmetadata_free(ptr, 0);
|
618
578
|
}
|
619
579
|
get timestamp() {
|
620
|
-
|
621
|
-
|
622
|
-
wasm.__wbg_get_buildmetadata_timestamp(retptr, this.__wbg_ptr);
|
623
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
624
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
625
|
-
return getStringFromWasm0(r0, r1);
|
626
|
-
} finally {
|
627
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
628
|
-
}
|
580
|
+
const ret = wasm.__wbg_get_buildmetadata_timestamp(this.__wbg_ptr);
|
581
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
629
582
|
}
|
630
583
|
get cargoDebug() {
|
631
|
-
|
632
|
-
|
633
|
-
wasm.__wbg_get_buildmetadata_cargoDebug(retptr, this.__wbg_ptr);
|
634
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
635
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
636
|
-
return getStringFromWasm0(r0, r1);
|
637
|
-
} finally {
|
638
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
639
|
-
}
|
584
|
+
const ret = wasm.__wbg_get_buildmetadata_cargoDebug(this.__wbg_ptr);
|
585
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
640
586
|
}
|
641
587
|
get cargoFeatures() {
|
642
|
-
|
643
|
-
|
644
|
-
wasm.__wbg_get_buildmetadata_cargoFeatures(retptr, this.__wbg_ptr);
|
645
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
646
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
647
|
-
return getStringFromWasm0(r0, r1);
|
648
|
-
} finally {
|
649
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
650
|
-
}
|
588
|
+
const ret = wasm.__wbg_get_buildmetadata_cargoFeatures(this.__wbg_ptr);
|
589
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
651
590
|
}
|
652
591
|
get optLevel() {
|
653
|
-
|
654
|
-
|
655
|
-
wasm.__wbg_get_buildmetadata_optLevel(retptr, this.__wbg_ptr);
|
656
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
657
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
658
|
-
return getStringFromWasm0(r0, r1);
|
659
|
-
} finally {
|
660
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
661
|
-
}
|
592
|
+
const ret = wasm.__wbg_get_buildmetadata_optLevel(this.__wbg_ptr);
|
593
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
662
594
|
}
|
663
595
|
get targetTriple() {
|
664
|
-
|
665
|
-
|
666
|
-
wasm.__wbg_get_buildmetadata_targetTriple(retptr, this.__wbg_ptr);
|
667
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
668
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
669
|
-
return getStringFromWasm0(r0, r1);
|
670
|
-
} finally {
|
671
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
672
|
-
}
|
596
|
+
const ret = wasm.__wbg_get_buildmetadata_targetTriple(this.__wbg_ptr);
|
597
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
673
598
|
}
|
674
599
|
get gitBranch() {
|
675
|
-
|
676
|
-
|
677
|
-
wasm.__wbg_get_buildmetadata_gitBranch(retptr, this.__wbg_ptr);
|
678
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
679
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
680
|
-
return getStringFromWasm0(r0, r1);
|
681
|
-
} finally {
|
682
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
683
|
-
}
|
600
|
+
const ret = wasm.__wbg_get_buildmetadata_gitBranch(this.__wbg_ptr);
|
601
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
684
602
|
}
|
685
603
|
get gitDescribe() {
|
686
|
-
|
687
|
-
|
688
|
-
wasm.__wbg_get_buildmetadata_gitDescribe(retptr, this.__wbg_ptr);
|
689
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
690
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
691
|
-
return getStringFromWasm0(r0, r1);
|
692
|
-
} finally {
|
693
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
694
|
-
}
|
604
|
+
const ret = wasm.__wbg_get_buildmetadata_gitDescribe(this.__wbg_ptr);
|
605
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
695
606
|
}
|
696
607
|
get gitSha() {
|
697
|
-
|
698
|
-
|
699
|
-
wasm.__wbg_get_buildmetadata_gitSha(retptr, this.__wbg_ptr);
|
700
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
701
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
702
|
-
return getStringFromWasm0(r0, r1);
|
703
|
-
} finally {
|
704
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
705
|
-
}
|
608
|
+
const ret = wasm.__wbg_get_buildmetadata_gitSha(this.__wbg_ptr);
|
609
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
706
610
|
}
|
707
611
|
get gitDirty() {
|
708
|
-
|
709
|
-
|
710
|
-
wasm.__wbg_get_buildmetadata_gitDirty(retptr, this.__wbg_ptr);
|
711
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
712
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
713
|
-
return getStringFromWasm0(r0, r1);
|
714
|
-
} finally {
|
715
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
716
|
-
}
|
612
|
+
const ret = wasm.__wbg_get_buildmetadata_gitDirty(this.__wbg_ptr);
|
613
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
717
614
|
}
|
718
615
|
}
|
719
|
-
var CommitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
720
|
-
}, unregister: () => {
|
721
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_commitbundle_free(ptr >>> 0, 1));
|
616
|
+
var CommitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_commitbundle_free(ptr >>> 0, 1));
|
722
617
|
|
723
618
|
class CommitBundle {
|
724
619
|
static __wrap(ptr) {
|
@@ -740,20 +635,18 @@ class CommitBundle {
|
|
740
635
|
}
|
741
636
|
get commit() {
|
742
637
|
const ret = wasm.commitbundle_commit(this.__wbg_ptr);
|
743
|
-
return
|
638
|
+
return ret;
|
744
639
|
}
|
745
640
|
get welcome() {
|
746
641
|
const ret = wasm.commitbundle_welcome(this.__wbg_ptr);
|
747
|
-
return
|
642
|
+
return ret;
|
748
643
|
}
|
749
644
|
get group_info() {
|
750
645
|
const ret = wasm.commitbundle_group_info(this.__wbg_ptr);
|
751
646
|
return GroupInfoBundle.__wrap(ret);
|
752
647
|
}
|
753
648
|
}
|
754
|
-
var ConversationConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
755
|
-
}, unregister: () => {
|
756
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationconfiguration_free(ptr >>> 0, 1));
|
649
|
+
var ConversationConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationconfiguration_free(ptr >>> 0, 1));
|
757
650
|
|
758
651
|
class ConversationConfiguration {
|
759
652
|
__destroy_into_raw() {
|
@@ -767,40 +660,30 @@ class ConversationConfiguration {
|
|
767
660
|
wasm.__wbg_conversationconfiguration_free(ptr, 0);
|
768
661
|
}
|
769
662
|
constructor(ciphersuite, external_senders, key_rotation_span, wire_policy) {
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
776
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
777
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
778
|
-
if (r2) {
|
779
|
-
throw takeObject(r1);
|
780
|
-
}
|
781
|
-
this.__wbg_ptr = r0 >>> 0;
|
782
|
-
ConversationConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
783
|
-
return this;
|
784
|
-
} finally {
|
785
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
663
|
+
var ptr0 = isLikeNone(external_senders) ? 0 : passArrayJsValueToWasm0(external_senders, wasm.__wbindgen_malloc);
|
664
|
+
var len0 = WASM_VECTOR_LEN;
|
665
|
+
const ret = wasm.conversationconfiguration_new(isLikeNone(ciphersuite) ? 0 : ciphersuite, ptr0, len0, isLikeNone(key_rotation_span) ? 4294967297 : key_rotation_span >>> 0, isLikeNone(wire_policy) ? 0 : wire_policy);
|
666
|
+
if (ret[2]) {
|
667
|
+
throw takeFromExternrefTable0(ret[1]);
|
786
668
|
}
|
669
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
670
|
+
ConversationConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
671
|
+
return this;
|
787
672
|
}
|
788
673
|
get externalSenders() {
|
789
674
|
const ret = wasm.conversationconfiguration_externalSenders(this.__wbg_ptr);
|
790
|
-
return
|
675
|
+
return ret;
|
791
676
|
}
|
792
677
|
get ciphersuite() {
|
793
678
|
const ret = wasm.__wbg_get_conversationconfiguration_ciphersuite(this.__wbg_ptr);
|
794
|
-
return ret ===
|
679
|
+
return ret === 0 ? undefined : ret;
|
795
680
|
}
|
796
681
|
get custom() {
|
797
682
|
const ret = wasm.__wbg_get_conversationconfiguration_custom(this.__wbg_ptr);
|
798
683
|
return CustomConfiguration.__wrap(ret);
|
799
684
|
}
|
800
685
|
}
|
801
|
-
var CoreCryptoFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
802
|
-
}, unregister: () => {
|
803
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecrypto_free(ptr >>> 0, 1));
|
686
|
+
var CoreCryptoFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecrypto_free(ptr >>> 0, 1));
|
804
687
|
|
805
688
|
class CoreCrypto {
|
806
689
|
static __wrap(ptr) {
|
@@ -822,15 +705,15 @@ class CoreCrypto {
|
|
822
705
|
}
|
823
706
|
e2ei_dump_pki_env() {
|
824
707
|
const ret = wasm.corecrypto_e2ei_dump_pki_env(this.__wbg_ptr);
|
825
|
-
return
|
708
|
+
return ret;
|
826
709
|
}
|
827
710
|
e2ei_is_pki_env_setup() {
|
828
711
|
const ret = wasm.corecrypto_e2ei_is_pki_env_setup(this.__wbg_ptr);
|
829
|
-
return
|
712
|
+
return ret;
|
830
713
|
}
|
831
714
|
e2ei_is_enabled(ciphersuite) {
|
832
715
|
const ret = wasm.corecrypto_e2ei_is_enabled(this.__wbg_ptr, ciphersuite);
|
833
|
-
return
|
716
|
+
return ret;
|
834
717
|
}
|
835
718
|
get_device_identities(conversation_id, device_ids) {
|
836
719
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -838,7 +721,7 @@ class CoreCrypto {
|
|
838
721
|
const ptr1 = passArrayJsValueToWasm0(device_ids, wasm.__wbindgen_malloc);
|
839
722
|
const len1 = WASM_VECTOR_LEN;
|
840
723
|
const ret = wasm.corecrypto_get_device_identities(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
841
|
-
return
|
724
|
+
return ret;
|
842
725
|
}
|
843
726
|
get_user_identities(conversation_id, user_ids) {
|
844
727
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -846,27 +729,23 @@ class CoreCrypto {
|
|
846
729
|
const ptr1 = passArrayJsValueToWasm0(user_ids, wasm.__wbindgen_malloc);
|
847
730
|
const len1 = WASM_VECTOR_LEN;
|
848
731
|
const ret = wasm.corecrypto_get_user_identities(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
849
|
-
return
|
732
|
+
return ret;
|
850
733
|
}
|
851
734
|
get_credential_in_use(group_info, credential_type) {
|
852
735
|
const ptr0 = passArray8ToWasm0(group_info, wasm.__wbindgen_malloc);
|
853
736
|
const len0 = WASM_VECTOR_LEN;
|
854
737
|
const ret = wasm.corecrypto_get_credential_in_use(this.__wbg_ptr, ptr0, len0, credential_type);
|
855
|
-
return
|
738
|
+
return ret;
|
856
739
|
}
|
857
740
|
static version() {
|
858
741
|
let deferred1_0;
|
859
742
|
let deferred1_1;
|
860
743
|
try {
|
861
|
-
const
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
deferred1_0 = r0;
|
866
|
-
deferred1_1 = r1;
|
867
|
-
return getStringFromWasm0(r0, r1);
|
744
|
+
const ret = wasm.corecrypto_version();
|
745
|
+
deferred1_0 = ret[0];
|
746
|
+
deferred1_1 = ret[1];
|
747
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
868
748
|
} finally {
|
869
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
870
749
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
871
750
|
}
|
872
751
|
}
|
@@ -885,8 +764,8 @@ class CoreCrypto {
|
|
885
764
|
const len3 = WASM_VECTOR_LEN;
|
886
765
|
var ptr4 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
887
766
|
var len4 = WASM_VECTOR_LEN;
|
888
|
-
const ret = wasm.corecrypto__internal_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4,
|
889
|
-
return
|
767
|
+
const ret = wasm.corecrypto__internal_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
768
|
+
return ret;
|
890
769
|
}
|
891
770
|
static deferred_init(path, key, entropy_seed) {
|
892
771
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -896,7 +775,7 @@ class CoreCrypto {
|
|
896
775
|
var ptr2 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
897
776
|
var len2 = WASM_VECTOR_LEN;
|
898
777
|
const ret = wasm.corecrypto_deferred_init(ptr0, len0, ptr1, len1, ptr2, len2);
|
899
|
-
return
|
778
|
+
return ret;
|
900
779
|
}
|
901
780
|
has_outstanding_refs() {
|
902
781
|
const ret = wasm.corecrypto_has_outstanding_refs(this.__wbg_ptr);
|
@@ -905,7 +784,7 @@ class CoreCrypto {
|
|
905
784
|
close() {
|
906
785
|
const ptr = this.__destroy_into_raw();
|
907
786
|
const ret = wasm.corecrypto_close(ptr);
|
908
|
-
return
|
787
|
+
return ret;
|
909
788
|
}
|
910
789
|
static set_logger(logger) {
|
911
790
|
_assertClass(logger, CoreCryptoWasmLogger);
|
@@ -919,101 +798,87 @@ class CoreCrypto {
|
|
919
798
|
_assertClass(callbacks, MlsTransportProvider);
|
920
799
|
var ptr0 = callbacks.__destroy_into_raw();
|
921
800
|
const ret = wasm.corecrypto_provide_transport(this.__wbg_ptr, ptr0);
|
922
|
-
return
|
801
|
+
return ret;
|
923
802
|
}
|
924
803
|
client_public_key(ciphersuite, credential_type) {
|
925
804
|
const ret = wasm.corecrypto_client_public_key(this.__wbg_ptr, ciphersuite, credential_type);
|
926
|
-
return
|
805
|
+
return ret;
|
927
806
|
}
|
928
807
|
conversation_epoch(conversation_id) {
|
929
808
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
930
809
|
const len0 = WASM_VECTOR_LEN;
|
931
810
|
const ret = wasm.corecrypto_conversation_epoch(this.__wbg_ptr, ptr0, len0);
|
932
|
-
return
|
811
|
+
return ret;
|
933
812
|
}
|
934
813
|
conversation_ciphersuite(conversation_id) {
|
935
814
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
936
815
|
const len0 = WASM_VECTOR_LEN;
|
937
816
|
const ret = wasm.corecrypto_conversation_ciphersuite(this.__wbg_ptr, ptr0, len0);
|
938
|
-
return
|
817
|
+
return ret;
|
939
818
|
}
|
940
819
|
conversation_exists(conversation_id) {
|
941
820
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
942
821
|
const len0 = WASM_VECTOR_LEN;
|
943
822
|
const ret = wasm.corecrypto_conversation_exists(this.__wbg_ptr, ptr0, len0);
|
944
|
-
return
|
823
|
+
return ret;
|
945
824
|
}
|
946
825
|
random_bytes(len) {
|
947
826
|
const ret = wasm.corecrypto_random_bytes(this.__wbg_ptr, len);
|
948
|
-
return
|
827
|
+
return ret;
|
949
828
|
}
|
950
829
|
reseed_rng(seed) {
|
951
830
|
const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
952
831
|
const len0 = WASM_VECTOR_LEN;
|
953
832
|
const ret = wasm.corecrypto_reseed_rng(this.__wbg_ptr, ptr0, len0);
|
954
|
-
return
|
833
|
+
return ret;
|
955
834
|
}
|
956
835
|
proteus_session_exists(session_id) {
|
957
836
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
958
837
|
const len0 = WASM_VECTOR_LEN;
|
959
838
|
const ret = wasm.corecrypto_proteus_session_exists(this.__wbg_ptr, ptr0, len0);
|
960
|
-
return
|
839
|
+
return ret;
|
961
840
|
}
|
962
841
|
static proteus_last_resort_prekey_id() {
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
967
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
968
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
969
|
-
if (r2) {
|
970
|
-
throw takeObject(r1);
|
971
|
-
}
|
972
|
-
return r0;
|
973
|
-
} finally {
|
974
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
842
|
+
const ret = wasm.corecrypto_proteus_last_resort_prekey_id();
|
843
|
+
if (ret[2]) {
|
844
|
+
throw takeFromExternrefTable0(ret[1]);
|
975
845
|
}
|
846
|
+
return ret[0];
|
976
847
|
}
|
977
848
|
proteus_fingerprint() {
|
978
849
|
const ret = wasm.corecrypto_proteus_fingerprint(this.__wbg_ptr);
|
979
|
-
return
|
850
|
+
return ret;
|
980
851
|
}
|
981
852
|
proteus_fingerprint_local(session_id) {
|
982
853
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
983
854
|
const len0 = WASM_VECTOR_LEN;
|
984
855
|
const ret = wasm.corecrypto_proteus_fingerprint_local(this.__wbg_ptr, ptr0, len0);
|
985
|
-
return
|
856
|
+
return ret;
|
986
857
|
}
|
987
858
|
proteus_fingerprint_remote(session_id) {
|
988
859
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
989
860
|
const len0 = WASM_VECTOR_LEN;
|
990
861
|
const ret = wasm.corecrypto_proteus_fingerprint_remote(this.__wbg_ptr, ptr0, len0);
|
991
|
-
return
|
862
|
+
return ret;
|
992
863
|
}
|
993
864
|
static proteus_fingerprint_prekeybundle(prekey) {
|
994
865
|
let deferred3_0;
|
995
866
|
let deferred3_1;
|
996
867
|
try {
|
997
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
998
868
|
const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
999
869
|
const len0 = WASM_VECTOR_LEN;
|
1000
|
-
wasm.corecrypto_proteus_fingerprint_prekeybundle(
|
1001
|
-
var
|
1002
|
-
var
|
1003
|
-
|
1004
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
1005
|
-
var ptr2 = r0;
|
1006
|
-
var len2 = r1;
|
1007
|
-
if (r3) {
|
870
|
+
const ret = wasm.corecrypto_proteus_fingerprint_prekeybundle(ptr0, len0);
|
871
|
+
var ptr2 = ret[0];
|
872
|
+
var len2 = ret[1];
|
873
|
+
if (ret[3]) {
|
1008
874
|
ptr2 = 0;
|
1009
875
|
len2 = 0;
|
1010
|
-
throw
|
876
|
+
throw takeFromExternrefTable0(ret[2]);
|
1011
877
|
}
|
1012
878
|
deferred3_0 = ptr2;
|
1013
879
|
deferred3_1 = len2;
|
1014
880
|
return getStringFromWasm0(ptr2, len2);
|
1015
881
|
} finally {
|
1016
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1017
882
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
1018
883
|
}
|
1019
884
|
}
|
@@ -1021,28 +886,26 @@ class CoreCrypto {
|
|
1021
886
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1022
887
|
const len0 = WASM_VECTOR_LEN;
|
1023
888
|
const ret = wasm.corecrypto_export_secret_key(this.__wbg_ptr, ptr0, len0, key_length);
|
1024
|
-
return
|
889
|
+
return ret;
|
1025
890
|
}
|
1026
891
|
get_external_sender(id) {
|
1027
892
|
const ptr0 = passArray8ToWasm0(id, wasm.__wbindgen_malloc);
|
1028
893
|
const len0 = WASM_VECTOR_LEN;
|
1029
894
|
const ret = wasm.corecrypto_get_external_sender(this.__wbg_ptr, ptr0, len0);
|
1030
|
-
return
|
895
|
+
return ret;
|
1031
896
|
}
|
1032
897
|
get_client_ids(conversation_id) {
|
1033
898
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1034
899
|
const len0 = WASM_VECTOR_LEN;
|
1035
900
|
const ret = wasm.corecrypto_get_client_ids(this.__wbg_ptr, ptr0, len0);
|
1036
|
-
return
|
901
|
+
return ret;
|
1037
902
|
}
|
1038
903
|
transaction(command) {
|
1039
|
-
const ret = wasm.corecrypto_transaction(this.__wbg_ptr,
|
1040
|
-
return
|
904
|
+
const ret = wasm.corecrypto_transaction(this.__wbg_ptr, command);
|
905
|
+
return ret;
|
1041
906
|
}
|
1042
907
|
}
|
1043
|
-
var CoreCryptoContextFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1044
|
-
}, unregister: () => {
|
1045
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptocontext_free(ptr >>> 0, 1));
|
908
|
+
var CoreCryptoContextFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptocontext_free(ptr >>> 0, 1));
|
1046
909
|
|
1047
910
|
class CoreCryptoContext {
|
1048
911
|
static __wrap(ptr) {
|
@@ -1066,25 +929,25 @@ class CoreCryptoContext {
|
|
1066
929
|
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
1067
930
|
const len0 = WASM_VECTOR_LEN;
|
1068
931
|
const ret = wasm.corecryptocontext_set_data(this.__wbg_ptr, ptr0, len0);
|
1069
|
-
return
|
932
|
+
return ret;
|
1070
933
|
}
|
1071
934
|
get_data() {
|
1072
935
|
const ret = wasm.corecryptocontext_get_data(this.__wbg_ptr);
|
1073
|
-
return
|
936
|
+
return ret;
|
1074
937
|
}
|
1075
938
|
mls_init(client_id, ciphersuites, nb_key_package) {
|
1076
939
|
const ptr0 = passArray8ToWasm0(client_id, wasm.__wbindgen_malloc);
|
1077
940
|
const len0 = WASM_VECTOR_LEN;
|
1078
941
|
const ptr1 = passArray16ToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
1079
942
|
const len1 = WASM_VECTOR_LEN;
|
1080
|
-
const ret = wasm.corecryptocontext_mls_init(this.__wbg_ptr, ptr0, len0, ptr1, len1,
|
1081
|
-
return
|
943
|
+
const ret = wasm.corecryptocontext_mls_init(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
944
|
+
return ret;
|
1082
945
|
}
|
1083
946
|
mls_generate_keypair(ciphersuites) {
|
1084
947
|
const ptr0 = passArray16ToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
1085
948
|
const len0 = WASM_VECTOR_LEN;
|
1086
949
|
const ret = wasm.corecryptocontext_mls_generate_keypair(this.__wbg_ptr, ptr0, len0);
|
1087
|
-
return
|
950
|
+
return ret;
|
1088
951
|
}
|
1089
952
|
mls_init_with_client_id(client_id, signature_public_keys, ciphersuites) {
|
1090
953
|
const ptr0 = passArray8ToWasm0(client_id, wasm.__wbindgen_malloc);
|
@@ -1094,25 +957,25 @@ class CoreCryptoContext {
|
|
1094
957
|
const ptr2 = passArray16ToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
1095
958
|
const len2 = WASM_VECTOR_LEN;
|
1096
959
|
const ret = wasm.corecryptocontext_mls_init_with_client_id(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
1097
|
-
return
|
960
|
+
return ret;
|
1098
961
|
}
|
1099
962
|
client_public_key(ciphersuite, credential_type) {
|
1100
963
|
const ret = wasm.corecryptocontext_client_public_key(this.__wbg_ptr, ciphersuite, credential_type);
|
1101
|
-
return
|
964
|
+
return ret;
|
1102
965
|
}
|
1103
966
|
client_keypackages(ciphersuite, credential_type, amount_requested) {
|
1104
967
|
const ret = wasm.corecryptocontext_client_keypackages(this.__wbg_ptr, ciphersuite, credential_type, amount_requested);
|
1105
|
-
return
|
968
|
+
return ret;
|
1106
969
|
}
|
1107
970
|
client_valid_keypackages_count(ciphersuite, credential_type) {
|
1108
971
|
const ret = wasm.corecryptocontext_client_valid_keypackages_count(this.__wbg_ptr, ciphersuite, credential_type);
|
1109
|
-
return
|
972
|
+
return ret;
|
1110
973
|
}
|
1111
974
|
delete_keypackages(refs) {
|
1112
975
|
const ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
|
1113
976
|
const len0 = WASM_VECTOR_LEN;
|
1114
977
|
const ret = wasm.corecryptocontext_delete_keypackages(this.__wbg_ptr, ptr0, len0);
|
1115
|
-
return
|
978
|
+
return ret;
|
1116
979
|
}
|
1117
980
|
create_conversation(conversation_id, creator_credential_type, config) {
|
1118
981
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1120,25 +983,25 @@ class CoreCryptoContext {
|
|
1120
983
|
_assertClass(config, ConversationConfiguration);
|
1121
984
|
var ptr1 = config.__destroy_into_raw();
|
1122
985
|
const ret = wasm.corecryptocontext_create_conversation(this.__wbg_ptr, ptr0, len0, creator_credential_type, ptr1);
|
1123
|
-
return
|
986
|
+
return ret;
|
1124
987
|
}
|
1125
988
|
conversation_epoch(conversation_id) {
|
1126
989
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1127
990
|
const len0 = WASM_VECTOR_LEN;
|
1128
991
|
const ret = wasm.corecryptocontext_conversation_epoch(this.__wbg_ptr, ptr0, len0);
|
1129
|
-
return
|
992
|
+
return ret;
|
1130
993
|
}
|
1131
994
|
conversation_ciphersuite(conversation_id) {
|
1132
995
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1133
996
|
const len0 = WASM_VECTOR_LEN;
|
1134
997
|
const ret = wasm.corecryptocontext_conversation_ciphersuite(this.__wbg_ptr, ptr0, len0);
|
1135
|
-
return
|
998
|
+
return ret;
|
1136
999
|
}
|
1137
1000
|
conversation_exists(conversation_id) {
|
1138
1001
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1139
1002
|
const len0 = WASM_VECTOR_LEN;
|
1140
1003
|
const ret = wasm.corecryptocontext_conversation_exists(this.__wbg_ptr, ptr0, len0);
|
1141
|
-
return
|
1004
|
+
return ret;
|
1142
1005
|
}
|
1143
1006
|
process_welcome_message(welcome_message, custom_configuration) {
|
1144
1007
|
const ptr0 = passArray8ToWasm0(welcome_message, wasm.__wbindgen_malloc);
|
@@ -1146,7 +1009,7 @@ class CoreCryptoContext {
|
|
1146
1009
|
_assertClass(custom_configuration, CustomConfiguration);
|
1147
1010
|
var ptr1 = custom_configuration.__destroy_into_raw();
|
1148
1011
|
const ret = wasm.corecryptocontext_process_welcome_message(this.__wbg_ptr, ptr0, len0, ptr1);
|
1149
|
-
return
|
1012
|
+
return ret;
|
1150
1013
|
}
|
1151
1014
|
add_clients_to_conversation(conversation_id, key_packages) {
|
1152
1015
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1154,7 +1017,7 @@ class CoreCryptoContext {
|
|
1154
1017
|
const ptr1 = passArrayJsValueToWasm0(key_packages, wasm.__wbindgen_malloc);
|
1155
1018
|
const len1 = WASM_VECTOR_LEN;
|
1156
1019
|
const ret = wasm.corecryptocontext_add_clients_to_conversation(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1157
|
-
return
|
1020
|
+
return ret;
|
1158
1021
|
}
|
1159
1022
|
remove_clients_from_conversation(conversation_id, clients) {
|
1160
1023
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1162,7 +1025,7 @@ class CoreCryptoContext {
|
|
1162
1025
|
const ptr1 = passArrayJsValueToWasm0(clients, wasm.__wbindgen_malloc);
|
1163
1026
|
const len1 = WASM_VECTOR_LEN;
|
1164
1027
|
const ret = wasm.corecryptocontext_remove_clients_from_conversation(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1165
|
-
return
|
1028
|
+
return ret;
|
1166
1029
|
}
|
1167
1030
|
mark_conversation_as_child_of(child_id, parent_id) {
|
1168
1031
|
const ptr0 = passArray8ToWasm0(child_id, wasm.__wbindgen_malloc);
|
@@ -1170,25 +1033,25 @@ class CoreCryptoContext {
|
|
1170
1033
|
const ptr1 = passArray8ToWasm0(parent_id, wasm.__wbindgen_malloc);
|
1171
1034
|
const len1 = WASM_VECTOR_LEN;
|
1172
1035
|
const ret = wasm.corecryptocontext_mark_conversation_as_child_of(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1173
|
-
return
|
1036
|
+
return ret;
|
1174
1037
|
}
|
1175
1038
|
update_keying_material(conversation_id) {
|
1176
1039
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1177
1040
|
const len0 = WASM_VECTOR_LEN;
|
1178
1041
|
const ret = wasm.corecryptocontext_update_keying_material(this.__wbg_ptr, ptr0, len0);
|
1179
|
-
return
|
1042
|
+
return ret;
|
1180
1043
|
}
|
1181
1044
|
commit_pending_proposals(conversation_id) {
|
1182
1045
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1183
1046
|
const len0 = WASM_VECTOR_LEN;
|
1184
1047
|
const ret = wasm.corecryptocontext_commit_pending_proposals(this.__wbg_ptr, ptr0, len0);
|
1185
|
-
return
|
1048
|
+
return ret;
|
1186
1049
|
}
|
1187
1050
|
wipe_conversation(conversation_id) {
|
1188
1051
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1189
1052
|
const len0 = WASM_VECTOR_LEN;
|
1190
1053
|
const ret = wasm.corecryptocontext_wipe_conversation(this.__wbg_ptr, ptr0, len0);
|
1191
|
-
return
|
1054
|
+
return ret;
|
1192
1055
|
}
|
1193
1056
|
decrypt_message(conversation_id, payload) {
|
1194
1057
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1196,7 +1059,7 @@ class CoreCryptoContext {
|
|
1196
1059
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
1197
1060
|
const len1 = WASM_VECTOR_LEN;
|
1198
1061
|
const ret = wasm.corecryptocontext_decrypt_message(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1199
|
-
return
|
1062
|
+
return ret;
|
1200
1063
|
}
|
1201
1064
|
encrypt_message(conversation_id, message) {
|
1202
1065
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1204,7 +1067,7 @@ class CoreCryptoContext {
|
|
1204
1067
|
const ptr1 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
1205
1068
|
const len1 = WASM_VECTOR_LEN;
|
1206
1069
|
const ret = wasm.corecryptocontext_encrypt_message(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1207
|
-
return
|
1070
|
+
return ret;
|
1208
1071
|
}
|
1209
1072
|
join_by_external_commit(group_info, custom_configuration, credential_type) {
|
1210
1073
|
const ptr0 = passArray8ToWasm0(group_info, wasm.__wbindgen_malloc);
|
@@ -1212,33 +1075,33 @@ class CoreCryptoContext {
|
|
1212
1075
|
_assertClass(custom_configuration, CustomConfiguration);
|
1213
1076
|
var ptr1 = custom_configuration.__destroy_into_raw();
|
1214
1077
|
const ret = wasm.corecryptocontext_join_by_external_commit(this.__wbg_ptr, ptr0, len0, ptr1, credential_type);
|
1215
|
-
return
|
1078
|
+
return ret;
|
1216
1079
|
}
|
1217
1080
|
random_bytes(len) {
|
1218
1081
|
const ret = wasm.corecryptocontext_random_bytes(this.__wbg_ptr, len);
|
1219
|
-
return
|
1082
|
+
return ret;
|
1220
1083
|
}
|
1221
1084
|
export_secret_key(conversation_id, key_length) {
|
1222
1085
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1223
1086
|
const len0 = WASM_VECTOR_LEN;
|
1224
1087
|
const ret = wasm.corecryptocontext_export_secret_key(this.__wbg_ptr, ptr0, len0, key_length);
|
1225
|
-
return
|
1088
|
+
return ret;
|
1226
1089
|
}
|
1227
1090
|
get_external_sender(id) {
|
1228
1091
|
const ptr0 = passArray8ToWasm0(id, wasm.__wbindgen_malloc);
|
1229
1092
|
const len0 = WASM_VECTOR_LEN;
|
1230
1093
|
const ret = wasm.corecryptocontext_get_external_sender(this.__wbg_ptr, ptr0, len0);
|
1231
|
-
return
|
1094
|
+
return ret;
|
1232
1095
|
}
|
1233
1096
|
get_client_ids(conversation_id) {
|
1234
1097
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1235
1098
|
const len0 = WASM_VECTOR_LEN;
|
1236
1099
|
const ret = wasm.corecryptocontext_get_client_ids(this.__wbg_ptr, ptr0, len0);
|
1237
|
-
return
|
1100
|
+
return ret;
|
1238
1101
|
}
|
1239
1102
|
proteus_init() {
|
1240
1103
|
const ret = wasm.corecryptocontext_proteus_init(this.__wbg_ptr);
|
1241
|
-
return
|
1104
|
+
return ret;
|
1242
1105
|
}
|
1243
1106
|
proteus_session_from_prekey(session_id, prekey) {
|
1244
1107
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1246,7 +1109,7 @@ class CoreCryptoContext {
|
|
1246
1109
|
const ptr1 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
1247
1110
|
const len1 = WASM_VECTOR_LEN;
|
1248
1111
|
const ret = wasm.corecryptocontext_proteus_session_from_prekey(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1249
|
-
return
|
1112
|
+
return ret;
|
1250
1113
|
}
|
1251
1114
|
proteus_session_from_message(session_id, envelope) {
|
1252
1115
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1254,25 +1117,25 @@ class CoreCryptoContext {
|
|
1254
1117
|
const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
|
1255
1118
|
const len1 = WASM_VECTOR_LEN;
|
1256
1119
|
const ret = wasm.corecryptocontext_proteus_session_from_message(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1257
|
-
return
|
1120
|
+
return ret;
|
1258
1121
|
}
|
1259
1122
|
proteus_session_save(session_id) {
|
1260
1123
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1261
1124
|
const len0 = WASM_VECTOR_LEN;
|
1262
1125
|
const ret = wasm.corecryptocontext_proteus_session_save(this.__wbg_ptr, ptr0, len0);
|
1263
|
-
return
|
1126
|
+
return ret;
|
1264
1127
|
}
|
1265
1128
|
proteus_session_delete(session_id) {
|
1266
1129
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1267
1130
|
const len0 = WASM_VECTOR_LEN;
|
1268
1131
|
const ret = wasm.corecryptocontext_proteus_session_delete(this.__wbg_ptr, ptr0, len0);
|
1269
|
-
return
|
1132
|
+
return ret;
|
1270
1133
|
}
|
1271
1134
|
proteus_session_exists(session_id) {
|
1272
1135
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1273
1136
|
const len0 = WASM_VECTOR_LEN;
|
1274
1137
|
const ret = wasm.corecryptocontext_proteus_session_exists(this.__wbg_ptr, ptr0, len0);
|
1275
|
-
return
|
1138
|
+
return ret;
|
1276
1139
|
}
|
1277
1140
|
proteus_decrypt(session_id, ciphertext) {
|
1278
1141
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1280,7 +1143,7 @@ class CoreCryptoContext {
|
|
1280
1143
|
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
1281
1144
|
const len1 = WASM_VECTOR_LEN;
|
1282
1145
|
const ret = wasm.corecryptocontext_proteus_decrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1283
|
-
return
|
1146
|
+
return ret;
|
1284
1147
|
}
|
1285
1148
|
proteus_encrypt(session_id, plaintext) {
|
1286
1149
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1288,7 +1151,7 @@ class CoreCryptoContext {
|
|
1288
1151
|
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
1289
1152
|
const len1 = WASM_VECTOR_LEN;
|
1290
1153
|
const ret = wasm.corecryptocontext_proteus_encrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1291
|
-
return
|
1154
|
+
return ret;
|
1292
1155
|
}
|
1293
1156
|
proteus_encrypt_batched(sessions, plaintext) {
|
1294
1157
|
const ptr0 = passArrayJsValueToWasm0(sessions, wasm.__wbindgen_malloc);
|
@@ -1296,75 +1159,61 @@ class CoreCryptoContext {
|
|
1296
1159
|
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
1297
1160
|
const len1 = WASM_VECTOR_LEN;
|
1298
1161
|
const ret = wasm.corecryptocontext_proteus_encrypt_batched(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1299
|
-
return
|
1162
|
+
return ret;
|
1300
1163
|
}
|
1301
1164
|
proteus_new_prekey(prekey_id) {
|
1302
1165
|
const ret = wasm.corecryptocontext_proteus_new_prekey(this.__wbg_ptr, prekey_id);
|
1303
|
-
return
|
1166
|
+
return ret;
|
1304
1167
|
}
|
1305
1168
|
proteus_new_prekey_auto() {
|
1306
1169
|
const ret = wasm.corecryptocontext_proteus_new_prekey_auto(this.__wbg_ptr);
|
1307
|
-
return
|
1170
|
+
return ret;
|
1308
1171
|
}
|
1309
1172
|
proteus_last_resort_prekey() {
|
1310
1173
|
const ret = wasm.corecryptocontext_proteus_last_resort_prekey(this.__wbg_ptr);
|
1311
|
-
return
|
1174
|
+
return ret;
|
1312
1175
|
}
|
1313
1176
|
static proteus_last_resort_prekey_id() {
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1318
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1319
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
1320
|
-
if (r2) {
|
1321
|
-
throw takeObject(r1);
|
1322
|
-
}
|
1323
|
-
return r0;
|
1324
|
-
} finally {
|
1325
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1177
|
+
const ret = wasm.corecryptocontext_proteus_last_resort_prekey_id();
|
1178
|
+
if (ret[2]) {
|
1179
|
+
throw takeFromExternrefTable0(ret[1]);
|
1326
1180
|
}
|
1181
|
+
return ret[0];
|
1327
1182
|
}
|
1328
1183
|
proteus_fingerprint() {
|
1329
1184
|
const ret = wasm.corecryptocontext_proteus_fingerprint(this.__wbg_ptr);
|
1330
|
-
return
|
1185
|
+
return ret;
|
1331
1186
|
}
|
1332
1187
|
proteus_fingerprint_local(session_id) {
|
1333
1188
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1334
1189
|
const len0 = WASM_VECTOR_LEN;
|
1335
1190
|
const ret = wasm.corecryptocontext_proteus_fingerprint_local(this.__wbg_ptr, ptr0, len0);
|
1336
|
-
return
|
1191
|
+
return ret;
|
1337
1192
|
}
|
1338
1193
|
proteus_fingerprint_remote(session_id) {
|
1339
1194
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1340
1195
|
const len0 = WASM_VECTOR_LEN;
|
1341
1196
|
const ret = wasm.corecryptocontext_proteus_fingerprint_remote(this.__wbg_ptr, ptr0, len0);
|
1342
|
-
return
|
1197
|
+
return ret;
|
1343
1198
|
}
|
1344
1199
|
static proteus_fingerprint_prekeybundle(prekey) {
|
1345
1200
|
let deferred3_0;
|
1346
1201
|
let deferred3_1;
|
1347
1202
|
try {
|
1348
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1349
1203
|
const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
1350
1204
|
const len0 = WASM_VECTOR_LEN;
|
1351
|
-
wasm.
|
1352
|
-
var
|
1353
|
-
var
|
1354
|
-
|
1355
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
1356
|
-
var ptr2 = r0;
|
1357
|
-
var len2 = r1;
|
1358
|
-
if (r3) {
|
1205
|
+
const ret = wasm.corecryptocontext_proteus_fingerprint_prekeybundle(ptr0, len0);
|
1206
|
+
var ptr2 = ret[0];
|
1207
|
+
var len2 = ret[1];
|
1208
|
+
if (ret[3]) {
|
1359
1209
|
ptr2 = 0;
|
1360
1210
|
len2 = 0;
|
1361
|
-
throw
|
1211
|
+
throw takeFromExternrefTable0(ret[2]);
|
1362
1212
|
}
|
1363
1213
|
deferred3_0 = ptr2;
|
1364
1214
|
deferred3_1 = len2;
|
1365
1215
|
return getStringFromWasm0(ptr2, len2);
|
1366
1216
|
} finally {
|
1367
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1368
1217
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
1369
1218
|
}
|
1370
1219
|
}
|
@@ -1372,7 +1221,7 @@ class CoreCryptoContext {
|
|
1372
1221
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1373
1222
|
const len0 = WASM_VECTOR_LEN;
|
1374
1223
|
const ret = wasm.corecryptocontext_proteus_cryptobox_migrate(this.__wbg_ptr, ptr0, len0);
|
1375
|
-
return
|
1224
|
+
return ret;
|
1376
1225
|
}
|
1377
1226
|
e2ei_new_enrollment(client_id, display_name, handle, team, expiry_sec, ciphersuite) {
|
1378
1227
|
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1384,7 +1233,7 @@ class CoreCryptoContext {
|
|
1384
1233
|
var ptr3 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1385
1234
|
var len3 = WASM_VECTOR_LEN;
|
1386
1235
|
const ret = wasm.corecryptocontext_e2ei_new_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, expiry_sec, ciphersuite);
|
1387
|
-
return
|
1236
|
+
return ret;
|
1388
1237
|
}
|
1389
1238
|
e2ei_new_activation_enrollment(display_name, handle, team, expiry_sec, ciphersuite) {
|
1390
1239
|
const ptr0 = passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1394,7 +1243,7 @@ class CoreCryptoContext {
|
|
1394
1243
|
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1395
1244
|
var len2 = WASM_VECTOR_LEN;
|
1396
1245
|
const ret = wasm.corecryptocontext_e2ei_new_activation_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
1397
|
-
return
|
1246
|
+
return ret;
|
1398
1247
|
}
|
1399
1248
|
e2ei_new_rotate_enrollment(display_name, handle, team, expiry_sec, ciphersuite) {
|
1400
1249
|
var ptr0 = isLikeNone(display_name) ? 0 : passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1404,27 +1253,27 @@ class CoreCryptoContext {
|
|
1404
1253
|
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1405
1254
|
var len2 = WASM_VECTOR_LEN;
|
1406
1255
|
const ret = wasm.corecryptocontext_e2ei_new_rotate_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
1407
|
-
return
|
1256
|
+
return ret;
|
1408
1257
|
}
|
1409
1258
|
e2ei_dump_pki_env() {
|
1410
1259
|
const ret = wasm.corecryptocontext_e2ei_dump_pki_env(this.__wbg_ptr);
|
1411
|
-
return
|
1260
|
+
return ret;
|
1412
1261
|
}
|
1413
1262
|
e2ei_is_pki_env_setup() {
|
1414
1263
|
const ret = wasm.corecryptocontext_e2ei_is_pki_env_setup(this.__wbg_ptr);
|
1415
|
-
return
|
1264
|
+
return ret;
|
1416
1265
|
}
|
1417
1266
|
e2ei_register_acme_ca(trust_anchor_pem) {
|
1418
1267
|
const ptr0 = passStringToWasm0(trust_anchor_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1419
1268
|
const len0 = WASM_VECTOR_LEN;
|
1420
1269
|
const ret = wasm.corecryptocontext_e2ei_register_acme_ca(this.__wbg_ptr, ptr0, len0);
|
1421
|
-
return
|
1270
|
+
return ret;
|
1422
1271
|
}
|
1423
1272
|
e2ei_register_intermediate_ca(cert_pem) {
|
1424
1273
|
const ptr0 = passStringToWasm0(cert_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1425
1274
|
const len0 = WASM_VECTOR_LEN;
|
1426
1275
|
const ret = wasm.corecryptocontext_e2ei_register_intermediate_ca(this.__wbg_ptr, ptr0, len0);
|
1427
|
-
return
|
1276
|
+
return ret;
|
1428
1277
|
}
|
1429
1278
|
e2ei_register_crl(crl_dp, crl_der) {
|
1430
1279
|
const ptr0 = passStringToWasm0(crl_dp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1432,21 +1281,21 @@ class CoreCryptoContext {
|
|
1432
1281
|
const ptr1 = passArray8ToWasm0(crl_der, wasm.__wbindgen_malloc);
|
1433
1282
|
const len1 = WASM_VECTOR_LEN;
|
1434
1283
|
const ret = wasm.corecryptocontext_e2ei_register_crl(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1435
|
-
return
|
1284
|
+
return ret;
|
1436
1285
|
}
|
1437
1286
|
e2ei_mls_init_only(enrollment, certificate_chain, nb_key_package) {
|
1438
1287
|
_assertClass(enrollment, FfiWireE2EIdentity);
|
1439
1288
|
var ptr0 = enrollment.__destroy_into_raw();
|
1440
1289
|
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1441
1290
|
const len1 = WASM_VECTOR_LEN;
|
1442
|
-
const ret = wasm.corecryptocontext_e2ei_mls_init_only(this.__wbg_ptr, ptr0, ptr1, len1,
|
1443
|
-
return
|
1291
|
+
const ret = wasm.corecryptocontext_e2ei_mls_init_only(this.__wbg_ptr, ptr0, ptr1, len1, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
1292
|
+
return ret;
|
1444
1293
|
}
|
1445
1294
|
e2ei_rotate(conversation_id) {
|
1446
1295
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1447
1296
|
const len0 = WASM_VECTOR_LEN;
|
1448
1297
|
const ret = wasm.corecryptocontext_e2ei_rotate(this.__wbg_ptr, ptr0, len0);
|
1449
|
-
return
|
1298
|
+
return ret;
|
1450
1299
|
}
|
1451
1300
|
save_x509_credential(enrollment, certificate_chain) {
|
1452
1301
|
_assertClass(enrollment, FfiWireE2EIdentity);
|
@@ -1454,33 +1303,33 @@ class CoreCryptoContext {
|
|
1454
1303
|
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1455
1304
|
const len1 = WASM_VECTOR_LEN;
|
1456
1305
|
const ret = wasm.corecryptocontext_save_x509_credential(this.__wbg_ptr, ptr0, ptr1, len1);
|
1457
|
-
return
|
1306
|
+
return ret;
|
1458
1307
|
}
|
1459
1308
|
delete_stale_key_packages(cipher_suite) {
|
1460
1309
|
const ret = wasm.corecryptocontext_delete_stale_key_packages(this.__wbg_ptr, cipher_suite);
|
1461
|
-
return
|
1310
|
+
return ret;
|
1462
1311
|
}
|
1463
1312
|
e2ei_enrollment_stash(enrollment) {
|
1464
1313
|
_assertClass(enrollment, FfiWireE2EIdentity);
|
1465
1314
|
var ptr0 = enrollment.__destroy_into_raw();
|
1466
1315
|
const ret = wasm.corecryptocontext_e2ei_enrollment_stash(this.__wbg_ptr, ptr0);
|
1467
|
-
return
|
1316
|
+
return ret;
|
1468
1317
|
}
|
1469
1318
|
e2ei_enrollment_stash_pop(handle) {
|
1470
1319
|
const ptr0 = passArray8ToWasm0(handle, wasm.__wbindgen_malloc);
|
1471
1320
|
const len0 = WASM_VECTOR_LEN;
|
1472
1321
|
const ret = wasm.corecryptocontext_e2ei_enrollment_stash_pop(this.__wbg_ptr, ptr0, len0);
|
1473
|
-
return
|
1322
|
+
return ret;
|
1474
1323
|
}
|
1475
1324
|
e2ei_conversation_state(conversation_id) {
|
1476
1325
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
1477
1326
|
const len0 = WASM_VECTOR_LEN;
|
1478
1327
|
const ret = wasm.corecryptocontext_e2ei_conversation_state(this.__wbg_ptr, ptr0, len0);
|
1479
|
-
return
|
1328
|
+
return ret;
|
1480
1329
|
}
|
1481
1330
|
e2ei_is_enabled(ciphersuite) {
|
1482
1331
|
const ret = wasm.corecryptocontext_e2ei_is_enabled(this.__wbg_ptr, ciphersuite);
|
1483
|
-
return
|
1332
|
+
return ret;
|
1484
1333
|
}
|
1485
1334
|
get_device_identities(conversation_id, device_ids) {
|
1486
1335
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1488,7 +1337,7 @@ class CoreCryptoContext {
|
|
1488
1337
|
const ptr1 = passArrayJsValueToWasm0(device_ids, wasm.__wbindgen_malloc);
|
1489
1338
|
const len1 = WASM_VECTOR_LEN;
|
1490
1339
|
const ret = wasm.corecryptocontext_get_device_identities(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1491
|
-
return
|
1340
|
+
return ret;
|
1492
1341
|
}
|
1493
1342
|
get_user_identities(conversation_id, user_ids) {
|
1494
1343
|
const ptr0 = passArray8ToWasm0(conversation_id, wasm.__wbindgen_malloc);
|
@@ -1496,18 +1345,16 @@ class CoreCryptoContext {
|
|
1496
1345
|
const ptr1 = passArrayJsValueToWasm0(user_ids, wasm.__wbindgen_malloc);
|
1497
1346
|
const len1 = WASM_VECTOR_LEN;
|
1498
1347
|
const ret = wasm.corecryptocontext_get_user_identities(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1499
|
-
return
|
1348
|
+
return ret;
|
1500
1349
|
}
|
1501
1350
|
get_credential_in_use(group_info, credential_type) {
|
1502
1351
|
const ptr0 = passArray8ToWasm0(group_info, wasm.__wbindgen_malloc);
|
1503
1352
|
const len0 = WASM_VECTOR_LEN;
|
1504
1353
|
const ret = wasm.corecryptocontext_get_credential_in_use(this.__wbg_ptr, ptr0, len0, credential_type);
|
1505
|
-
return
|
1354
|
+
return ret;
|
1506
1355
|
}
|
1507
1356
|
}
|
1508
|
-
var CoreCryptoWasmLoggerFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1509
|
-
}, unregister: () => {
|
1510
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmlogger_free(ptr >>> 0, 1));
|
1357
|
+
var CoreCryptoWasmLoggerFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmlogger_free(ptr >>> 0, 1));
|
1511
1358
|
|
1512
1359
|
class CoreCryptoWasmLogger {
|
1513
1360
|
__destroy_into_raw() {
|
@@ -1521,18 +1368,14 @@ class CoreCryptoWasmLogger {
|
|
1521
1368
|
wasm.__wbg_corecryptowasmlogger_free(ptr, 0);
|
1522
1369
|
}
|
1523
1370
|
constructor(logger, ctx) {
|
1524
|
-
const ret = wasm.corecryptowasmlogger_new(
|
1371
|
+
const ret = wasm.corecryptowasmlogger_new(logger, ctx);
|
1525
1372
|
this.__wbg_ptr = ret >>> 0;
|
1526
1373
|
CoreCryptoWasmLoggerFinalization.register(this, this.__wbg_ptr, this);
|
1527
1374
|
return this;
|
1528
1375
|
}
|
1529
1376
|
}
|
1530
|
-
var CrlRegistrationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1531
|
-
}, unregister: () => {
|
1532
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_crlregistration_free(ptr >>> 0, 1));
|
1533
|
-
var CustomConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1534
|
-
}, unregister: () => {
|
1535
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_customconfiguration_free(ptr >>> 0, 1));
|
1377
|
+
var CrlRegistrationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_crlregistration_free(ptr >>> 0, 1));
|
1378
|
+
var CustomConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_customconfiguration_free(ptr >>> 0, 1));
|
1536
1379
|
|
1537
1380
|
class CustomConfiguration {
|
1538
1381
|
static __wrap(ptr) {
|
@@ -1553,42 +1396,29 @@ class CustomConfiguration {
|
|
1553
1396
|
wasm.__wbg_customconfiguration_free(ptr, 0);
|
1554
1397
|
}
|
1555
1398
|
constructor(key_rotation_span, wire_policy) {
|
1556
|
-
const ret = wasm.customconfiguration_new(
|
1399
|
+
const ret = wasm.customconfiguration_new(isLikeNone(key_rotation_span) ? 4294967297 : key_rotation_span >>> 0, isLikeNone(wire_policy) ? 0 : wire_policy);
|
1557
1400
|
this.__wbg_ptr = ret >>> 0;
|
1558
1401
|
CustomConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
1559
1402
|
return this;
|
1560
1403
|
}
|
1561
1404
|
get keyRotationSpan() {
|
1562
|
-
|
1563
|
-
|
1564
|
-
wasm.__wbg_get_customconfiguration_keyRotationSpan(retptr, this.__wbg_ptr);
|
1565
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1566
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1567
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
1568
|
-
} finally {
|
1569
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1570
|
-
}
|
1405
|
+
const ret = wasm.__wbg_get_customconfiguration_keyRotationSpan(this.__wbg_ptr);
|
1406
|
+
return ret === 4294967297 ? undefined : ret;
|
1571
1407
|
}
|
1572
1408
|
set keyRotationSpan(arg0) {
|
1573
|
-
wasm.__wbg_set_customconfiguration_keyRotationSpan(this.__wbg_ptr,
|
1409
|
+
wasm.__wbg_set_customconfiguration_keyRotationSpan(this.__wbg_ptr, isLikeNone(arg0) ? 4294967297 : arg0 >>> 0);
|
1574
1410
|
}
|
1575
1411
|
get wirePolicy() {
|
1576
1412
|
const ret = wasm.__wbg_get_customconfiguration_wirePolicy(this.__wbg_ptr);
|
1577
|
-
return ret ===
|
1413
|
+
return ret === 0 ? undefined : ret;
|
1578
1414
|
}
|
1579
1415
|
set wirePolicy(arg0) {
|
1580
|
-
wasm.__wbg_set_customconfiguration_wirePolicy(this.__wbg_ptr, isLikeNone(arg0) ?
|
1416
|
+
wasm.__wbg_set_customconfiguration_wirePolicy(this.__wbg_ptr, isLikeNone(arg0) ? 0 : arg0);
|
1581
1417
|
}
|
1582
1418
|
}
|
1583
|
-
var DecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1584
|
-
}, unregister: () => {
|
1585
|
-
} } : new FinalizationRegistry((ptr) => wasm.
|
1586
|
-
var E2eiDumpedPkiEnvFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1587
|
-
}, unregister: () => {
|
1588
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_e2eidumpedpkienv_free(ptr >>> 0, 1));
|
1589
|
-
var FfiWireE2EIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1590
|
-
}, unregister: () => {
|
1591
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_ffiwiree2eidentity_free(ptr >>> 0, 1));
|
1419
|
+
var DecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_decryptedmessage_free(ptr >>> 0, 1));
|
1420
|
+
var E2eiDumpedPkiEnvFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_e2eidumpedpkienv_free(ptr >>> 0, 1));
|
1421
|
+
var FfiWireE2EIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_ffiwiree2eidentity_free(ptr >>> 0, 1));
|
1592
1422
|
|
1593
1423
|
class FfiWireE2EIdentity {
|
1594
1424
|
static __wrap(ptr) {
|
@@ -1612,27 +1442,27 @@ class FfiWireE2EIdentity {
|
|
1612
1442
|
const ptr0 = passArray8ToWasm0(directory, wasm.__wbindgen_malloc);
|
1613
1443
|
const len0 = WASM_VECTOR_LEN;
|
1614
1444
|
const ret = wasm.ffiwiree2eidentity_directory_response(this.__wbg_ptr, ptr0, len0);
|
1615
|
-
return
|
1445
|
+
return ret;
|
1616
1446
|
}
|
1617
1447
|
new_account_request(previous_nonce) {
|
1618
1448
|
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1619
1449
|
const len0 = WASM_VECTOR_LEN;
|
1620
1450
|
const ret = wasm.ffiwiree2eidentity_new_account_request(this.__wbg_ptr, ptr0, len0);
|
1621
|
-
return
|
1451
|
+
return ret;
|
1622
1452
|
}
|
1623
1453
|
new_account_response(account) {
|
1624
|
-
const ret = wasm.ffiwiree2eidentity_new_account_response(this.__wbg_ptr,
|
1625
|
-
return
|
1454
|
+
const ret = wasm.ffiwiree2eidentity_new_account_response(this.__wbg_ptr, account);
|
1455
|
+
return ret;
|
1626
1456
|
}
|
1627
1457
|
new_order_request(previous_nonce) {
|
1628
1458
|
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1629
1459
|
const len0 = WASM_VECTOR_LEN;
|
1630
1460
|
const ret = wasm.ffiwiree2eidentity_new_order_request(this.__wbg_ptr, ptr0, len0);
|
1631
|
-
return
|
1461
|
+
return ret;
|
1632
1462
|
}
|
1633
1463
|
new_order_response(order) {
|
1634
|
-
const ret = wasm.ffiwiree2eidentity_new_order_response(this.__wbg_ptr,
|
1635
|
-
return
|
1464
|
+
const ret = wasm.ffiwiree2eidentity_new_order_response(this.__wbg_ptr, order);
|
1465
|
+
return ret;
|
1636
1466
|
}
|
1637
1467
|
new_authz_request(url, previous_nonce) {
|
1638
1468
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1640,17 +1470,17 @@ class FfiWireE2EIdentity {
|
|
1640
1470
|
const ptr1 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1641
1471
|
const len1 = WASM_VECTOR_LEN;
|
1642
1472
|
const ret = wasm.ffiwiree2eidentity_new_authz_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1643
|
-
return
|
1473
|
+
return ret;
|
1644
1474
|
}
|
1645
1475
|
new_authz_response(authz) {
|
1646
|
-
const ret = wasm.ffiwiree2eidentity_new_authz_response(this.__wbg_ptr,
|
1647
|
-
return
|
1476
|
+
const ret = wasm.ffiwiree2eidentity_new_authz_response(this.__wbg_ptr, authz);
|
1477
|
+
return ret;
|
1648
1478
|
}
|
1649
1479
|
create_dpop_token(expiry_secs, backend_nonce) {
|
1650
1480
|
const ptr0 = passStringToWasm0(backend_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1651
1481
|
const len0 = WASM_VECTOR_LEN;
|
1652
1482
|
const ret = wasm.ffiwiree2eidentity_create_dpop_token(this.__wbg_ptr, expiry_secs, ptr0, len0);
|
1653
|
-
return
|
1483
|
+
return ret;
|
1654
1484
|
}
|
1655
1485
|
new_dpop_challenge_request(access_token, previous_nonce) {
|
1656
1486
|
const ptr0 = passStringToWasm0(access_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1658,11 +1488,11 @@ class FfiWireE2EIdentity {
|
|
1658
1488
|
const ptr1 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1659
1489
|
const len1 = WASM_VECTOR_LEN;
|
1660
1490
|
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1661
|
-
return
|
1491
|
+
return ret;
|
1662
1492
|
}
|
1663
1493
|
new_dpop_challenge_response(challenge) {
|
1664
|
-
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_response(this.__wbg_ptr,
|
1665
|
-
return
|
1494
|
+
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_response(this.__wbg_ptr, challenge);
|
1495
|
+
return ret;
|
1666
1496
|
}
|
1667
1497
|
new_oidc_challenge_request(id_token, previous_nonce) {
|
1668
1498
|
const ptr0 = passStringToWasm0(id_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1670,11 +1500,11 @@ class FfiWireE2EIdentity {
|
|
1670
1500
|
const ptr1 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1671
1501
|
const len1 = WASM_VECTOR_LEN;
|
1672
1502
|
const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1673
|
-
return
|
1503
|
+
return ret;
|
1674
1504
|
}
|
1675
1505
|
new_oidc_challenge_response(challenge) {
|
1676
|
-
const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_response(this.__wbg_ptr,
|
1677
|
-
return
|
1506
|
+
const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_response(this.__wbg_ptr, challenge);
|
1507
|
+
return ret;
|
1678
1508
|
}
|
1679
1509
|
check_order_request(order_url, previous_nonce) {
|
1680
1510
|
const ptr0 = passStringToWasm0(order_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1682,32 +1512,30 @@ class FfiWireE2EIdentity {
|
|
1682
1512
|
const ptr1 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1683
1513
|
const len1 = WASM_VECTOR_LEN;
|
1684
1514
|
const ret = wasm.ffiwiree2eidentity_check_order_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1685
|
-
return
|
1515
|
+
return ret;
|
1686
1516
|
}
|
1687
1517
|
check_order_response(order) {
|
1688
|
-
const ret = wasm.ffiwiree2eidentity_check_order_response(this.__wbg_ptr,
|
1689
|
-
return
|
1518
|
+
const ret = wasm.ffiwiree2eidentity_check_order_response(this.__wbg_ptr, order);
|
1519
|
+
return ret;
|
1690
1520
|
}
|
1691
1521
|
finalize_request(previous_nonce) {
|
1692
1522
|
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1693
1523
|
const len0 = WASM_VECTOR_LEN;
|
1694
1524
|
const ret = wasm.ffiwiree2eidentity_finalize_request(this.__wbg_ptr, ptr0, len0);
|
1695
|
-
return
|
1525
|
+
return ret;
|
1696
1526
|
}
|
1697
1527
|
finalize_response(finalize) {
|
1698
|
-
const ret = wasm.ffiwiree2eidentity_finalize_response(this.__wbg_ptr,
|
1699
|
-
return
|
1528
|
+
const ret = wasm.ffiwiree2eidentity_finalize_response(this.__wbg_ptr, finalize);
|
1529
|
+
return ret;
|
1700
1530
|
}
|
1701
1531
|
certificate_request(previous_nonce) {
|
1702
1532
|
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1703
1533
|
const len0 = WASM_VECTOR_LEN;
|
1704
1534
|
const ret = wasm.ffiwiree2eidentity_certificate_request(this.__wbg_ptr, ptr0, len0);
|
1705
|
-
return
|
1535
|
+
return ret;
|
1706
1536
|
}
|
1707
1537
|
}
|
1708
|
-
var GroupInfoBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1709
|
-
}, unregister: () => {
|
1710
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_groupinfobundle_free(ptr >>> 0, 1));
|
1538
|
+
var GroupInfoBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_groupinfobundle_free(ptr >>> 0, 1));
|
1711
1539
|
|
1712
1540
|
class GroupInfoBundle {
|
1713
1541
|
static __wrap(ptr) {
|
@@ -1737,12 +1565,10 @@ class GroupInfoBundle {
|
|
1737
1565
|
}
|
1738
1566
|
get payload() {
|
1739
1567
|
const ret = wasm.groupinfobundle_payload(this.__wbg_ptr);
|
1740
|
-
return
|
1568
|
+
return ret;
|
1741
1569
|
}
|
1742
1570
|
}
|
1743
|
-
var MlsTransportProviderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1744
|
-
}, unregister: () => {
|
1745
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_mlstransportprovider_free(ptr >>> 0, 1));
|
1571
|
+
var MlsTransportProviderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_mlstransportprovider_free(ptr >>> 0, 1));
|
1746
1572
|
|
1747
1573
|
class MlsTransportProvider {
|
1748
1574
|
__destroy_into_raw() {
|
@@ -1756,15 +1582,13 @@ class MlsTransportProvider {
|
|
1756
1582
|
wasm.__wbg_mlstransportprovider_free(ptr, 0);
|
1757
1583
|
}
|
1758
1584
|
constructor(send_commit_bundle, send_message, ctx) {
|
1759
|
-
const ret = wasm.mlstransportprovider_new(
|
1585
|
+
const ret = wasm.mlstransportprovider_new(send_commit_bundle, send_message, ctx);
|
1760
1586
|
this.__wbg_ptr = ret >>> 0;
|
1761
1587
|
MlsTransportProviderFinalization.register(this, this.__wbg_ptr, this);
|
1762
1588
|
return this;
|
1763
1589
|
}
|
1764
1590
|
}
|
1765
|
-
var NewAcmeAuthzFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1766
|
-
}, unregister: () => {
|
1767
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeauthz_free(ptr >>> 0, 1));
|
1591
|
+
var NewAcmeAuthzFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeauthz_free(ptr >>> 0, 1));
|
1768
1592
|
|
1769
1593
|
class NewAcmeAuthz {
|
1770
1594
|
static __wrap(ptr) {
|
@@ -1788,42 +1612,29 @@ class NewAcmeAuthz {
|
|
1788
1612
|
let deferred1_0;
|
1789
1613
|
let deferred1_1;
|
1790
1614
|
try {
|
1791
|
-
const
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
deferred1_0 = r0;
|
1796
|
-
deferred1_1 = r1;
|
1797
|
-
return getStringFromWasm0(r0, r1);
|
1615
|
+
const ret = wasm.__wbg_get_newacmeauthz_identifier(this.__wbg_ptr);
|
1616
|
+
deferred1_0 = ret[0];
|
1617
|
+
deferred1_1 = ret[1];
|
1618
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
1798
1619
|
} finally {
|
1799
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1800
1620
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
1801
1621
|
}
|
1802
1622
|
}
|
1803
1623
|
get keyauth() {
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
let v1;
|
1810
|
-
if (r0 !== 0) {
|
1811
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
1812
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
1813
|
-
}
|
1814
|
-
return v1;
|
1815
|
-
} finally {
|
1816
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1624
|
+
const ret = wasm.__wbg_get_newacmeauthz_keyauth(this.__wbg_ptr);
|
1625
|
+
let v1;
|
1626
|
+
if (ret[0] !== 0) {
|
1627
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
1628
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
1817
1629
|
}
|
1630
|
+
return v1;
|
1818
1631
|
}
|
1819
1632
|
get challenge() {
|
1820
1633
|
const ret = wasm.__wbg_get_newacmeauthz_challenge(this.__wbg_ptr);
|
1821
1634
|
return AcmeChallenge.__wrap(ret);
|
1822
1635
|
}
|
1823
1636
|
}
|
1824
|
-
var NewAcmeOrderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1825
|
-
}, unregister: () => {
|
1826
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeorder_free(ptr >>> 0, 1));
|
1637
|
+
var NewAcmeOrderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeorder_free(ptr >>> 0, 1));
|
1827
1638
|
|
1828
1639
|
class NewAcmeOrder {
|
1829
1640
|
static __wrap(ptr) {
|
@@ -1844,35 +1655,19 @@ class NewAcmeOrder {
|
|
1844
1655
|
wasm.__wbg_newacmeorder_free(ptr, 0);
|
1845
1656
|
}
|
1846
1657
|
get authorizations() {
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1852
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
1853
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
1854
|
-
return v1;
|
1855
|
-
} finally {
|
1856
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1857
|
-
}
|
1658
|
+
const ret = wasm.newacmeorder_authorizations(this.__wbg_ptr);
|
1659
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
1660
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
1661
|
+
return v1;
|
1858
1662
|
}
|
1859
1663
|
get delegate() {
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1865
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
1866
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
1867
|
-
return v1;
|
1868
|
-
} finally {
|
1869
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1870
|
-
}
|
1664
|
+
const ret = wasm.__wbg_get_newacmeorder_delegate(this.__wbg_ptr);
|
1665
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
1666
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
1667
|
+
return v1;
|
1871
1668
|
}
|
1872
1669
|
}
|
1873
|
-
var ProposalBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1874
|
-
}, unregister: () => {
|
1875
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proposalbundle_free(ptr >>> 0, 1));
|
1670
|
+
var ProposalBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_proposalbundle_free(ptr >>> 0, 1));
|
1876
1671
|
|
1877
1672
|
class ProposalBundle {
|
1878
1673
|
static __wrap(ptr) {
|
@@ -1894,20 +1689,18 @@ class ProposalBundle {
|
|
1894
1689
|
}
|
1895
1690
|
get proposal() {
|
1896
1691
|
const ret = wasm.proposalbundle_proposal(this.__wbg_ptr);
|
1897
|
-
return
|
1692
|
+
return ret;
|
1898
1693
|
}
|
1899
1694
|
get proposal_ref() {
|
1900
1695
|
const ret = wasm.proposalbundle_proposal_ref(this.__wbg_ptr);
|
1901
|
-
return
|
1696
|
+
return ret;
|
1902
1697
|
}
|
1903
1698
|
get crl_new_distribution_points() {
|
1904
1699
|
const ret = wasm.proposalbundle_crl_new_distribution_points(this.__wbg_ptr);
|
1905
|
-
return
|
1700
|
+
return ret;
|
1906
1701
|
}
|
1907
1702
|
}
|
1908
|
-
var ProteusAutoPrekeyBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1909
|
-
}, unregister: () => {
|
1910
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proteusautoprekeybundle_free(ptr >>> 0, 1));
|
1703
|
+
var ProteusAutoPrekeyBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_proteusautoprekeybundle_free(ptr >>> 0, 1));
|
1911
1704
|
|
1912
1705
|
class ProteusAutoPrekeyBundle {
|
1913
1706
|
static __wrap(ptr) {
|
@@ -1935,17 +1728,10 @@ class ProteusAutoPrekeyBundle {
|
|
1935
1728
|
wasm.__wbg_set_proteusautoprekeybundle_id(this.__wbg_ptr, arg0);
|
1936
1729
|
}
|
1937
1730
|
get pkb() {
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1943
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
1944
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
1945
|
-
return v1;
|
1946
|
-
} finally {
|
1947
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1948
|
-
}
|
1731
|
+
const ret = wasm.__wbg_get_proteusautoprekeybundle_pkb(this.__wbg_ptr);
|
1732
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
1733
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
1734
|
+
return v1;
|
1949
1735
|
}
|
1950
1736
|
set pkb(arg0) {
|
1951
1737
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
@@ -1953,9 +1739,7 @@ class ProteusAutoPrekeyBundle {
|
|
1953
1739
|
wasm.__wbg_set_proteusautoprekeybundle_pkb(this.__wbg_ptr, ptr0, len0);
|
1954
1740
|
}
|
1955
1741
|
}
|
1956
|
-
var WasmMlsTransportResponseFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1957
|
-
}, unregister: () => {
|
1958
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmmlstransportresponse_free(ptr >>> 0, 1));
|
1742
|
+
var WasmMlsTransportResponseFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmmlstransportresponse_free(ptr >>> 0, 1));
|
1959
1743
|
|
1960
1744
|
class WasmMlsTransportResponse {
|
1961
1745
|
__destroy_into_raw() {
|
@@ -1981,25 +1765,16 @@ class WasmMlsTransportResponse {
|
|
1981
1765
|
return ret;
|
1982
1766
|
}
|
1983
1767
|
get abort_reason() {
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
let v1;
|
1990
|
-
if (r0 !== 0) {
|
1991
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
1992
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
1993
|
-
}
|
1994
|
-
return v1;
|
1995
|
-
} finally {
|
1996
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
1768
|
+
const ret = wasm.__wbg_get_wasmmlstransportresponse_abort_reason(this.__wbg_ptr);
|
1769
|
+
let v1;
|
1770
|
+
if (ret[0] !== 0) {
|
1771
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
1772
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
1997
1773
|
}
|
1774
|
+
return v1;
|
1998
1775
|
}
|
1999
1776
|
}
|
2000
|
-
var WelcomeBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2001
|
-
}, unregister: () => {
|
2002
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_welcomebundle_free(ptr >>> 0, 1));
|
1777
|
+
var WelcomeBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_welcomebundle_free(ptr >>> 0, 1));
|
2003
1778
|
|
2004
1779
|
class WelcomeBundle {
|
2005
1780
|
__destroy_into_raw() {
|
@@ -2014,16 +1789,14 @@ class WelcomeBundle {
|
|
2014
1789
|
}
|
2015
1790
|
get id() {
|
2016
1791
|
const ret = wasm.welcomebundle_id(this.__wbg_ptr);
|
2017
|
-
return
|
1792
|
+
return ret;
|
2018
1793
|
}
|
2019
1794
|
get crlNewDistributionPoints() {
|
2020
1795
|
const ret = wasm.welcomebundle_crlNewDistributionPoints(this.__wbg_ptr);
|
2021
|
-
return
|
1796
|
+
return ret;
|
2022
1797
|
}
|
2023
1798
|
}
|
2024
|
-
var WireIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2025
|
-
}, unregister: () => {
|
2026
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wireidentity_free(ptr >>> 0, 1));
|
1799
|
+
var WireIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wireidentity_free(ptr >>> 0, 1));
|
2027
1800
|
|
2028
1801
|
class WireIdentity {
|
2029
1802
|
static __wrap(ptr) {
|
@@ -2047,15 +1820,11 @@ class WireIdentity {
|
|
2047
1820
|
let deferred1_0;
|
2048
1821
|
let deferred1_1;
|
2049
1822
|
try {
|
2050
|
-
const
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
deferred1_0 = r0;
|
2055
|
-
deferred1_1 = r1;
|
2056
|
-
return getStringFromWasm0(r0, r1);
|
1823
|
+
const ret = wasm.__wbg_get_wireidentity_clientId(this.__wbg_ptr);
|
1824
|
+
deferred1_0 = ret[0];
|
1825
|
+
deferred1_1 = ret[1];
|
1826
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2057
1827
|
} finally {
|
2058
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2059
1828
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2060
1829
|
}
|
2061
1830
|
}
|
@@ -2067,15 +1836,11 @@ class WireIdentity {
|
|
2067
1836
|
let deferred1_0;
|
2068
1837
|
let deferred1_1;
|
2069
1838
|
try {
|
2070
|
-
const
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
deferred1_0 = r0;
|
2075
|
-
deferred1_1 = r1;
|
2076
|
-
return getStringFromWasm0(r0, r1);
|
1839
|
+
const ret = wasm.__wbg_get_wireidentity_thumbprint(this.__wbg_ptr);
|
1840
|
+
deferred1_0 = ret[0];
|
1841
|
+
deferred1_1 = ret[1];
|
1842
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2077
1843
|
} finally {
|
2078
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2079
1844
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2080
1845
|
}
|
2081
1846
|
}
|
@@ -2088,9 +1853,7 @@ class WireIdentity {
|
|
2088
1853
|
return ret === 0 ? undefined : X509Identity.__wrap(ret);
|
2089
1854
|
}
|
2090
1855
|
}
|
2091
|
-
var X509IdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2092
|
-
}, unregister: () => {
|
2093
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_x509identity_free(ptr >>> 0, 1));
|
1856
|
+
var X509IdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_x509identity_free(ptr >>> 0, 1));
|
2094
1857
|
|
2095
1858
|
class X509Identity {
|
2096
1859
|
static __wrap(ptr) {
|
@@ -2114,15 +1877,11 @@ class X509Identity {
|
|
2114
1877
|
let deferred1_0;
|
2115
1878
|
let deferred1_1;
|
2116
1879
|
try {
|
2117
|
-
const
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
deferred1_0 = r0;
|
2122
|
-
deferred1_1 = r1;
|
2123
|
-
return getStringFromWasm0(r0, r1);
|
1880
|
+
const ret = wasm.__wbg_get_x509identity_handle(this.__wbg_ptr);
|
1881
|
+
deferred1_0 = ret[0];
|
1882
|
+
deferred1_1 = ret[1];
|
1883
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2124
1884
|
} finally {
|
2125
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2126
1885
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2127
1886
|
}
|
2128
1887
|
}
|
@@ -2130,15 +1889,11 @@ class X509Identity {
|
|
2130
1889
|
let deferred1_0;
|
2131
1890
|
let deferred1_1;
|
2132
1891
|
try {
|
2133
|
-
const
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
deferred1_0 = r0;
|
2138
|
-
deferred1_1 = r1;
|
2139
|
-
return getStringFromWasm0(r0, r1);
|
1892
|
+
const ret = wasm.__wbg_get_x509identity_displayName(this.__wbg_ptr);
|
1893
|
+
deferred1_0 = ret[0];
|
1894
|
+
deferred1_1 = ret[1];
|
1895
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2140
1896
|
} finally {
|
2141
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2142
1897
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2143
1898
|
}
|
2144
1899
|
}
|
@@ -2146,15 +1901,11 @@ class X509Identity {
|
|
2146
1901
|
let deferred1_0;
|
2147
1902
|
let deferred1_1;
|
2148
1903
|
try {
|
2149
|
-
const
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
deferred1_0 = r0;
|
2154
|
-
deferred1_1 = r1;
|
2155
|
-
return getStringFromWasm0(r0, r1);
|
1904
|
+
const ret = wasm.__wbg_get_x509identity_domain(this.__wbg_ptr);
|
1905
|
+
deferred1_0 = ret[0];
|
1906
|
+
deferred1_1 = ret[1];
|
1907
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2156
1908
|
} finally {
|
2157
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2158
1909
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2159
1910
|
}
|
2160
1911
|
}
|
@@ -2162,15 +1913,11 @@ class X509Identity {
|
|
2162
1913
|
let deferred1_0;
|
2163
1914
|
let deferred1_1;
|
2164
1915
|
try {
|
2165
|
-
const
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
deferred1_0 = r0;
|
2170
|
-
deferred1_1 = r1;
|
2171
|
-
return getStringFromWasm0(r0, r1);
|
1916
|
+
const ret = wasm.__wbg_get_x509identity_certificate(this.__wbg_ptr);
|
1917
|
+
deferred1_0 = ret[0];
|
1918
|
+
deferred1_1 = ret[1];
|
1919
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2172
1920
|
} finally {
|
2173
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2174
1921
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2175
1922
|
}
|
2176
1923
|
}
|
@@ -2178,15 +1925,11 @@ class X509Identity {
|
|
2178
1925
|
let deferred1_0;
|
2179
1926
|
let deferred1_1;
|
2180
1927
|
try {
|
2181
|
-
const
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
deferred1_0 = r0;
|
2186
|
-
deferred1_1 = r1;
|
2187
|
-
return getStringFromWasm0(r0, r1);
|
1928
|
+
const ret = wasm.__wbg_get_x509identity_serialNumber(this.__wbg_ptr);
|
1929
|
+
deferred1_0 = ret[0];
|
1930
|
+
deferred1_1 = ret[1];
|
1931
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
2188
1932
|
} finally {
|
2189
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
2190
1933
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
2191
1934
|
}
|
2192
1935
|
}
|
@@ -2206,7 +1949,7 @@ async function __wbg_load(module, imports) {
|
|
2206
1949
|
return await WebAssembly.instantiateStreaming(module, imports);
|
2207
1950
|
} catch (e) {
|
2208
1951
|
if (module.headers.get("Content-Type") != "application/wasm") {
|
2209
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve
|
1952
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
2210
1953
|
} else {
|
2211
1954
|
throw e;
|
2212
1955
|
}
|
@@ -2226,822 +1969,838 @@ async function __wbg_load(module, imports) {
|
|
2226
1969
|
function __wbg_get_imports() {
|
2227
1970
|
const imports = {};
|
2228
1971
|
imports.wbg = {};
|
2229
|
-
imports.wbg.
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
2235
|
-
return addHeapObject(ret);
|
2236
|
-
}, arguments);
|
2237
|
-
};
|
2238
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
2239
|
-
const ret = BigInt.asUintN(64, arg0);
|
2240
|
-
return addHeapObject(ret);
|
2241
|
-
};
|
2242
|
-
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
2243
|
-
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
2244
|
-
return addHeapObject(ret);
|
2245
|
-
};
|
2246
|
-
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
2247
|
-
const ret = NewAcmeOrder.__wrap(arg0);
|
2248
|
-
return addHeapObject(ret);
|
2249
|
-
};
|
2250
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
2251
|
-
const ret = arg0;
|
2252
|
-
return addHeapObject(ret);
|
2253
|
-
};
|
2254
|
-
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
2255
|
-
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
2256
|
-
return addHeapObject(ret);
|
2257
|
-
};
|
2258
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
2259
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
2260
|
-
return addHeapObject(ret);
|
1972
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
1973
|
+
const ret = String(arg1);
|
1974
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1975
|
+
const len1 = WASM_VECTOR_LEN;
|
1976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1977
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2261
1978
|
};
|
2262
1979
|
imports.wbg.__wbg_acmedirectory_new = function(arg0) {
|
2263
1980
|
const ret = AcmeDirectory.__wrap(arg0);
|
2264
|
-
return
|
1981
|
+
return ret;
|
2265
1982
|
};
|
2266
|
-
imports.wbg.
|
2267
|
-
|
2268
|
-
|
1983
|
+
imports.wbg.__wbg_advance_02cd1208ee1ce80b = function() {
|
1984
|
+
return handleError(function(arg0, arg1) {
|
1985
|
+
arg0.advance(arg1 >>> 0);
|
1986
|
+
}, arguments);
|
1987
|
+
};
|
1988
|
+
imports.wbg.__wbg_buffer_aa30bbb65cb44323 = function(arg0) {
|
1989
|
+
const ret = arg0.buffer;
|
1990
|
+
return ret;
|
2269
1991
|
};
|
2270
1992
|
imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
|
2271
1993
|
const ret = BufferedDecryptedMessage.__wrap(arg0);
|
2272
|
-
return
|
2273
|
-
};
|
2274
|
-
imports.wbg.__wbg_proposalbundle_new = function(arg0) {
|
2275
|
-
const ret = ProposalBundle.__wrap(arg0);
|
2276
|
-
return addHeapObject(ret);
|
1994
|
+
return ret;
|
2277
1995
|
};
|
2278
|
-
imports.wbg.
|
2279
|
-
|
2280
|
-
|
1996
|
+
imports.wbg.__wbg_call_41c7efaf6b1182f8 = function() {
|
1997
|
+
return handleError(function(arg0, arg1, arg2) {
|
1998
|
+
const ret = arg0.call(arg1, arg2);
|
1999
|
+
return ret;
|
2000
|
+
}, arguments);
|
2281
2001
|
};
|
2282
|
-
imports.wbg.
|
2283
|
-
|
2284
|
-
|
2002
|
+
imports.wbg.__wbg_call_aff990758d3576e4 = function() {
|
2003
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2004
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
2005
|
+
return ret;
|
2006
|
+
}, arguments);
|
2285
2007
|
};
|
2286
|
-
imports.wbg.
|
2287
|
-
|
2288
|
-
|
2008
|
+
imports.wbg.__wbg_call_c45d13337ffb12ac = function() {
|
2009
|
+
return handleError(function(arg0, arg1) {
|
2010
|
+
const ret = arg0.call(arg1);
|
2011
|
+
return ret;
|
2012
|
+
}, arguments);
|
2289
2013
|
};
|
2290
|
-
imports.wbg.
|
2291
|
-
|
2292
|
-
const ret = typeof obj === "string" ? obj : undefined;
|
2293
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2294
|
-
var len1 = WASM_VECTOR_LEN;
|
2295
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2296
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2014
|
+
imports.wbg.__wbg_close_deae63e256596c88 = function(arg0) {
|
2015
|
+
arg0.close();
|
2297
2016
|
};
|
2298
|
-
imports.wbg.
|
2299
|
-
const ret =
|
2017
|
+
imports.wbg.__wbg_commitbundle_new = function(arg0) {
|
2018
|
+
const ret = CommitBundle.__wrap(arg0);
|
2300
2019
|
return ret;
|
2301
2020
|
};
|
2302
|
-
imports.wbg.
|
2303
|
-
|
2304
|
-
|
2021
|
+
imports.wbg.__wbg_continue_4b73313d79d23cae = function() {
|
2022
|
+
return handleError(function(arg0) {
|
2023
|
+
arg0.continue();
|
2024
|
+
}, arguments);
|
2305
2025
|
};
|
2306
|
-
imports.wbg.
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2026
|
+
imports.wbg.__wbg_continue_7bfcac3cd5016c6b = function() {
|
2027
|
+
return handleError(function(arg0, arg1) {
|
2028
|
+
arg0.continue(arg1);
|
2029
|
+
}, arguments);
|
2310
2030
|
};
|
2311
|
-
imports.wbg.
|
2312
|
-
const ret =
|
2031
|
+
imports.wbg.__wbg_corecrypto_new = function(arg0) {
|
2032
|
+
const ret = CoreCrypto.__wrap(arg0);
|
2313
2033
|
return ret;
|
2314
2034
|
};
|
2315
|
-
imports.wbg.
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
};
|
2321
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
2322
|
-
const ret = arg0;
|
2323
|
-
return addHeapObject(ret);
|
2035
|
+
imports.wbg.__wbg_count_56e88f67a38402d7 = function() {
|
2036
|
+
return handleError(function(arg0, arg1) {
|
2037
|
+
const ret = arg0.count(arg1);
|
2038
|
+
return ret;
|
2039
|
+
}, arguments);
|
2324
2040
|
};
|
2325
|
-
imports.wbg.
|
2326
|
-
|
2327
|
-
|
2041
|
+
imports.wbg.__wbg_count_fd5593020c918ab2 = function() {
|
2042
|
+
return handleError(function(arg0) {
|
2043
|
+
const ret = arg0.count();
|
2044
|
+
return ret;
|
2045
|
+
}, arguments);
|
2328
2046
|
};
|
2329
|
-
imports.wbg.
|
2330
|
-
|
2331
|
-
|
2332
|
-
|
2047
|
+
imports.wbg.__wbg_createIndex_1212b4ed7a5f4a20 = function() {
|
2048
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2049
|
+
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
2050
|
+
return ret;
|
2051
|
+
}, arguments);
|
2333
2052
|
};
|
2334
|
-
imports.wbg.
|
2335
|
-
|
2336
|
-
|
2053
|
+
imports.wbg.__wbg_createIndex_b64fc04e1d772350 = function() {
|
2054
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
2055
|
+
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3);
|
2056
|
+
return ret;
|
2057
|
+
}, arguments);
|
2337
2058
|
};
|
2338
|
-
imports.wbg.
|
2339
|
-
|
2340
|
-
|
2059
|
+
imports.wbg.__wbg_createObjectStore_8ab480f12d1653d5 = function() {
|
2060
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
2061
|
+
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
2062
|
+
return ret;
|
2063
|
+
}, arguments);
|
2341
2064
|
};
|
2342
|
-
imports.wbg.
|
2343
|
-
const
|
2344
|
-
if (obj.cnt-- == 1) {
|
2345
|
-
obj.a = 0;
|
2346
|
-
return true;
|
2347
|
-
}
|
2348
|
-
const ret = false;
|
2065
|
+
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
2066
|
+
const ret = arg0.crypto;
|
2349
2067
|
return ret;
|
2350
2068
|
};
|
2351
|
-
imports.wbg.
|
2352
|
-
|
2069
|
+
imports.wbg.__wbg_deleteIndex_d6d11da15af6e404 = function() {
|
2070
|
+
return handleError(function(arg0, arg1, arg2) {
|
2071
|
+
arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
|
2072
|
+
}, arguments);
|
2353
2073
|
};
|
2354
|
-
imports.wbg.
|
2355
|
-
|
2356
|
-
|
2074
|
+
imports.wbg.__wbg_deleteObjectStore_04a1ba3ae41e1f4e = function() {
|
2075
|
+
return handleError(function(arg0, arg1, arg2) {
|
2076
|
+
arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
2077
|
+
}, arguments);
|
2357
2078
|
};
|
2358
|
-
imports.wbg.
|
2359
|
-
|
2360
|
-
|
2079
|
+
imports.wbg.__wbg_delete_a31f7e66548c4ad9 = function() {
|
2080
|
+
return handleError(function(arg0, arg1) {
|
2081
|
+
const ret = arg0.delete(arg1);
|
2082
|
+
return ret;
|
2083
|
+
}, arguments);
|
2361
2084
|
};
|
2362
|
-
imports.wbg.
|
2363
|
-
const ret =
|
2085
|
+
imports.wbg.__wbg_done_362f78ab584a24b5 = function(arg0) {
|
2086
|
+
const ret = arg0.done;
|
2364
2087
|
return ret;
|
2365
2088
|
};
|
2366
|
-
imports.wbg.
|
2367
|
-
const ret =
|
2089
|
+
imports.wbg.__wbg_entries_27a445ca6b702f8d = function(arg0) {
|
2090
|
+
const ret = Object.entries(arg0);
|
2368
2091
|
return ret;
|
2369
2092
|
};
|
2370
|
-
imports.wbg.
|
2371
|
-
|
2372
|
-
return ret;
|
2093
|
+
imports.wbg.__wbg_error_4e9ba4ac0ad780bd = function(arg0) {
|
2094
|
+
console.error(arg0);
|
2373
2095
|
};
|
2374
|
-
imports.wbg.
|
2375
|
-
const ret =
|
2376
|
-
|
2377
|
-
const len1 = WASM_VECTOR_LEN;
|
2378
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2379
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2096
|
+
imports.wbg.__wbg_error_59bfa674368c61f1 = function(arg0) {
|
2097
|
+
const ret = arg0.error;
|
2098
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2380
2099
|
};
|
2381
|
-
imports.wbg.
|
2382
|
-
|
2383
|
-
|
2100
|
+
imports.wbg.__wbg_error_dae0861a350d0654 = function() {
|
2101
|
+
return handleError(function(arg0) {
|
2102
|
+
const ret = arg0.error;
|
2103
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2104
|
+
}, arguments);
|
2384
2105
|
};
|
2385
|
-
imports.wbg.
|
2386
|
-
|
2106
|
+
imports.wbg.__wbg_execute_c66b0e27fd9330b7 = function() {
|
2107
|
+
return handleError(function(arg0, arg1) {
|
2108
|
+
const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
|
2109
|
+
return ret;
|
2110
|
+
}, arguments);
|
2387
2111
|
};
|
2388
|
-
imports.wbg.
|
2389
|
-
const ret =
|
2112
|
+
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
2113
|
+
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
2390
2114
|
return ret;
|
2391
2115
|
};
|
2392
|
-
imports.wbg.
|
2393
|
-
|
2394
|
-
|
2395
|
-
|
2396
|
-
getObject(arg0).unique = arg1 !== 0;
|
2397
|
-
};
|
2398
|
-
imports.wbg.__wbg_setautoincrement_56aa89e6d3e15210 = function(arg0, arg1) {
|
2399
|
-
getObject(arg0).autoIncrement = arg1 !== 0;
|
2116
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
|
2117
|
+
return handleError(function(arg0, arg1) {
|
2118
|
+
arg0.getRandomValues(arg1);
|
2119
|
+
}, arguments);
|
2400
2120
|
};
|
2401
|
-
imports.wbg.
|
2402
|
-
|
2121
|
+
imports.wbg.__wbg_getTime_345d4ba5f51e18ea = function(arg0) {
|
2122
|
+
const ret = arg0.getTime();
|
2123
|
+
return ret;
|
2403
2124
|
};
|
2404
|
-
imports.wbg.
|
2405
|
-
const ret =
|
2125
|
+
imports.wbg.__wbg_get_01203e6a4116a116 = function(arg0, arg1) {
|
2126
|
+
const ret = arg0[arg1 >>> 0];
|
2406
2127
|
return ret;
|
2407
2128
|
};
|
2408
|
-
imports.wbg.
|
2409
|
-
|
2129
|
+
imports.wbg.__wbg_get_329df8534b48cf11 = function() {
|
2130
|
+
return handleError(function(arg0, arg1) {
|
2131
|
+
const ret = arg0.get(arg1);
|
2132
|
+
return ret;
|
2133
|
+
}, arguments);
|
2134
|
+
};
|
2135
|
+
imports.wbg.__wbg_get_47cc7c79c861e271 = function(arg0, arg1, arg2) {
|
2136
|
+
const ret = arg1[arg2 >>> 0];
|
2410
2137
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2411
2138
|
var len1 = WASM_VECTOR_LEN;
|
2412
2139
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2413
2140
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2414
2141
|
};
|
2415
|
-
imports.wbg.
|
2416
|
-
|
2417
|
-
|
2142
|
+
imports.wbg.__wbg_get_91d64a05814bf7f0 = function() {
|
2143
|
+
return handleError(function(arg0, arg1) {
|
2144
|
+
const ret = arg0.get(arg1);
|
2145
|
+
return ret;
|
2146
|
+
}, arguments);
|
2418
2147
|
};
|
2419
|
-
imports.wbg.
|
2420
|
-
return handleError(function(arg0) {
|
2421
|
-
const ret =
|
2422
|
-
return
|
2148
|
+
imports.wbg.__wbg_get_e7114b7bf3d9d5f5 = function() {
|
2149
|
+
return handleError(function(arg0, arg1) {
|
2150
|
+
const ret = Reflect.get(arg0, arg1);
|
2151
|
+
return ret;
|
2423
2152
|
}, arguments);
|
2424
2153
|
};
|
2425
|
-
imports.wbg.
|
2426
|
-
const ret =
|
2427
|
-
return
|
2154
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
2155
|
+
const ret = arg0[arg1];
|
2156
|
+
return ret;
|
2428
2157
|
};
|
2429
|
-
imports.wbg.
|
2430
|
-
return handleError(function(
|
2431
|
-
|
2158
|
+
imports.wbg.__wbg_globalThis_856ff24a65e13540 = function() {
|
2159
|
+
return handleError(function() {
|
2160
|
+
const ret = globalThis.globalThis;
|
2161
|
+
return ret;
|
2432
2162
|
}, arguments);
|
2433
2163
|
};
|
2434
|
-
imports.wbg.
|
2435
|
-
return handleError(function(
|
2436
|
-
|
2164
|
+
imports.wbg.__wbg_global_fc813a897a497d26 = function() {
|
2165
|
+
return handleError(function() {
|
2166
|
+
const ret = global.global;
|
2167
|
+
return ret;
|
2437
2168
|
}, arguments);
|
2438
2169
|
};
|
2439
|
-
imports.wbg.
|
2440
|
-
|
2441
|
-
|
2170
|
+
imports.wbg.__wbg_indexNames_5a79feb92b5c7d15 = function(arg0) {
|
2171
|
+
const ret = arg0.indexNames;
|
2172
|
+
return ret;
|
2173
|
+
};
|
2174
|
+
imports.wbg.__wbg_index_85303c6c6c093a21 = function() {
|
2175
|
+
return handleError(function(arg0, arg1, arg2) {
|
2176
|
+
const ret = arg0.index(getStringFromWasm0(arg1, arg2));
|
2177
|
+
return ret;
|
2442
2178
|
}, arguments);
|
2443
2179
|
};
|
2444
|
-
imports.wbg.
|
2180
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_8b96bf6c71691dc9 = function(arg0) {
|
2445
2181
|
let result;
|
2446
2182
|
try {
|
2447
|
-
result =
|
2183
|
+
result = arg0 instanceof ArrayBuffer;
|
2448
2184
|
} catch (_) {
|
2449
2185
|
result = false;
|
2450
2186
|
}
|
2451
2187
|
const ret = result;
|
2452
2188
|
return ret;
|
2453
2189
|
};
|
2454
|
-
imports.wbg.
|
2455
|
-
return handleError(function(arg0) {
|
2456
|
-
const ret = getObject(arg0).value;
|
2457
|
-
return addHeapObject(ret);
|
2458
|
-
}, arguments);
|
2459
|
-
};
|
2460
|
-
imports.wbg.__wbg_instanceof_IdbDatabase_2c9f91b2db322a72 = function(arg0) {
|
2190
|
+
imports.wbg.__wbg_instanceof_IdbCursorWithValue_b67ee8ffbb47754e = function(arg0) {
|
2461
2191
|
let result;
|
2462
2192
|
try {
|
2463
|
-
result =
|
2193
|
+
result = arg0 instanceof IDBCursorWithValue;
|
2464
2194
|
} catch (_) {
|
2465
2195
|
result = false;
|
2466
2196
|
}
|
2467
2197
|
const ret = result;
|
2468
2198
|
return ret;
|
2469
2199
|
};
|
2470
|
-
imports.wbg.
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
const ret = getObject(arg0).version;
|
2200
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_ac85ae9511a958d6 = function(arg0) {
|
2201
|
+
let result;
|
2202
|
+
try {
|
2203
|
+
result = arg0 instanceof IDBDatabase;
|
2204
|
+
} catch (_) {
|
2205
|
+
result = false;
|
2206
|
+
}
|
2207
|
+
const ret = result;
|
2479
2208
|
return ret;
|
2480
2209
|
};
|
2481
|
-
imports.wbg.
|
2482
|
-
const ret = getObject(arg0).objectStoreNames;
|
2483
|
-
return addHeapObject(ret);
|
2484
|
-
};
|
2485
|
-
imports.wbg.__wbg_setonversionchange_b1a0928064e9b758 = function(arg0, arg1) {
|
2486
|
-
getObject(arg0).onversionchange = getObject(arg1);
|
2487
|
-
};
|
2488
|
-
imports.wbg.__wbg_close_7bef29d1d5feecdb = function(arg0) {
|
2489
|
-
getObject(arg0).close();
|
2490
|
-
};
|
2491
|
-
imports.wbg.__wbg_createObjectStore_cfb780710dbc3ad2 = function() {
|
2492
|
-
return handleError(function(arg0, arg1, arg2, arg3) {
|
2493
|
-
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
2494
|
-
return addHeapObject(ret);
|
2495
|
-
}, arguments);
|
2496
|
-
};
|
2497
|
-
imports.wbg.__wbg_deleteObjectStore_745da9b507613eca = function() {
|
2498
|
-
return handleError(function(arg0, arg1, arg2) {
|
2499
|
-
getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
2500
|
-
}, arguments);
|
2501
|
-
};
|
2502
|
-
imports.wbg.__wbg_transaction_66168ca19ab39a78 = function() {
|
2503
|
-
return handleError(function(arg0, arg1, arg2) {
|
2504
|
-
const ret = getObject(arg0).transaction(getObject(arg1), ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"][arg2]);
|
2505
|
-
return addHeapObject(ret);
|
2506
|
-
}, arguments);
|
2507
|
-
};
|
2508
|
-
imports.wbg.__wbg_instanceof_IdbFactory_9c1359c26643add1 = function(arg0) {
|
2210
|
+
imports.wbg.__wbg_instanceof_IdbFactory_9f0912b6ffc6127e = function(arg0) {
|
2509
2211
|
let result;
|
2510
2212
|
try {
|
2511
|
-
result =
|
2213
|
+
result = arg0 instanceof IDBFactory;
|
2512
2214
|
} catch (_) {
|
2513
2215
|
result = false;
|
2514
2216
|
}
|
2515
2217
|
const ret = result;
|
2516
2218
|
return ret;
|
2517
2219
|
};
|
2518
|
-
imports.wbg.
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
}
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
2527
|
-
return addHeapObject(ret);
|
2528
|
-
}, arguments);
|
2529
|
-
};
|
2530
|
-
imports.wbg.__wbg_keyPath_99296ea462206d00 = function() {
|
2531
|
-
return handleError(function(arg0) {
|
2532
|
-
const ret = getObject(arg0).keyPath;
|
2533
|
-
return addHeapObject(ret);
|
2534
|
-
}, arguments);
|
2535
|
-
};
|
2536
|
-
imports.wbg.__wbg_multiEntry_986f6867169805dd = function(arg0) {
|
2537
|
-
const ret = getObject(arg0).multiEntry;
|
2220
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_5b0ea5cc15e23a29 = function(arg0) {
|
2221
|
+
let result;
|
2222
|
+
try {
|
2223
|
+
result = arg0 instanceof IDBOpenDBRequest;
|
2224
|
+
} catch (_) {
|
2225
|
+
result = false;
|
2226
|
+
}
|
2227
|
+
const ret = result;
|
2538
2228
|
return ret;
|
2539
2229
|
};
|
2540
|
-
imports.wbg.
|
2541
|
-
|
2230
|
+
imports.wbg.__wbg_instanceof_IdbRequest_7b08e3cfeaf3017a = function(arg0) {
|
2231
|
+
let result;
|
2232
|
+
try {
|
2233
|
+
result = arg0 instanceof IDBRequest;
|
2234
|
+
} catch (_) {
|
2235
|
+
result = false;
|
2236
|
+
}
|
2237
|
+
const ret = result;
|
2542
2238
|
return ret;
|
2543
2239
|
};
|
2544
|
-
imports.wbg.
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
}
|
2549
|
-
|
2550
|
-
|
2551
|
-
const ret =
|
2552
|
-
return
|
2553
|
-
};
|
2554
|
-
imports.wbg.__wbg_count_7b9a7e71c616b931 = function() {
|
2555
|
-
return handleError(function(arg0) {
|
2556
|
-
const ret = getObject(arg0).count();
|
2557
|
-
return addHeapObject(ret);
|
2558
|
-
}, arguments);
|
2559
|
-
};
|
2560
|
-
imports.wbg.__wbg_count_89ec71d494623a00 = function() {
|
2561
|
-
return handleError(function(arg0, arg1) {
|
2562
|
-
const ret = getObject(arg0).count(getObject(arg1));
|
2563
|
-
return addHeapObject(ret);
|
2564
|
-
}, arguments);
|
2565
|
-
};
|
2566
|
-
imports.wbg.__wbg_createIndex_8420e89baab0736f = function() {
|
2567
|
-
return handleError(function(arg0, arg1, arg2, arg3) {
|
2568
|
-
const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
2569
|
-
return addHeapObject(ret);
|
2570
|
-
}, arguments);
|
2571
|
-
};
|
2572
|
-
imports.wbg.__wbg_createIndex_6d4c3e20ee0f1066 = function() {
|
2573
|
-
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2574
|
-
const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
2575
|
-
return addHeapObject(ret);
|
2576
|
-
}, arguments);
|
2577
|
-
};
|
2578
|
-
imports.wbg.__wbg_delete_34764ece57bdc720 = function() {
|
2579
|
-
return handleError(function(arg0, arg1) {
|
2580
|
-
const ret = getObject(arg0).delete(getObject(arg1));
|
2581
|
-
return addHeapObject(ret);
|
2582
|
-
}, arguments);
|
2583
|
-
};
|
2584
|
-
imports.wbg.__wbg_deleteIndex_86b1a90a771f3fd2 = function() {
|
2585
|
-
return handleError(function(arg0, arg1, arg2) {
|
2586
|
-
getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2));
|
2587
|
-
}, arguments);
|
2588
|
-
};
|
2589
|
-
imports.wbg.__wbg_get_88b5e79e9daccb9f = function() {
|
2590
|
-
return handleError(function(arg0, arg1) {
|
2591
|
-
const ret = getObject(arg0).get(getObject(arg1));
|
2592
|
-
return addHeapObject(ret);
|
2593
|
-
}, arguments);
|
2594
|
-
};
|
2595
|
-
imports.wbg.__wbg_index_c90226e82bd94b45 = function() {
|
2596
|
-
return handleError(function(arg0, arg1, arg2) {
|
2597
|
-
const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
|
2598
|
-
return addHeapObject(ret);
|
2599
|
-
}, arguments);
|
2600
|
-
};
|
2601
|
-
imports.wbg.__wbg_openCursor_728ede41c2e2d7ec = function() {
|
2602
|
-
return handleError(function(arg0) {
|
2603
|
-
const ret = getObject(arg0).openCursor();
|
2604
|
-
return addHeapObject(ret);
|
2605
|
-
}, arguments);
|
2606
|
-
};
|
2607
|
-
imports.wbg.__wbg_openCursor_8ca06744434102da = function() {
|
2608
|
-
return handleError(function(arg0, arg1) {
|
2609
|
-
const ret = getObject(arg0).openCursor(getObject(arg1));
|
2610
|
-
return addHeapObject(ret);
|
2611
|
-
}, arguments);
|
2612
|
-
};
|
2613
|
-
imports.wbg.__wbg_openCursor_3193d7a663a8bc61 = function() {
|
2614
|
-
return handleError(function(arg0, arg1, arg2) {
|
2615
|
-
const ret = getObject(arg0).openCursor(getObject(arg1), ["next", "nextunique", "prev", "prevunique"][arg2]);
|
2616
|
-
return addHeapObject(ret);
|
2617
|
-
}, arguments);
|
2618
|
-
};
|
2619
|
-
imports.wbg.__wbg_put_b697dfdbcfb0598f = function() {
|
2620
|
-
return handleError(function(arg0, arg1) {
|
2621
|
-
const ret = getObject(arg0).put(getObject(arg1));
|
2622
|
-
return addHeapObject(ret);
|
2623
|
-
}, arguments);
|
2624
|
-
};
|
2625
|
-
imports.wbg.__wbg_put_f83d95662936dee7 = function() {
|
2626
|
-
return handleError(function(arg0, arg1, arg2) {
|
2627
|
-
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
|
2628
|
-
return addHeapObject(ret);
|
2629
|
-
}, arguments);
|
2240
|
+
imports.wbg.__wbg_instanceof_IdbTransaction_c9df539a4fb587ad = function(arg0) {
|
2241
|
+
let result;
|
2242
|
+
try {
|
2243
|
+
result = arg0 instanceof IDBTransaction;
|
2244
|
+
} catch (_) {
|
2245
|
+
result = false;
|
2246
|
+
}
|
2247
|
+
const ret = result;
|
2248
|
+
return ret;
|
2630
2249
|
};
|
2631
|
-
imports.wbg.
|
2250
|
+
imports.wbg.__wbg_instanceof_Map_cd976ea4854c21db = function(arg0) {
|
2632
2251
|
let result;
|
2633
2252
|
try {
|
2634
|
-
result =
|
2253
|
+
result = arg0 instanceof Map;
|
2635
2254
|
} catch (_) {
|
2636
2255
|
result = false;
|
2637
2256
|
}
|
2638
2257
|
const ret = result;
|
2639
2258
|
return ret;
|
2640
2259
|
};
|
2641
|
-
imports.wbg.
|
2642
|
-
|
2260
|
+
imports.wbg.__wbg_instanceof_Promise_7d1a74ca0f89de26 = function(arg0) {
|
2261
|
+
let result;
|
2262
|
+
try {
|
2263
|
+
result = arg0 instanceof Promise;
|
2264
|
+
} catch (_) {
|
2265
|
+
result = false;
|
2266
|
+
}
|
2267
|
+
const ret = result;
|
2268
|
+
return ret;
|
2643
2269
|
};
|
2644
|
-
imports.wbg.
|
2270
|
+
imports.wbg.__wbg_instanceof_Uint8Array_faa8901ba56cb8e9 = function(arg0) {
|
2645
2271
|
let result;
|
2646
2272
|
try {
|
2647
|
-
result =
|
2273
|
+
result = arg0 instanceof Uint8Array;
|
2648
2274
|
} catch (_) {
|
2649
2275
|
result = false;
|
2650
2276
|
}
|
2651
2277
|
const ret = result;
|
2652
2278
|
return ret;
|
2653
2279
|
};
|
2654
|
-
imports.wbg.
|
2280
|
+
imports.wbg.__wbg_isArray_6836d46c89daf1b6 = function(arg0) {
|
2281
|
+
const ret = Array.isArray(arg0);
|
2282
|
+
return ret;
|
2283
|
+
};
|
2284
|
+
imports.wbg.__wbg_isSafeInteger_2fb2b4f942993af4 = function(arg0) {
|
2285
|
+
const ret = Number.isSafeInteger(arg0);
|
2286
|
+
return ret;
|
2287
|
+
};
|
2288
|
+
imports.wbg.__wbg_iterator_773e0b022e7009f4 = function() {
|
2289
|
+
const ret = Symbol.iterator;
|
2290
|
+
return ret;
|
2291
|
+
};
|
2292
|
+
imports.wbg.__wbg_keyPath_1bbeff2ccd0b4656 = function() {
|
2655
2293
|
return handleError(function(arg0) {
|
2656
|
-
const ret =
|
2657
|
-
return
|
2294
|
+
const ret = arg0.keyPath;
|
2295
|
+
return ret;
|
2658
2296
|
}, arguments);
|
2659
2297
|
};
|
2660
|
-
imports.wbg.
|
2298
|
+
imports.wbg.__wbg_key_582049d0febf6389 = function() {
|
2661
2299
|
return handleError(function(arg0) {
|
2662
|
-
const ret =
|
2663
|
-
return
|
2300
|
+
const ret = arg0.key;
|
2301
|
+
return ret;
|
2664
2302
|
}, arguments);
|
2665
2303
|
};
|
2666
|
-
imports.wbg.
|
2667
|
-
const ret =
|
2668
|
-
return
|
2304
|
+
imports.wbg.__wbg_length_0a11127664108286 = function(arg0) {
|
2305
|
+
const ret = arg0.length;
|
2306
|
+
return ret;
|
2669
2307
|
};
|
2670
|
-
imports.wbg.
|
2671
|
-
|
2308
|
+
imports.wbg.__wbg_length_27ffbf6b6cec3d69 = function(arg0) {
|
2309
|
+
const ret = arg0.length;
|
2310
|
+
return ret;
|
2672
2311
|
};
|
2673
|
-
imports.wbg.
|
2674
|
-
|
2312
|
+
imports.wbg.__wbg_length_9aaa2867670f533a = function(arg0) {
|
2313
|
+
const ret = arg0.length;
|
2314
|
+
return ret;
|
2675
2315
|
};
|
2676
|
-
imports.wbg.
|
2677
|
-
|
2316
|
+
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
2317
|
+
const ret = arg0.msCrypto;
|
2318
|
+
return ret;
|
2319
|
+
};
|
2320
|
+
imports.wbg.__wbg_multiEntry_8c9da186f23a685a = function(arg0) {
|
2321
|
+
const ret = arg0.multiEntry;
|
2322
|
+
return ret;
|
2323
|
+
};
|
2324
|
+
imports.wbg.__wbg_name_a308071a6a6ceb70 = function(arg0, arg1) {
|
2325
|
+
const ret = arg1.name;
|
2326
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2327
|
+
const len1 = WASM_VECTOR_LEN;
|
2328
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2329
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2330
|
+
};
|
2331
|
+
imports.wbg.__wbg_new0_8845828e03777b53 = function() {
|
2332
|
+
const ret = new Date;
|
2333
|
+
return ret;
|
2334
|
+
};
|
2335
|
+
imports.wbg.__wbg_new_07527e5c188e7771 = function(arg0, arg1) {
|
2678
2336
|
try {
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2337
|
+
var state0 = { a: arg0, b: arg1 };
|
2338
|
+
var cb0 = (arg02, arg12) => {
|
2339
|
+
const a = state0.a;
|
2340
|
+
state0.a = 0;
|
2341
|
+
try {
|
2342
|
+
return __wbg_adapter_497(a, state0.b, arg02, arg12);
|
2343
|
+
} finally {
|
2344
|
+
state0.a = a;
|
2345
|
+
}
|
2346
|
+
};
|
2347
|
+
const ret = new Promise(cb0);
|
2348
|
+
return ret;
|
2349
|
+
} finally {
|
2350
|
+
state0.a = state0.b = 0;
|
2682
2351
|
}
|
2683
|
-
|
2352
|
+
};
|
2353
|
+
imports.wbg.__wbg_new_4c16aab09d1eb450 = function() {
|
2354
|
+
const ret = new Object;
|
2684
2355
|
return ret;
|
2685
2356
|
};
|
2686
|
-
imports.wbg.
|
2687
|
-
const ret =
|
2688
|
-
return
|
2357
|
+
imports.wbg.__wbg_new_6e254ba4a466646d = function() {
|
2358
|
+
const ret = new Array;
|
2359
|
+
return ret;
|
2689
2360
|
};
|
2690
|
-
imports.wbg.
|
2691
|
-
|
2361
|
+
imports.wbg.__wbg_new_820d2bbee2d13ba3 = function() {
|
2362
|
+
const ret = new Map;
|
2363
|
+
return ret;
|
2692
2364
|
};
|
2693
|
-
imports.wbg.
|
2694
|
-
|
2365
|
+
imports.wbg.__wbg_new_c964b02f4996f6b4 = function(arg0, arg1) {
|
2366
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
2367
|
+
return ret;
|
2695
2368
|
};
|
2696
|
-
imports.wbg.
|
2697
|
-
|
2369
|
+
imports.wbg.__wbg_new_db41cf29086ce106 = function(arg0) {
|
2370
|
+
const ret = new Uint8Array(arg0);
|
2371
|
+
return ret;
|
2698
2372
|
};
|
2699
|
-
imports.wbg.
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
2373
|
+
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
2374
|
+
const ret = NewAcmeAuthz.__wrap(arg0);
|
2375
|
+
return ret;
|
2376
|
+
};
|
2377
|
+
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
2378
|
+
const ret = NewAcmeOrder.__wrap(arg0);
|
2379
|
+
return ret;
|
2380
|
+
};
|
2381
|
+
imports.wbg.__wbg_newnoargs_29f93ce2db72cd07 = function(arg0, arg1) {
|
2382
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
2383
|
+
return ret;
|
2384
|
+
};
|
2385
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_c8ea72df7687880b = function(arg0, arg1, arg2) {
|
2386
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
2387
|
+
return ret;
|
2388
|
+
};
|
2389
|
+
imports.wbg.__wbg_newwithlength_60b9d756f80003a6 = function(arg0) {
|
2390
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
2391
|
+
return ret;
|
2392
|
+
};
|
2393
|
+
imports.wbg.__wbg_next_95ee887e1f50209d = function() {
|
2394
|
+
return handleError(function(arg0) {
|
2395
|
+
const ret = arg0.next();
|
2396
|
+
return ret;
|
2703
2397
|
}, arguments);
|
2704
2398
|
};
|
2705
|
-
imports.wbg.
|
2706
|
-
|
2399
|
+
imports.wbg.__wbg_next_b2690a2dab163f0f = function(arg0) {
|
2400
|
+
const ret = arg0.next;
|
2401
|
+
return ret;
|
2707
2402
|
};
|
2708
|
-
imports.wbg.
|
2709
|
-
const ret =
|
2710
|
-
return
|
2403
|
+
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
2404
|
+
const ret = arg0.node;
|
2405
|
+
return ret;
|
2711
2406
|
};
|
2712
|
-
imports.wbg.
|
2713
|
-
const ret =
|
2714
|
-
return
|
2407
|
+
imports.wbg.__wbg_now_4feb08c548aa0974 = function() {
|
2408
|
+
const ret = Date.now();
|
2409
|
+
return ret;
|
2715
2410
|
};
|
2716
|
-
imports.wbg.
|
2717
|
-
const ret =
|
2718
|
-
return
|
2411
|
+
imports.wbg.__wbg_now_b0938c2b128e32c8 = function() {
|
2412
|
+
const ret = Date.now();
|
2413
|
+
return ret;
|
2719
2414
|
};
|
2720
|
-
imports.wbg.
|
2721
|
-
const ret =
|
2722
|
-
return
|
2415
|
+
imports.wbg.__wbg_objectStoreNames_fa3b2f164290bbbd = function(arg0) {
|
2416
|
+
const ret = arg0.objectStoreNames;
|
2417
|
+
return ret;
|
2723
2418
|
};
|
2724
|
-
imports.wbg.
|
2725
|
-
return handleError(function() {
|
2726
|
-
const ret =
|
2727
|
-
return
|
2419
|
+
imports.wbg.__wbg_objectStore_13a5bd2f1e61cc09 = function() {
|
2420
|
+
return handleError(function(arg0, arg1, arg2) {
|
2421
|
+
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
2422
|
+
return ret;
|
2728
2423
|
}, arguments);
|
2729
2424
|
};
|
2730
|
-
imports.wbg.
|
2731
|
-
|
2732
|
-
|
2425
|
+
imports.wbg.__wbg_openCursor_04c643372feb48f8 = function() {
|
2426
|
+
return handleError(function(arg0, arg1, arg2) {
|
2427
|
+
const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
|
2428
|
+
return ret;
|
2429
|
+
}, arguments);
|
2733
2430
|
};
|
2734
|
-
imports.wbg.
|
2735
|
-
return handleError(function(arg0
|
2736
|
-
|
2431
|
+
imports.wbg.__wbg_openCursor_1a80702c37310d6a = function() {
|
2432
|
+
return handleError(function(arg0) {
|
2433
|
+
const ret = arg0.openCursor();
|
2434
|
+
return ret;
|
2737
2435
|
}, arguments);
|
2738
2436
|
};
|
2739
|
-
imports.wbg.
|
2437
|
+
imports.wbg.__wbg_openCursor_88ed1589ff02fe00 = function() {
|
2740
2438
|
return handleError(function(arg0, arg1) {
|
2741
|
-
|
2439
|
+
const ret = arg0.openCursor(arg1);
|
2440
|
+
return ret;
|
2742
2441
|
}, arguments);
|
2743
2442
|
};
|
2744
|
-
imports.wbg.
|
2745
|
-
return handleError(function() {
|
2746
|
-
const ret =
|
2747
|
-
return
|
2443
|
+
imports.wbg.__wbg_open_03268d79d2707363 = function() {
|
2444
|
+
return handleError(function(arg0, arg1, arg2) {
|
2445
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
2446
|
+
return ret;
|
2748
2447
|
}, arguments);
|
2749
2448
|
};
|
2750
|
-
imports.wbg.
|
2751
|
-
return handleError(function() {
|
2752
|
-
const ret =
|
2753
|
-
return
|
2449
|
+
imports.wbg.__wbg_open_aa35d795d5b141a6 = function() {
|
2450
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
2451
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
2452
|
+
return ret;
|
2754
2453
|
}, arguments);
|
2755
2454
|
};
|
2756
|
-
imports.wbg.
|
2757
|
-
|
2758
|
-
|
2759
|
-
|
2455
|
+
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
2456
|
+
const ret = arg0.process;
|
2457
|
+
return ret;
|
2458
|
+
};
|
2459
|
+
imports.wbg.__wbg_proposalbundle_new = function(arg0) {
|
2460
|
+
const ret = ProposalBundle.__wrap(arg0);
|
2461
|
+
return ret;
|
2462
|
+
};
|
2463
|
+
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
2464
|
+
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
2465
|
+
return ret;
|
2466
|
+
};
|
2467
|
+
imports.wbg.__wbg_push_910742639069b170 = function(arg0, arg1) {
|
2468
|
+
const ret = arg0.push(arg1);
|
2469
|
+
return ret;
|
2470
|
+
};
|
2471
|
+
imports.wbg.__wbg_put_f819663f2cce1da5 = function() {
|
2472
|
+
return handleError(function(arg0, arg1) {
|
2473
|
+
const ret = arg0.put(arg1);
|
2474
|
+
return ret;
|
2760
2475
|
}, arguments);
|
2761
2476
|
};
|
2762
|
-
imports.wbg.
|
2763
|
-
return handleError(function() {
|
2764
|
-
const ret =
|
2765
|
-
return
|
2477
|
+
imports.wbg.__wbg_put_f9cd011c0ef39430 = function() {
|
2478
|
+
return handleError(function(arg0, arg1, arg2) {
|
2479
|
+
const ret = arg0.put(arg1, arg2);
|
2480
|
+
return ret;
|
2766
2481
|
}, arguments);
|
2767
2482
|
};
|
2768
|
-
imports.wbg.
|
2769
|
-
|
2770
|
-
return addHeapObject(ret);
|
2483
|
+
imports.wbg.__wbg_queueMicrotask_98e746b9f850fe3d = function(arg0) {
|
2484
|
+
queueMicrotask(arg0);
|
2771
2485
|
};
|
2772
|
-
imports.wbg.
|
2486
|
+
imports.wbg.__wbg_queueMicrotask_c847cc8372bec908 = function(arg0) {
|
2487
|
+
const ret = arg0.queueMicrotask;
|
2488
|
+
return ret;
|
2489
|
+
};
|
2490
|
+
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
|
2773
2491
|
return handleError(function(arg0, arg1) {
|
2774
|
-
|
2775
|
-
return addHeapObject(ret);
|
2492
|
+
arg0.randomFillSync(arg1);
|
2776
2493
|
}, arguments);
|
2777
2494
|
};
|
2778
|
-
imports.wbg.
|
2779
|
-
const ret =
|
2780
|
-
return addHeapObject(ret);
|
2781
|
-
};
|
2782
|
-
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
|
2783
|
-
const ret = getObject(arg0).length;
|
2495
|
+
imports.wbg.__wbg_reject_b76d549f26021dc6 = function(arg0) {
|
2496
|
+
const ret = Promise.reject(arg0);
|
2784
2497
|
return ret;
|
2785
2498
|
};
|
2786
|
-
imports.wbg.
|
2787
|
-
const ret =
|
2788
|
-
return
|
2499
|
+
imports.wbg.__wbg_request_c061759d78066f9a = function(arg0) {
|
2500
|
+
const ret = arg0.request;
|
2501
|
+
return ret;
|
2789
2502
|
};
|
2790
|
-
imports.wbg.
|
2791
|
-
|
2792
|
-
|
2503
|
+
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
|
2504
|
+
return handleError(function() {
|
2505
|
+
const ret = module_core_crypto_ffi.require;
|
2506
|
+
return ret;
|
2507
|
+
}, arguments);
|
2793
2508
|
};
|
2794
|
-
imports.wbg.
|
2795
|
-
const ret =
|
2796
|
-
return
|
2509
|
+
imports.wbg.__wbg_resolve_03bf127fbf612c20 = function(arg0) {
|
2510
|
+
const ret = Promise.resolve(arg0);
|
2511
|
+
return ret;
|
2797
2512
|
};
|
2798
|
-
imports.wbg.
|
2513
|
+
imports.wbg.__wbg_result_da7e8ed088ac1b05 = function() {
|
2799
2514
|
return handleError(function(arg0) {
|
2800
|
-
const ret =
|
2801
|
-
return
|
2515
|
+
const ret = arg0.result;
|
2516
|
+
return ret;
|
2517
|
+
}, arguments);
|
2518
|
+
};
|
2519
|
+
imports.wbg.__wbg_self_799f153b0b6e0183 = function() {
|
2520
|
+
return handleError(function() {
|
2521
|
+
const ret = self.self;
|
2522
|
+
return ret;
|
2802
2523
|
}, arguments);
|
2803
2524
|
};
|
2804
|
-
imports.wbg.
|
2805
|
-
const ret =
|
2525
|
+
imports.wbg.__wbg_set_1f2956726252aaf4 = function(arg0, arg1, arg2) {
|
2526
|
+
const ret = arg0.set(arg1, arg2);
|
2806
2527
|
return ret;
|
2807
2528
|
};
|
2808
|
-
imports.wbg.
|
2809
|
-
|
2810
|
-
return addHeapObject(ret);
|
2529
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
2530
|
+
arg0[arg1] = arg2;
|
2811
2531
|
};
|
2812
|
-
imports.wbg.
|
2813
|
-
|
2814
|
-
return addHeapObject(ret);
|
2532
|
+
imports.wbg.__wbg_set_e1b9d9ffeee30338 = function(arg0, arg1, arg2) {
|
2533
|
+
arg0[arg1 >>> 0] = arg2;
|
2815
2534
|
};
|
2816
|
-
imports.wbg.
|
2817
|
-
|
2818
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
2819
|
-
return addHeapObject(ret);
|
2820
|
-
}, arguments);
|
2535
|
+
imports.wbg.__wbg_set_e97d203fd145cdae = function(arg0, arg1, arg2) {
|
2536
|
+
arg0.set(arg1, arg2 >>> 0);
|
2821
2537
|
};
|
2822
|
-
imports.wbg.
|
2823
|
-
|
2824
|
-
return addHeapObject(ret);
|
2538
|
+
imports.wbg.__wbg_setautoincrement_9e93e7fc48efdcb1 = function(arg0, arg1) {
|
2539
|
+
arg0.autoIncrement = arg1 !== 0;
|
2825
2540
|
};
|
2826
|
-
imports.wbg.
|
2827
|
-
|
2541
|
+
imports.wbg.__wbg_setcause_392b2c3c3f2318fd = function(arg0, arg1) {
|
2542
|
+
arg0.cause = arg1;
|
2828
2543
|
};
|
2829
|
-
imports.wbg.
|
2830
|
-
|
2831
|
-
|
2544
|
+
imports.wbg.__wbg_setkeypath_8b83681de0651fbf = function(arg0, arg1) {
|
2545
|
+
arg0.keyPath = arg1;
|
2546
|
+
};
|
2547
|
+
imports.wbg.__wbg_setmultientry_74a03cf331abc16c = function(arg0, arg1) {
|
2548
|
+
arg0.multiEntry = arg1 !== 0;
|
2549
|
+
};
|
2550
|
+
imports.wbg.__wbg_setname_038ea375b3927558 = function(arg0, arg1, arg2) {
|
2551
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
2552
|
+
};
|
2553
|
+
imports.wbg.__wbg_setonabort_b0106c045cc3e36d = function(arg0, arg1) {
|
2554
|
+
arg0.onabort = arg1;
|
2555
|
+
};
|
2556
|
+
imports.wbg.__wbg_setoncomplete_6c1e418cba03876e = function(arg0, arg1) {
|
2557
|
+
arg0.oncomplete = arg1;
|
2558
|
+
};
|
2559
|
+
imports.wbg.__wbg_setonerror_c97f5c7bc15df851 = function(arg0, arg1) {
|
2560
|
+
arg0.onerror = arg1;
|
2832
2561
|
};
|
2833
|
-
imports.wbg.
|
2834
|
-
|
2562
|
+
imports.wbg.__wbg_setonerror_edcd7b00caf27d4d = function(arg0, arg1) {
|
2563
|
+
arg0.onerror = arg1;
|
2564
|
+
};
|
2565
|
+
imports.wbg.__wbg_setonsuccess_c78e7a110a43f541 = function(arg0, arg1) {
|
2566
|
+
arg0.onsuccess = arg1;
|
2567
|
+
};
|
2568
|
+
imports.wbg.__wbg_setonupgradeneeded_8a72147bf3d8700a = function(arg0, arg1) {
|
2569
|
+
arg0.onupgradeneeded = arg1;
|
2570
|
+
};
|
2571
|
+
imports.wbg.__wbg_setonversionchange_927eda17d801df95 = function(arg0, arg1) {
|
2572
|
+
arg0.onversionchange = arg1;
|
2573
|
+
};
|
2574
|
+
imports.wbg.__wbg_setunique_3643f794d7489985 = function(arg0, arg1) {
|
2575
|
+
arg0.unique = arg1 !== 0;
|
2576
|
+
};
|
2577
|
+
imports.wbg.__wbg_subarray_a984c21c3cf98bbb = function(arg0, arg1, arg2) {
|
2578
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
2835
2579
|
return ret;
|
2836
2580
|
};
|
2837
|
-
imports.wbg.
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2842
|
-
|
2843
|
-
}
|
2844
|
-
const ret = result;
|
2581
|
+
imports.wbg.__wbg_target_8f11f6c47d6f15dd = function(arg0) {
|
2582
|
+
const ret = arg0.target;
|
2583
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2584
|
+
};
|
2585
|
+
imports.wbg.__wbg_then_5c9c71165832b5a1 = function(arg0, arg1, arg2) {
|
2586
|
+
const ret = arg0.then(arg1, arg2);
|
2845
2587
|
return ret;
|
2846
2588
|
};
|
2847
|
-
imports.wbg.
|
2848
|
-
const ret =
|
2849
|
-
return
|
2589
|
+
imports.wbg.__wbg_then_d88c104795b9d5aa = function(arg0, arg1) {
|
2590
|
+
const ret = arg0.then(arg1);
|
2591
|
+
return ret;
|
2850
2592
|
};
|
2851
|
-
imports.wbg.
|
2852
|
-
|
2593
|
+
imports.wbg.__wbg_toString_486ad3dae3899e4c = function(arg0) {
|
2594
|
+
const ret = arg0.toString();
|
2595
|
+
return ret;
|
2853
2596
|
};
|
2854
|
-
imports.wbg.
|
2855
|
-
|
2597
|
+
imports.wbg.__wbg_transaction_309f3e8eb546caae = function(arg0) {
|
2598
|
+
const ret = arg0.transaction;
|
2599
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2856
2600
|
};
|
2857
|
-
imports.wbg.
|
2601
|
+
imports.wbg.__wbg_transaction_a64054c235725edb = function() {
|
2858
2602
|
return handleError(function(arg0, arg1, arg2) {
|
2859
|
-
const ret =
|
2860
|
-
return
|
2603
|
+
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
2604
|
+
return ret;
|
2861
2605
|
}, arguments);
|
2862
2606
|
};
|
2863
|
-
imports.wbg.
|
2864
|
-
|
2865
|
-
|
2866
|
-
|
2607
|
+
imports.wbg.__wbg_unique_bc0fade6d952a825 = function(arg0) {
|
2608
|
+
const ret = arg0.unique;
|
2609
|
+
return ret;
|
2610
|
+
};
|
2611
|
+
imports.wbg.__wbg_value_87c720f6568103d1 = function(arg0) {
|
2612
|
+
const ret = arg0.value;
|
2613
|
+
return ret;
|
2614
|
+
};
|
2615
|
+
imports.wbg.__wbg_value_dd7bd9e3cabcd482 = function() {
|
2616
|
+
return handleError(function(arg0) {
|
2617
|
+
const ret = arg0.value;
|
2618
|
+
return ret;
|
2867
2619
|
}, arguments);
|
2868
2620
|
};
|
2869
|
-
imports.wbg.
|
2870
|
-
|
2871
|
-
try {
|
2872
|
-
result = getObject(arg0) instanceof Map;
|
2873
|
-
} catch (_) {
|
2874
|
-
result = false;
|
2875
|
-
}
|
2876
|
-
const ret = result;
|
2621
|
+
imports.wbg.__wbg_version_7270a2cd8d87f82b = function(arg0) {
|
2622
|
+
const ret = arg0.version;
|
2877
2623
|
return ret;
|
2878
2624
|
};
|
2879
|
-
imports.wbg.
|
2880
|
-
const ret =
|
2881
|
-
return
|
2625
|
+
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
2626
|
+
const ret = arg0.versions;
|
2627
|
+
return ret;
|
2628
|
+
};
|
2629
|
+
imports.wbg.__wbg_window_cd65fa4478648b49 = function() {
|
2630
|
+
return handleError(function() {
|
2631
|
+
const ret = window.window;
|
2632
|
+
return ret;
|
2633
|
+
}, arguments);
|
2882
2634
|
};
|
2883
|
-
imports.wbg.
|
2884
|
-
const ret =
|
2635
|
+
imports.wbg.__wbg_wireidentity_new = function(arg0) {
|
2636
|
+
const ret = WireIdentity.__wrap(arg0);
|
2885
2637
|
return ret;
|
2886
2638
|
};
|
2887
|
-
imports.wbg.
|
2888
|
-
const ret =
|
2639
|
+
imports.wbg.__wbindgen_array_new = function() {
|
2640
|
+
const ret = [];
|
2889
2641
|
return ret;
|
2890
2642
|
};
|
2891
|
-
imports.wbg.
|
2892
|
-
|
2893
|
-
return addHeapObject(ret);
|
2643
|
+
imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
|
2644
|
+
arg0.push(arg1);
|
2894
2645
|
};
|
2895
|
-
imports.wbg.
|
2896
|
-
const ret =
|
2646
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
2647
|
+
const ret = +arg0;
|
2897
2648
|
return ret;
|
2898
2649
|
};
|
2899
|
-
imports.wbg.
|
2900
|
-
const ret =
|
2901
|
-
return
|
2650
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
2651
|
+
const ret = arg0;
|
2652
|
+
return ret;
|
2902
2653
|
};
|
2903
|
-
imports.wbg.
|
2904
|
-
const ret =
|
2905
|
-
return
|
2654
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
2655
|
+
const ret = BigInt.asUintN(64, arg0);
|
2656
|
+
return ret;
|
2906
2657
|
};
|
2907
|
-
imports.wbg.
|
2908
|
-
const
|
2909
|
-
|
2658
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
2659
|
+
const v = arg1;
|
2660
|
+
const ret = typeof v === "bigint" ? v : undefined;
|
2661
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
2662
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
2910
2663
|
};
|
2911
|
-
imports.wbg.
|
2912
|
-
|
2913
|
-
|
2914
|
-
result = getObject(arg0) instanceof Promise;
|
2915
|
-
} catch (_) {
|
2916
|
-
result = false;
|
2917
|
-
}
|
2918
|
-
const ret = result;
|
2664
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
2665
|
+
const v = arg0;
|
2666
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
2919
2667
|
return ret;
|
2920
2668
|
};
|
2921
|
-
imports.wbg.
|
2922
|
-
|
2923
|
-
|
2924
|
-
|
2925
|
-
|
2926
|
-
state0.a = 0;
|
2927
|
-
try {
|
2928
|
-
return __wbg_adapter_489(a, state0.b, arg02, arg12);
|
2929
|
-
} finally {
|
2930
|
-
state0.a = a;
|
2931
|
-
}
|
2932
|
-
};
|
2933
|
-
const ret = new Promise(cb0);
|
2934
|
-
return addHeapObject(ret);
|
2935
|
-
} finally {
|
2936
|
-
state0.a = state0.b = 0;
|
2669
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
2670
|
+
const obj = arg0.original;
|
2671
|
+
if (obj.cnt-- == 1) {
|
2672
|
+
obj.a = 0;
|
2673
|
+
return true;
|
2937
2674
|
}
|
2675
|
+
const ret = false;
|
2676
|
+
return ret;
|
2938
2677
|
};
|
2939
|
-
imports.wbg.
|
2940
|
-
const ret =
|
2941
|
-
return
|
2678
|
+
imports.wbg.__wbindgen_closure_wrapper13790 = function(arg0, arg1, arg2) {
|
2679
|
+
const ret = makeMutClosure(arg0, arg1, 2568, __wbg_adapter_63);
|
2680
|
+
return ret;
|
2942
2681
|
};
|
2943
|
-
imports.wbg.
|
2944
|
-
const ret =
|
2945
|
-
return
|
2682
|
+
imports.wbg.__wbindgen_closure_wrapper14823 = function(arg0, arg1, arg2) {
|
2683
|
+
const ret = makeMutClosure(arg0, arg1, 2764, __wbg_adapter_66);
|
2684
|
+
return ret;
|
2946
2685
|
};
|
2947
|
-
imports.wbg.
|
2948
|
-
const ret =
|
2949
|
-
return
|
2686
|
+
imports.wbg.__wbindgen_closure_wrapper3626 = function(arg0, arg1, arg2) {
|
2687
|
+
const ret = makeMutClosure(arg0, arg1, 878, __wbg_adapter_60);
|
2688
|
+
return ret;
|
2950
2689
|
};
|
2951
|
-
imports.wbg.
|
2952
|
-
const ret =
|
2953
|
-
|
2690
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
2691
|
+
const ret = debugString(arg1);
|
2692
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2693
|
+
const len1 = WASM_VECTOR_LEN;
|
2694
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2695
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2954
2696
|
};
|
2955
|
-
imports.wbg.
|
2956
|
-
const ret = new
|
2957
|
-
return
|
2697
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
2698
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
2699
|
+
return ret;
|
2958
2700
|
};
|
2959
|
-
imports.wbg.
|
2960
|
-
const ret =
|
2961
|
-
return
|
2701
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
2702
|
+
const ret = arg0 in arg1;
|
2703
|
+
return ret;
|
2962
2704
|
};
|
2963
|
-
imports.wbg.
|
2964
|
-
|
2705
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
2706
|
+
const table = wasm.__wbindgen_export_4;
|
2707
|
+
const offset = table.grow(4);
|
2708
|
+
table.set(0, undefined);
|
2709
|
+
table.set(offset + 0, undefined);
|
2710
|
+
table.set(offset + 1, null);
|
2711
|
+
table.set(offset + 2, true);
|
2712
|
+
table.set(offset + 3, false);
|
2965
2713
|
};
|
2966
|
-
imports.wbg.
|
2967
|
-
const ret =
|
2714
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
2715
|
+
const ret = typeof arg0 === "bigint";
|
2968
2716
|
return ret;
|
2969
2717
|
};
|
2970
|
-
imports.wbg.
|
2971
|
-
|
2972
|
-
try {
|
2973
|
-
result = getObject(arg0) instanceof Uint8Array;
|
2974
|
-
} catch (_) {
|
2975
|
-
result = false;
|
2976
|
-
}
|
2977
|
-
const ret = result;
|
2718
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
2719
|
+
const ret = typeof arg0 === "function";
|
2978
2720
|
return ret;
|
2979
2721
|
};
|
2980
|
-
imports.wbg.
|
2981
|
-
const ret =
|
2982
|
-
return
|
2722
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
2723
|
+
const ret = arg0 === null;
|
2724
|
+
return ret;
|
2983
2725
|
};
|
2984
|
-
imports.wbg.
|
2985
|
-
const
|
2986
|
-
|
2726
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
2727
|
+
const val = arg0;
|
2728
|
+
const ret = typeof val === "object" && val !== null;
|
2729
|
+
return ret;
|
2987
2730
|
};
|
2988
|
-
imports.wbg.
|
2989
|
-
const
|
2990
|
-
|
2991
|
-
|
2731
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
2732
|
+
const ret = typeof arg0 === "string";
|
2733
|
+
return ret;
|
2734
|
+
};
|
2735
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
2736
|
+
const ret = arg0 === undefined;
|
2737
|
+
return ret;
|
2738
|
+
};
|
2739
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
2740
|
+
const ret = arg0 === arg1;
|
2741
|
+
return ret;
|
2742
|
+
};
|
2743
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
2744
|
+
const ret = arg0 == arg1;
|
2745
|
+
return ret;
|
2746
|
+
};
|
2747
|
+
imports.wbg.__wbindgen_memory = function() {
|
2748
|
+
const ret = wasm.memory;
|
2749
|
+
return ret;
|
2750
|
+
};
|
2751
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
2752
|
+
const obj = arg1;
|
2753
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
2754
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
2992
2755
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
2993
2756
|
};
|
2994
|
-
imports.wbg.
|
2995
|
-
const ret =
|
2996
|
-
|
2997
|
-
|
2757
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
2758
|
+
const ret = arg0;
|
2759
|
+
return ret;
|
2760
|
+
};
|
2761
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
2762
|
+
const obj = arg1;
|
2763
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
2764
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2765
|
+
var len1 = WASM_VECTOR_LEN;
|
2998
2766
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2999
2767
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3000
2768
|
};
|
2769
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
2770
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
2771
|
+
return ret;
|
2772
|
+
};
|
3001
2773
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
3002
2774
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
3003
2775
|
};
|
3004
|
-
imports.wbg.__wbindgen_memory = function() {
|
3005
|
-
const ret = wasm.memory;
|
3006
|
-
return addHeapObject(ret);
|
3007
|
-
};
|
3008
2776
|
imports.wbg.__wbindgen_uint8_array_new = function(arg0, arg1) {
|
3009
2777
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
3010
2778
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
3011
2779
|
const ret = v0;
|
3012
|
-
return
|
3013
|
-
};
|
3014
|
-
imports.wbg.__wbindgen_closure_wrapper3594 = function(arg0, arg1, arg2) {
|
3015
|
-
const ret = makeMutClosure(arg0, arg1, 859, __wbg_adapter_54);
|
3016
|
-
return addHeapObject(ret);
|
3017
|
-
};
|
3018
|
-
imports.wbg.__wbindgen_closure_wrapper13499 = function(arg0, arg1, arg2) {
|
3019
|
-
const ret = makeMutClosure(arg0, arg1, 2332, __wbg_adapter_57);
|
3020
|
-
return addHeapObject(ret);
|
3021
|
-
};
|
3022
|
-
imports.wbg.__wbindgen_closure_wrapper14529 = function(arg0, arg1, arg2) {
|
3023
|
-
const ret = makeMutClosure(arg0, arg1, 2523, __wbg_adapter_60);
|
3024
|
-
return addHeapObject(ret);
|
2780
|
+
return ret;
|
3025
2781
|
};
|
3026
2782
|
return imports;
|
3027
2783
|
}
|
3028
|
-
function __wbg_init_memory(imports, memory) {
|
3029
|
-
}
|
2784
|
+
function __wbg_init_memory(imports, memory) {}
|
3030
2785
|
function __wbg_finalize_init(instance, module) {
|
3031
2786
|
wasm = instance.exports;
|
3032
2787
|
__wbg_init.__wbindgen_wasm_module = module;
|
3033
2788
|
cachedDataViewMemory0 = null;
|
3034
2789
|
cachedUint16ArrayMemory0 = null;
|
3035
2790
|
cachedUint8ArrayMemory0 = null;
|
2791
|
+
wasm.__wbindgen_start();
|
3036
2792
|
return wasm;
|
3037
2793
|
}
|
3038
2794
|
async function __wbg_init(module_or_path) {
|
3039
2795
|
if (wasm !== undefined)
|
3040
2796
|
return wasm;
|
3041
|
-
if (typeof module_or_path !== "undefined"
|
3042
|
-
(
|
3043
|
-
|
3044
|
-
|
2797
|
+
if (typeof module_or_path !== "undefined") {
|
2798
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
2799
|
+
({ module_or_path } = module_or_path);
|
2800
|
+
} else {
|
2801
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
2802
|
+
}
|
2803
|
+
}
|
3045
2804
|
if (typeof module_or_path === "undefined") {
|
3046
2805
|
module_or_path = new URL("core-crypto-ffi_bg.wasm", import.meta.url);
|
3047
2806
|
}
|
@@ -3468,15 +3227,32 @@ class CoreCryptoContext2 {
|
|
3468
3227
|
}
|
3469
3228
|
// src/core-crypto-ffi.d.ts
|
3470
3229
|
class BuildMetadata2 {
|
3230
|
+
timestamp;
|
3471
3231
|
cargoDebug;
|
3472
3232
|
cargoFeatures;
|
3233
|
+
optLevel;
|
3234
|
+
targetTriple;
|
3473
3235
|
gitBranch;
|
3474
3236
|
gitDescribe;
|
3475
|
-
gitDirty;
|
3476
3237
|
gitSha;
|
3477
|
-
|
3478
|
-
|
3479
|
-
|
3238
|
+
gitDirty;
|
3239
|
+
}
|
3240
|
+
class WireIdentity4 {
|
3241
|
+
clientId;
|
3242
|
+
status;
|
3243
|
+
thumbprint;
|
3244
|
+
credentialType;
|
3245
|
+
x509Identity;
|
3246
|
+
}
|
3247
|
+
|
3248
|
+
class X509Identity2 {
|
3249
|
+
handle;
|
3250
|
+
displayName;
|
3251
|
+
domain;
|
3252
|
+
certificate;
|
3253
|
+
serialNumber;
|
3254
|
+
notBefore;
|
3255
|
+
notAfter;
|
3480
3256
|
}
|
3481
3257
|
// src/CoreCryptoInstance.ts
|
3482
3258
|
function setLogger(logger, ctx = null) {
|
@@ -3676,7 +3452,9 @@ export {
|
|
3676
3452
|
setMaxLogLevel,
|
3677
3453
|
setLogger,
|
3678
3454
|
buildMetadata,
|
3455
|
+
X509Identity2 as X509Identity,
|
3679
3456
|
WirePolicy2 as WirePolicy,
|
3457
|
+
WireIdentity4 as WireIdentity,
|
3680
3458
|
WelcomeBundle,
|
3681
3459
|
RatchetTreeType,
|
3682
3460
|
GroupInfoEncryptionType,
|