@learncard/didkit-plugin 1.8.7 → 1.8.9
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/dist/didkit/didkit_wasm.d.ts +29 -29
- package/dist/didkit/didkit_wasm.js +321 -326
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +2 -2
- package/dist/didkit-plugin.cjs.development.js +119 -124
- package/dist/didkit-plugin.cjs.development.js.map +2 -2
- package/dist/didkit-plugin.cjs.production.min.js +2 -2
- package/dist/didkit-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkit-plugin.esm.js +119 -124
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +29 -29
- package/dist/didkit_wasm.js +321 -326
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +2 -2
- package/package.json +3 -3
|
Binary file
|
|
@@ -46,6 +46,6 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
46
46
|
export const __wbindgen_export_5: WebAssembly.Table;
|
|
47
47
|
export const __externref_table_dealloc: (a: number) => void;
|
|
48
48
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
49
|
+
export const closure4007_externref_shim: (a: number, b: number, c: any) => void;
|
|
50
|
+
export const closure4398_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
51
51
|
export const __wbindgen_start: () => void;
|
|
@@ -210,34 +210,6 @@ ${val.stack}`;
|
|
|
210
210
|
return className;
|
|
211
211
|
}
|
|
212
212
|
__name(debugString, "debugString");
|
|
213
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
214
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
215
|
-
for (let i = 0; i < array.length; i++) {
|
|
216
|
-
const add = addToExternrefTable0(array[i]);
|
|
217
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
218
|
-
}
|
|
219
|
-
WASM_VECTOR_LEN = array.length;
|
|
220
|
-
return ptr;
|
|
221
|
-
}
|
|
222
|
-
__name(passArrayJsValueToWasm0, "passArrayJsValueToWasm0");
|
|
223
|
-
function decryptDagJwe(jwe, jwks) {
|
|
224
|
-
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
225
|
-
const len0 = WASM_VECTOR_LEN;
|
|
226
|
-
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
227
|
-
const len1 = WASM_VECTOR_LEN;
|
|
228
|
-
const ret = wasm.decryptDagJwe(ptr0, len0, ptr1, len1);
|
|
229
|
-
return ret;
|
|
230
|
-
}
|
|
231
|
-
__name(decryptDagJwe, "decryptDagJwe");
|
|
232
|
-
function didResolver(did, input_metadata) {
|
|
233
|
-
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
-
const len0 = WASM_VECTOR_LEN;
|
|
235
|
-
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
-
const len1 = WASM_VECTOR_LEN;
|
|
237
|
-
const ret = wasm.didResolver(ptr0, len0, ptr1, len1);
|
|
238
|
-
return ret;
|
|
239
|
-
}
|
|
240
|
-
__name(didResolver, "didResolver");
|
|
241
213
|
function issueCredential(credential, proof_options, key, context_map) {
|
|
242
214
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
243
215
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -251,28 +223,30 @@ function issueCredential(credential, proof_options, key, context_map) {
|
|
|
251
223
|
return ret;
|
|
252
224
|
}
|
|
253
225
|
__name(issueCredential, "issueCredential");
|
|
254
|
-
function
|
|
255
|
-
const ptr0 = passStringToWasm0(
|
|
226
|
+
function verifyPresentation(vp, proof_options, context_map) {
|
|
227
|
+
const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
228
|
const len0 = WASM_VECTOR_LEN;
|
|
257
229
|
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
258
230
|
const len1 = WASM_VECTOR_LEN;
|
|
259
|
-
const ptr2 = passStringToWasm0(
|
|
231
|
+
const ptr2 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
232
|
const len2 = WASM_VECTOR_LEN;
|
|
261
|
-
const
|
|
262
|
-
const len3 = WASM_VECTOR_LEN;
|
|
263
|
-
const ret = wasm.issuePresentation(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
233
|
+
const ret = wasm.verifyPresentation(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
264
234
|
return ret;
|
|
265
235
|
}
|
|
266
|
-
__name(
|
|
267
|
-
function
|
|
268
|
-
const ptr0 = passStringToWasm0(
|
|
236
|
+
__name(verifyPresentation, "verifyPresentation");
|
|
237
|
+
function contextLoader(url) {
|
|
238
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
269
239
|
const len0 = WASM_VECTOR_LEN;
|
|
270
|
-
const
|
|
271
|
-
const len1 = WASM_VECTOR_LEN;
|
|
272
|
-
const ret = wasm.decryptJwe(ptr0, len0, ptr1, len1);
|
|
240
|
+
const ret = wasm.contextLoader(ptr0, len0);
|
|
273
241
|
return ret;
|
|
274
242
|
}
|
|
275
|
-
__name(
|
|
243
|
+
__name(contextLoader, "contextLoader");
|
|
244
|
+
function takeFromExternrefTable0(idx) {
|
|
245
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
246
|
+
wasm.__externref_table_dealloc(idx);
|
|
247
|
+
return value;
|
|
248
|
+
}
|
|
249
|
+
__name(takeFromExternrefTable0, "takeFromExternrefTable0");
|
|
276
250
|
function passArray8ToWasm0(arg, malloc) {
|
|
277
251
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
278
252
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -280,19 +254,13 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
280
254
|
return ptr;
|
|
281
255
|
}
|
|
282
256
|
__name(passArray8ToWasm0, "passArray8ToWasm0");
|
|
283
|
-
function
|
|
284
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
285
|
-
wasm.__externref_table_dealloc(idx);
|
|
286
|
-
return value;
|
|
287
|
-
}
|
|
288
|
-
__name(takeFromExternrefTable0, "takeFromExternrefTable0");
|
|
289
|
-
function generateSecp256k1KeyFromBytes(bytes) {
|
|
257
|
+
function generateEd25519KeyFromBytes(bytes) {
|
|
290
258
|
let deferred3_0;
|
|
291
259
|
let deferred3_1;
|
|
292
260
|
try {
|
|
293
261
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
294
262
|
const len0 = WASM_VECTOR_LEN;
|
|
295
|
-
const ret = wasm.
|
|
263
|
+
const ret = wasm.generateEd25519KeyFromBytes(ptr0, len0);
|
|
296
264
|
var ptr2 = ret[0];
|
|
297
265
|
var len2 = ret[1];
|
|
298
266
|
if (ret[3]) {
|
|
@@ -307,36 +275,35 @@ function generateSecp256k1KeyFromBytes(bytes) {
|
|
|
307
275
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
308
276
|
}
|
|
309
277
|
}
|
|
310
|
-
__name(
|
|
311
|
-
function
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return ret;
|
|
278
|
+
__name(generateEd25519KeyFromBytes, "generateEd25519KeyFromBytes");
|
|
279
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
280
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
281
|
+
for (let i = 0; i < array.length; i++) {
|
|
282
|
+
const add = addToExternrefTable0(array[i]);
|
|
283
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
284
|
+
}
|
|
285
|
+
WASM_VECTOR_LEN = array.length;
|
|
286
|
+
return ptr;
|
|
320
287
|
}
|
|
321
|
-
__name(
|
|
322
|
-
function
|
|
323
|
-
const ptr0 = passStringToWasm0(
|
|
288
|
+
__name(passArrayJsValueToWasm0, "passArrayJsValueToWasm0");
|
|
289
|
+
function createJwe(cleartext, recipients) {
|
|
290
|
+
const ptr0 = passStringToWasm0(cleartext, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
291
|
const len0 = WASM_VECTOR_LEN;
|
|
325
|
-
const ptr1 =
|
|
292
|
+
const ptr1 = passArrayJsValueToWasm0(recipients, wasm.__wbindgen_malloc);
|
|
326
293
|
const len1 = WASM_VECTOR_LEN;
|
|
327
|
-
const
|
|
328
|
-
const len2 = WASM_VECTOR_LEN;
|
|
329
|
-
const ret = wasm.verifyCredential(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
294
|
+
const ret = wasm.createJwe(ptr0, len0, ptr1, len1);
|
|
330
295
|
return ret;
|
|
331
296
|
}
|
|
332
|
-
__name(
|
|
333
|
-
function
|
|
334
|
-
const ptr0 =
|
|
297
|
+
__name(createJwe, "createJwe");
|
|
298
|
+
function didResolver(did, input_metadata) {
|
|
299
|
+
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
335
300
|
const len0 = WASM_VECTOR_LEN;
|
|
336
|
-
const
|
|
301
|
+
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
+
const len1 = WASM_VECTOR_LEN;
|
|
303
|
+
const ret = wasm.didResolver(ptr0, len0, ptr1, len1);
|
|
337
304
|
return ret;
|
|
338
305
|
}
|
|
339
|
-
__name(
|
|
306
|
+
__name(didResolver, "didResolver");
|
|
340
307
|
function keyToVerificationMethod(method_pattern, jwk) {
|
|
341
308
|
const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
309
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -346,43 +313,22 @@ function keyToVerificationMethod(method_pattern, jwk) {
|
|
|
346
313
|
return ret;
|
|
347
314
|
}
|
|
348
315
|
__name(keyToVerificationMethod, "keyToVerificationMethod");
|
|
349
|
-
function
|
|
350
|
-
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
-
const len0 = WASM_VECTOR_LEN;
|
|
352
|
-
const ret = wasm.contextLoader(ptr0, len0);
|
|
353
|
-
return ret;
|
|
354
|
-
}
|
|
355
|
-
__name(contextLoader, "contextLoader");
|
|
356
|
-
function resolveDID(did, input_metadata) {
|
|
316
|
+
function didToVerificationMethod(did) {
|
|
357
317
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
318
|
const len0 = WASM_VECTOR_LEN;
|
|
359
|
-
const
|
|
360
|
-
const len1 = WASM_VECTOR_LEN;
|
|
361
|
-
const ret = wasm.resolveDID(ptr0, len0, ptr1, len1);
|
|
362
|
-
return ret;
|
|
363
|
-
}
|
|
364
|
-
__name(resolveDID, "resolveDID");
|
|
365
|
-
function clearCache() {
|
|
366
|
-
const ret = wasm.clearCache();
|
|
319
|
+
const ret = wasm.didToVerificationMethod(ptr0, len0);
|
|
367
320
|
return ret;
|
|
368
321
|
}
|
|
369
|
-
__name(
|
|
370
|
-
function
|
|
371
|
-
const ptr0 = passStringToWasm0(
|
|
322
|
+
__name(didToVerificationMethod, "didToVerificationMethod");
|
|
323
|
+
function decryptDagJwe(jwe, jwks) {
|
|
324
|
+
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
325
|
const len0 = WASM_VECTOR_LEN;
|
|
373
|
-
const ptr1 = passArrayJsValueToWasm0(
|
|
326
|
+
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
374
327
|
const len1 = WASM_VECTOR_LEN;
|
|
375
|
-
const ret = wasm.
|
|
376
|
-
return ret;
|
|
377
|
-
}
|
|
378
|
-
__name(createJwe, "createJwe");
|
|
379
|
-
function didToVerificationMethod(did) {
|
|
380
|
-
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
|
-
const len0 = WASM_VECTOR_LEN;
|
|
382
|
-
const ret = wasm.didToVerificationMethod(ptr0, len0);
|
|
328
|
+
const ret = wasm.decryptDagJwe(ptr0, len0, ptr1, len1);
|
|
383
329
|
return ret;
|
|
384
330
|
}
|
|
385
|
-
__name(
|
|
331
|
+
__name(decryptDagJwe, "decryptDagJwe");
|
|
386
332
|
function keyToDID(method_pattern, jwk) {
|
|
387
333
|
let deferred4_0;
|
|
388
334
|
let deferred4_1;
|
|
@@ -407,13 +353,20 @@ function keyToDID(method_pattern, jwk) {
|
|
|
407
353
|
}
|
|
408
354
|
}
|
|
409
355
|
__name(keyToDID, "keyToDID");
|
|
410
|
-
function
|
|
356
|
+
function createDagJwe(cleartext, recipients) {
|
|
357
|
+
const ptr0 = passArrayJsValueToWasm0(recipients, wasm.__wbindgen_malloc);
|
|
358
|
+
const len0 = WASM_VECTOR_LEN;
|
|
359
|
+
const ret = wasm.createDagJwe(cleartext, ptr0, len0);
|
|
360
|
+
return ret;
|
|
361
|
+
}
|
|
362
|
+
__name(createDagJwe, "createDagJwe");
|
|
363
|
+
function generateSecp256k1KeyFromBytes(bytes) {
|
|
411
364
|
let deferred3_0;
|
|
412
365
|
let deferred3_1;
|
|
413
366
|
try {
|
|
414
367
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
415
368
|
const len0 = WASM_VECTOR_LEN;
|
|
416
|
-
const ret = wasm.
|
|
369
|
+
const ret = wasm.generateSecp256k1KeyFromBytes(ptr0, len0);
|
|
417
370
|
var ptr2 = ret[0];
|
|
418
371
|
var len2 = ret[1];
|
|
419
372
|
if (ret[3]) {
|
|
@@ -428,15 +381,62 @@ function generateEd25519KeyFromBytes(bytes) {
|
|
|
428
381
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
429
382
|
}
|
|
430
383
|
}
|
|
431
|
-
__name(
|
|
384
|
+
__name(generateSecp256k1KeyFromBytes, "generateSecp256k1KeyFromBytes");
|
|
385
|
+
function issuePresentation(presentation, proof_options, key, context_map) {
|
|
386
|
+
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len0 = WASM_VECTOR_LEN;
|
|
388
|
+
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
389
|
+
const len1 = WASM_VECTOR_LEN;
|
|
390
|
+
const ptr2 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
391
|
+
const len2 = WASM_VECTOR_LEN;
|
|
392
|
+
const ptr3 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
|
+
const len3 = WASM_VECTOR_LEN;
|
|
394
|
+
const ret = wasm.issuePresentation(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
395
|
+
return ret;
|
|
396
|
+
}
|
|
397
|
+
__name(issuePresentation, "issuePresentation");
|
|
398
|
+
function resolveDID(did, input_metadata) {
|
|
399
|
+
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
400
|
+
const len0 = WASM_VECTOR_LEN;
|
|
401
|
+
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
403
|
+
const ret = wasm.resolveDID(ptr0, len0, ptr1, len1);
|
|
404
|
+
return ret;
|
|
405
|
+
}
|
|
406
|
+
__name(resolveDID, "resolveDID");
|
|
407
|
+
function decryptJwe(jwe, jwks) {
|
|
408
|
+
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
410
|
+
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
411
|
+
const len1 = WASM_VECTOR_LEN;
|
|
412
|
+
const ret = wasm.decryptJwe(ptr0, len0, ptr1, len1);
|
|
413
|
+
return ret;
|
|
414
|
+
}
|
|
415
|
+
__name(decryptJwe, "decryptJwe");
|
|
416
|
+
function verifyCredential(vc, proof_options, context_map) {
|
|
417
|
+
const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
418
|
+
const len0 = WASM_VECTOR_LEN;
|
|
419
|
+
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
420
|
+
const len1 = WASM_VECTOR_LEN;
|
|
421
|
+
const ptr2 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
422
|
+
const len2 = WASM_VECTOR_LEN;
|
|
423
|
+
const ret = wasm.verifyCredential(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
424
|
+
return ret;
|
|
425
|
+
}
|
|
426
|
+
__name(verifyCredential, "verifyCredential");
|
|
427
|
+
function clearCache() {
|
|
428
|
+
const ret = wasm.clearCache();
|
|
429
|
+
return ret;
|
|
430
|
+
}
|
|
431
|
+
__name(clearCache, "clearCache");
|
|
432
432
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
433
|
-
wasm.
|
|
433
|
+
wasm.closure4007_externref_shim(arg0, arg1, arg2);
|
|
434
434
|
}
|
|
435
435
|
__name(__wbg_adapter_54, "__wbg_adapter_54");
|
|
436
|
-
function
|
|
437
|
-
wasm.
|
|
436
|
+
function __wbg_adapter_200(arg0, arg1, arg2, arg3) {
|
|
437
|
+
wasm.closure4398_externref_shim(arg0, arg1, arg2, arg3);
|
|
438
438
|
}
|
|
439
|
-
__name(
|
|
439
|
+
__name(__wbg_adapter_200, "__wbg_adapter_200");
|
|
440
440
|
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
441
441
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
442
442
|
async function __wbg_load(module2, imports) {
|
|
@@ -508,7 +508,7 @@ function __wbg_get_imports() {
|
|
|
508
508
|
const ret = arg0.crypto;
|
|
509
509
|
return ret;
|
|
510
510
|
};
|
|
511
|
-
imports.wbg.
|
|
511
|
+
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
512
512
|
const ret = arg0.crypto;
|
|
513
513
|
return ret;
|
|
514
514
|
};
|
|
@@ -535,16 +535,11 @@ function __wbg_get_imports() {
|
|
|
535
535
|
imports.wbg.__wbg_getRandomValues_371e7ade8bd92088 = function(arg0, arg1) {
|
|
536
536
|
arg0.getRandomValues(arg1);
|
|
537
537
|
};
|
|
538
|
-
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() {
|
|
539
|
-
return handleError(function(arg0, arg1) {
|
|
540
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
541
|
-
}, arguments);
|
|
542
|
-
};
|
|
543
538
|
imports.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1 = function(arg0) {
|
|
544
539
|
const ret = arg0.getRandomValues;
|
|
545
540
|
return ret;
|
|
546
541
|
};
|
|
547
|
-
imports.wbg.
|
|
542
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
|
|
548
543
|
return handleError(function(arg0, arg1) {
|
|
549
544
|
arg0.getRandomValues(arg1);
|
|
550
545
|
}, arguments);
|
|
@@ -637,7 +632,7 @@ function __wbg_get_imports() {
|
|
|
637
632
|
const ret = arg0.length;
|
|
638
633
|
return ret;
|
|
639
634
|
};
|
|
640
|
-
imports.wbg.
|
|
635
|
+
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
641
636
|
const ret = arg0.msCrypto;
|
|
642
637
|
return ret;
|
|
643
638
|
};
|
|
@@ -662,7 +657,7 @@ function __wbg_get_imports() {
|
|
|
662
657
|
const a = state0.a;
|
|
663
658
|
state0.a = 0;
|
|
664
659
|
try {
|
|
665
|
-
return
|
|
660
|
+
return __wbg_adapter_200(a, state0.b, arg02, arg12);
|
|
666
661
|
} finally {
|
|
667
662
|
state0.a = a;
|
|
668
663
|
}
|
|
@@ -723,7 +718,7 @@ function __wbg_get_imports() {
|
|
|
723
718
|
return ret;
|
|
724
719
|
}, arguments);
|
|
725
720
|
};
|
|
726
|
-
imports.wbg.
|
|
721
|
+
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
727
722
|
const ret = arg0.node;
|
|
728
723
|
return ret;
|
|
729
724
|
};
|
|
@@ -731,7 +726,7 @@ function __wbg_get_imports() {
|
|
|
731
726
|
const ret = arg0.now();
|
|
732
727
|
return ret;
|
|
733
728
|
};
|
|
734
|
-
imports.wbg.
|
|
729
|
+
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
735
730
|
const ret = arg0.process;
|
|
736
731
|
return ret;
|
|
737
732
|
};
|
|
@@ -749,7 +744,7 @@ function __wbg_get_imports() {
|
|
|
749
744
|
imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
|
|
750
745
|
arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
751
746
|
};
|
|
752
|
-
imports.wbg.
|
|
747
|
+
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
|
|
753
748
|
return handleError(function(arg0, arg1) {
|
|
754
749
|
arg0.randomFillSync(arg1);
|
|
755
750
|
}, arguments);
|
|
@@ -758,7 +753,7 @@ function __wbg_get_imports() {
|
|
|
758
753
|
const ret = arg0.require(getStringFromWasm0(arg1, arg2));
|
|
759
754
|
return ret;
|
|
760
755
|
};
|
|
761
|
-
imports.wbg.
|
|
756
|
+
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
|
|
762
757
|
return handleError(function() {
|
|
763
758
|
const ret = module.require;
|
|
764
759
|
return ret;
|
|
@@ -868,7 +863,7 @@ function __wbg_get_imports() {
|
|
|
868
863
|
const ret = arg0.value;
|
|
869
864
|
return ret;
|
|
870
865
|
};
|
|
871
|
-
imports.wbg.
|
|
866
|
+
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
872
867
|
const ret = arg0.versions;
|
|
873
868
|
return ret;
|
|
874
869
|
};
|
|
@@ -904,8 +899,8 @@ function __wbg_get_imports() {
|
|
|
904
899
|
const ret = false;
|
|
905
900
|
return ret;
|
|
906
901
|
};
|
|
907
|
-
imports.wbg.
|
|
908
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
902
|
+
imports.wbg.__wbindgen_closure_wrapper12039 = function(arg0, arg1, arg2) {
|
|
903
|
+
const ret = makeMutClosure(arg0, arg1, 4008, __wbg_adapter_54);
|
|
909
904
|
return ret;
|
|
910
905
|
};
|
|
911
906
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -1036,7 +1031,7 @@ var didkit_wasm_default = __wbg_init;
|
|
|
1036
1031
|
// src/didkit/index.ts
|
|
1037
1032
|
var initialized = false;
|
|
1038
1033
|
var generating = false;
|
|
1039
|
-
var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/
|
|
1034
|
+
var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/Vhyjqv0NTnmViw4TLmlj") => {
|
|
1040
1035
|
while (generating) await new Promise((res) => setTimeout(res, 250));
|
|
1041
1036
|
if (initialized) return;
|
|
1042
1037
|
try {
|