@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
|
@@ -183,34 +183,6 @@ ${val.stack}`;
|
|
|
183
183
|
return className;
|
|
184
184
|
}
|
|
185
185
|
__name(debugString, "debugString");
|
|
186
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
187
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
188
|
-
for (let i = 0; i < array.length; i++) {
|
|
189
|
-
const add = addToExternrefTable0(array[i]);
|
|
190
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
191
|
-
}
|
|
192
|
-
WASM_VECTOR_LEN = array.length;
|
|
193
|
-
return ptr;
|
|
194
|
-
}
|
|
195
|
-
__name(passArrayJsValueToWasm0, "passArrayJsValueToWasm0");
|
|
196
|
-
function decryptDagJwe(jwe, jwks) {
|
|
197
|
-
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
198
|
-
const len0 = WASM_VECTOR_LEN;
|
|
199
|
-
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
200
|
-
const len1 = WASM_VECTOR_LEN;
|
|
201
|
-
const ret = wasm.decryptDagJwe(ptr0, len0, ptr1, len1);
|
|
202
|
-
return ret;
|
|
203
|
-
}
|
|
204
|
-
__name(decryptDagJwe, "decryptDagJwe");
|
|
205
|
-
function didResolver(did, input_metadata) {
|
|
206
|
-
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
207
|
-
const len0 = WASM_VECTOR_LEN;
|
|
208
|
-
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
209
|
-
const len1 = WASM_VECTOR_LEN;
|
|
210
|
-
const ret = wasm.didResolver(ptr0, len0, ptr1, len1);
|
|
211
|
-
return ret;
|
|
212
|
-
}
|
|
213
|
-
__name(didResolver, "didResolver");
|
|
214
186
|
function issueCredential(credential, proof_options, key, context_map) {
|
|
215
187
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
216
188
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -224,28 +196,30 @@ function issueCredential(credential, proof_options, key, context_map) {
|
|
|
224
196
|
return ret;
|
|
225
197
|
}
|
|
226
198
|
__name(issueCredential, "issueCredential");
|
|
227
|
-
function
|
|
228
|
-
const ptr0 = passStringToWasm0(
|
|
199
|
+
function verifyPresentation(vp, proof_options, context_map) {
|
|
200
|
+
const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
229
201
|
const len0 = WASM_VECTOR_LEN;
|
|
230
202
|
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
203
|
const len1 = WASM_VECTOR_LEN;
|
|
232
|
-
const ptr2 = passStringToWasm0(
|
|
204
|
+
const ptr2 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
205
|
const len2 = WASM_VECTOR_LEN;
|
|
234
|
-
const
|
|
235
|
-
const len3 = WASM_VECTOR_LEN;
|
|
236
|
-
const ret = wasm.issuePresentation(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
206
|
+
const ret = wasm.verifyPresentation(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
237
207
|
return ret;
|
|
238
208
|
}
|
|
239
|
-
__name(
|
|
240
|
-
function
|
|
241
|
-
const ptr0 = passStringToWasm0(
|
|
209
|
+
__name(verifyPresentation, "verifyPresentation");
|
|
210
|
+
function contextLoader(url) {
|
|
211
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
242
212
|
const len0 = WASM_VECTOR_LEN;
|
|
243
|
-
const
|
|
244
|
-
const len1 = WASM_VECTOR_LEN;
|
|
245
|
-
const ret = wasm.decryptJwe(ptr0, len0, ptr1, len1);
|
|
213
|
+
const ret = wasm.contextLoader(ptr0, len0);
|
|
246
214
|
return ret;
|
|
247
215
|
}
|
|
248
|
-
__name(
|
|
216
|
+
__name(contextLoader, "contextLoader");
|
|
217
|
+
function takeFromExternrefTable0(idx) {
|
|
218
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
219
|
+
wasm.__externref_table_dealloc(idx);
|
|
220
|
+
return value;
|
|
221
|
+
}
|
|
222
|
+
__name(takeFromExternrefTable0, "takeFromExternrefTable0");
|
|
249
223
|
function passArray8ToWasm0(arg, malloc) {
|
|
250
224
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
251
225
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -253,19 +227,13 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
253
227
|
return ptr;
|
|
254
228
|
}
|
|
255
229
|
__name(passArray8ToWasm0, "passArray8ToWasm0");
|
|
256
|
-
function
|
|
257
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
258
|
-
wasm.__externref_table_dealloc(idx);
|
|
259
|
-
return value;
|
|
260
|
-
}
|
|
261
|
-
__name(takeFromExternrefTable0, "takeFromExternrefTable0");
|
|
262
|
-
function generateSecp256k1KeyFromBytes(bytes) {
|
|
230
|
+
function generateEd25519KeyFromBytes(bytes) {
|
|
263
231
|
let deferred3_0;
|
|
264
232
|
let deferred3_1;
|
|
265
233
|
try {
|
|
266
234
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
267
235
|
const len0 = WASM_VECTOR_LEN;
|
|
268
|
-
const ret = wasm.
|
|
236
|
+
const ret = wasm.generateEd25519KeyFromBytes(ptr0, len0);
|
|
269
237
|
var ptr2 = ret[0];
|
|
270
238
|
var len2 = ret[1];
|
|
271
239
|
if (ret[3]) {
|
|
@@ -280,36 +248,35 @@ function generateSecp256k1KeyFromBytes(bytes) {
|
|
|
280
248
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
281
249
|
}
|
|
282
250
|
}
|
|
283
|
-
__name(
|
|
284
|
-
function
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return ret;
|
|
251
|
+
__name(generateEd25519KeyFromBytes, "generateEd25519KeyFromBytes");
|
|
252
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
253
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
254
|
+
for (let i = 0; i < array.length; i++) {
|
|
255
|
+
const add = addToExternrefTable0(array[i]);
|
|
256
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
257
|
+
}
|
|
258
|
+
WASM_VECTOR_LEN = array.length;
|
|
259
|
+
return ptr;
|
|
293
260
|
}
|
|
294
|
-
__name(
|
|
295
|
-
function
|
|
296
|
-
const ptr0 = passStringToWasm0(
|
|
261
|
+
__name(passArrayJsValueToWasm0, "passArrayJsValueToWasm0");
|
|
262
|
+
function createJwe(cleartext, recipients) {
|
|
263
|
+
const ptr0 = passStringToWasm0(cleartext, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
264
|
const len0 = WASM_VECTOR_LEN;
|
|
298
|
-
const ptr1 =
|
|
265
|
+
const ptr1 = passArrayJsValueToWasm0(recipients, wasm.__wbindgen_malloc);
|
|
299
266
|
const len1 = WASM_VECTOR_LEN;
|
|
300
|
-
const
|
|
301
|
-
const len2 = WASM_VECTOR_LEN;
|
|
302
|
-
const ret = wasm.verifyCredential(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
267
|
+
const ret = wasm.createJwe(ptr0, len0, ptr1, len1);
|
|
303
268
|
return ret;
|
|
304
269
|
}
|
|
305
|
-
__name(
|
|
306
|
-
function
|
|
307
|
-
const ptr0 =
|
|
270
|
+
__name(createJwe, "createJwe");
|
|
271
|
+
function didResolver(did, input_metadata) {
|
|
272
|
+
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
273
|
const len0 = WASM_VECTOR_LEN;
|
|
309
|
-
const
|
|
274
|
+
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
275
|
+
const len1 = WASM_VECTOR_LEN;
|
|
276
|
+
const ret = wasm.didResolver(ptr0, len0, ptr1, len1);
|
|
310
277
|
return ret;
|
|
311
278
|
}
|
|
312
|
-
__name(
|
|
279
|
+
__name(didResolver, "didResolver");
|
|
313
280
|
function keyToVerificationMethod(method_pattern, jwk) {
|
|
314
281
|
const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
315
282
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -319,43 +286,22 @@ function keyToVerificationMethod(method_pattern, jwk) {
|
|
|
319
286
|
return ret;
|
|
320
287
|
}
|
|
321
288
|
__name(keyToVerificationMethod, "keyToVerificationMethod");
|
|
322
|
-
function
|
|
323
|
-
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
|
-
const len0 = WASM_VECTOR_LEN;
|
|
325
|
-
const ret = wasm.contextLoader(ptr0, len0);
|
|
326
|
-
return ret;
|
|
327
|
-
}
|
|
328
|
-
__name(contextLoader, "contextLoader");
|
|
329
|
-
function resolveDID(did, input_metadata) {
|
|
289
|
+
function didToVerificationMethod(did) {
|
|
330
290
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
331
291
|
const len0 = WASM_VECTOR_LEN;
|
|
332
|
-
const
|
|
333
|
-
const len1 = WASM_VECTOR_LEN;
|
|
334
|
-
const ret = wasm.resolveDID(ptr0, len0, ptr1, len1);
|
|
335
|
-
return ret;
|
|
336
|
-
}
|
|
337
|
-
__name(resolveDID, "resolveDID");
|
|
338
|
-
function clearCache() {
|
|
339
|
-
const ret = wasm.clearCache();
|
|
292
|
+
const ret = wasm.didToVerificationMethod(ptr0, len0);
|
|
340
293
|
return ret;
|
|
341
294
|
}
|
|
342
|
-
__name(
|
|
343
|
-
function
|
|
344
|
-
const ptr0 = passStringToWasm0(
|
|
295
|
+
__name(didToVerificationMethod, "didToVerificationMethod");
|
|
296
|
+
function decryptDagJwe(jwe, jwks) {
|
|
297
|
+
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
345
298
|
const len0 = WASM_VECTOR_LEN;
|
|
346
|
-
const ptr1 = passArrayJsValueToWasm0(
|
|
299
|
+
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
347
300
|
const len1 = WASM_VECTOR_LEN;
|
|
348
|
-
const ret = wasm.
|
|
349
|
-
return ret;
|
|
350
|
-
}
|
|
351
|
-
__name(createJwe, "createJwe");
|
|
352
|
-
function didToVerificationMethod(did) {
|
|
353
|
-
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
354
|
-
const len0 = WASM_VECTOR_LEN;
|
|
355
|
-
const ret = wasm.didToVerificationMethod(ptr0, len0);
|
|
301
|
+
const ret = wasm.decryptDagJwe(ptr0, len0, ptr1, len1);
|
|
356
302
|
return ret;
|
|
357
303
|
}
|
|
358
|
-
__name(
|
|
304
|
+
__name(decryptDagJwe, "decryptDagJwe");
|
|
359
305
|
function keyToDID(method_pattern, jwk) {
|
|
360
306
|
let deferred4_0;
|
|
361
307
|
let deferred4_1;
|
|
@@ -380,13 +326,20 @@ function keyToDID(method_pattern, jwk) {
|
|
|
380
326
|
}
|
|
381
327
|
}
|
|
382
328
|
__name(keyToDID, "keyToDID");
|
|
383
|
-
function
|
|
329
|
+
function createDagJwe(cleartext, recipients) {
|
|
330
|
+
const ptr0 = passArrayJsValueToWasm0(recipients, wasm.__wbindgen_malloc);
|
|
331
|
+
const len0 = WASM_VECTOR_LEN;
|
|
332
|
+
const ret = wasm.createDagJwe(cleartext, ptr0, len0);
|
|
333
|
+
return ret;
|
|
334
|
+
}
|
|
335
|
+
__name(createDagJwe, "createDagJwe");
|
|
336
|
+
function generateSecp256k1KeyFromBytes(bytes) {
|
|
384
337
|
let deferred3_0;
|
|
385
338
|
let deferred3_1;
|
|
386
339
|
try {
|
|
387
340
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
388
341
|
const len0 = WASM_VECTOR_LEN;
|
|
389
|
-
const ret = wasm.
|
|
342
|
+
const ret = wasm.generateSecp256k1KeyFromBytes(ptr0, len0);
|
|
390
343
|
var ptr2 = ret[0];
|
|
391
344
|
var len2 = ret[1];
|
|
392
345
|
if (ret[3]) {
|
|
@@ -401,15 +354,62 @@ function generateEd25519KeyFromBytes(bytes) {
|
|
|
401
354
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
402
355
|
}
|
|
403
356
|
}
|
|
404
|
-
__name(
|
|
357
|
+
__name(generateSecp256k1KeyFromBytes, "generateSecp256k1KeyFromBytes");
|
|
358
|
+
function issuePresentation(presentation, proof_options, key, context_map) {
|
|
359
|
+
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
360
|
+
const len0 = WASM_VECTOR_LEN;
|
|
361
|
+
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
362
|
+
const len1 = WASM_VECTOR_LEN;
|
|
363
|
+
const ptr2 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
364
|
+
const len2 = WASM_VECTOR_LEN;
|
|
365
|
+
const ptr3 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
366
|
+
const len3 = WASM_VECTOR_LEN;
|
|
367
|
+
const ret = wasm.issuePresentation(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
368
|
+
return ret;
|
|
369
|
+
}
|
|
370
|
+
__name(issuePresentation, "issuePresentation");
|
|
371
|
+
function resolveDID(did, input_metadata) {
|
|
372
|
+
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
373
|
+
const len0 = WASM_VECTOR_LEN;
|
|
374
|
+
const ptr1 = passStringToWasm0(input_metadata, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
375
|
+
const len1 = WASM_VECTOR_LEN;
|
|
376
|
+
const ret = wasm.resolveDID(ptr0, len0, ptr1, len1);
|
|
377
|
+
return ret;
|
|
378
|
+
}
|
|
379
|
+
__name(resolveDID, "resolveDID");
|
|
380
|
+
function decryptJwe(jwe, jwks) {
|
|
381
|
+
const ptr0 = passStringToWasm0(jwe, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
382
|
+
const len0 = WASM_VECTOR_LEN;
|
|
383
|
+
const ptr1 = passArrayJsValueToWasm0(jwks, wasm.__wbindgen_malloc);
|
|
384
|
+
const len1 = WASM_VECTOR_LEN;
|
|
385
|
+
const ret = wasm.decryptJwe(ptr0, len0, ptr1, len1);
|
|
386
|
+
return ret;
|
|
387
|
+
}
|
|
388
|
+
__name(decryptJwe, "decryptJwe");
|
|
389
|
+
function verifyCredential(vc, proof_options, context_map) {
|
|
390
|
+
const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
391
|
+
const len0 = WASM_VECTOR_LEN;
|
|
392
|
+
const ptr1 = passStringToWasm0(proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
|
+
const len1 = WASM_VECTOR_LEN;
|
|
394
|
+
const ptr2 = passStringToWasm0(context_map, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
+
const len2 = WASM_VECTOR_LEN;
|
|
396
|
+
const ret = wasm.verifyCredential(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
397
|
+
return ret;
|
|
398
|
+
}
|
|
399
|
+
__name(verifyCredential, "verifyCredential");
|
|
400
|
+
function clearCache() {
|
|
401
|
+
const ret = wasm.clearCache();
|
|
402
|
+
return ret;
|
|
403
|
+
}
|
|
404
|
+
__name(clearCache, "clearCache");
|
|
405
405
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
406
|
-
wasm.
|
|
406
|
+
wasm.closure4007_externref_shim(arg0, arg1, arg2);
|
|
407
407
|
}
|
|
408
408
|
__name(__wbg_adapter_54, "__wbg_adapter_54");
|
|
409
|
-
function
|
|
410
|
-
wasm.
|
|
409
|
+
function __wbg_adapter_200(arg0, arg1, arg2, arg3) {
|
|
410
|
+
wasm.closure4398_externref_shim(arg0, arg1, arg2, arg3);
|
|
411
411
|
}
|
|
412
|
-
__name(
|
|
412
|
+
__name(__wbg_adapter_200, "__wbg_adapter_200");
|
|
413
413
|
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
414
414
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
415
415
|
async function __wbg_load(module2, imports) {
|
|
@@ -481,7 +481,7 @@ function __wbg_get_imports() {
|
|
|
481
481
|
const ret = arg0.crypto;
|
|
482
482
|
return ret;
|
|
483
483
|
};
|
|
484
|
-
imports.wbg.
|
|
484
|
+
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
485
485
|
const ret = arg0.crypto;
|
|
486
486
|
return ret;
|
|
487
487
|
};
|
|
@@ -508,16 +508,11 @@ function __wbg_get_imports() {
|
|
|
508
508
|
imports.wbg.__wbg_getRandomValues_371e7ade8bd92088 = function(arg0, arg1) {
|
|
509
509
|
arg0.getRandomValues(arg1);
|
|
510
510
|
};
|
|
511
|
-
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() {
|
|
512
|
-
return handleError(function(arg0, arg1) {
|
|
513
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
514
|
-
}, arguments);
|
|
515
|
-
};
|
|
516
511
|
imports.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1 = function(arg0) {
|
|
517
512
|
const ret = arg0.getRandomValues;
|
|
518
513
|
return ret;
|
|
519
514
|
};
|
|
520
|
-
imports.wbg.
|
|
515
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
|
|
521
516
|
return handleError(function(arg0, arg1) {
|
|
522
517
|
arg0.getRandomValues(arg1);
|
|
523
518
|
}, arguments);
|
|
@@ -610,7 +605,7 @@ function __wbg_get_imports() {
|
|
|
610
605
|
const ret = arg0.length;
|
|
611
606
|
return ret;
|
|
612
607
|
};
|
|
613
|
-
imports.wbg.
|
|
608
|
+
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
614
609
|
const ret = arg0.msCrypto;
|
|
615
610
|
return ret;
|
|
616
611
|
};
|
|
@@ -635,7 +630,7 @@ function __wbg_get_imports() {
|
|
|
635
630
|
const a = state0.a;
|
|
636
631
|
state0.a = 0;
|
|
637
632
|
try {
|
|
638
|
-
return
|
|
633
|
+
return __wbg_adapter_200(a, state0.b, arg02, arg12);
|
|
639
634
|
} finally {
|
|
640
635
|
state0.a = a;
|
|
641
636
|
}
|
|
@@ -696,7 +691,7 @@ function __wbg_get_imports() {
|
|
|
696
691
|
return ret;
|
|
697
692
|
}, arguments);
|
|
698
693
|
};
|
|
699
|
-
imports.wbg.
|
|
694
|
+
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
700
695
|
const ret = arg0.node;
|
|
701
696
|
return ret;
|
|
702
697
|
};
|
|
@@ -704,7 +699,7 @@ function __wbg_get_imports() {
|
|
|
704
699
|
const ret = arg0.now();
|
|
705
700
|
return ret;
|
|
706
701
|
};
|
|
707
|
-
imports.wbg.
|
|
702
|
+
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
708
703
|
const ret = arg0.process;
|
|
709
704
|
return ret;
|
|
710
705
|
};
|
|
@@ -722,7 +717,7 @@ function __wbg_get_imports() {
|
|
|
722
717
|
imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
|
|
723
718
|
arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
724
719
|
};
|
|
725
|
-
imports.wbg.
|
|
720
|
+
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
|
|
726
721
|
return handleError(function(arg0, arg1) {
|
|
727
722
|
arg0.randomFillSync(arg1);
|
|
728
723
|
}, arguments);
|
|
@@ -731,7 +726,7 @@ function __wbg_get_imports() {
|
|
|
731
726
|
const ret = arg0.require(getStringFromWasm0(arg1, arg2));
|
|
732
727
|
return ret;
|
|
733
728
|
};
|
|
734
|
-
imports.wbg.
|
|
729
|
+
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
|
|
735
730
|
return handleError(function() {
|
|
736
731
|
const ret = module.require;
|
|
737
732
|
return ret;
|
|
@@ -841,7 +836,7 @@ function __wbg_get_imports() {
|
|
|
841
836
|
const ret = arg0.value;
|
|
842
837
|
return ret;
|
|
843
838
|
};
|
|
844
|
-
imports.wbg.
|
|
839
|
+
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
845
840
|
const ret = arg0.versions;
|
|
846
841
|
return ret;
|
|
847
842
|
};
|
|
@@ -877,8 +872,8 @@ function __wbg_get_imports() {
|
|
|
877
872
|
const ret = false;
|
|
878
873
|
return ret;
|
|
879
874
|
};
|
|
880
|
-
imports.wbg.
|
|
881
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
875
|
+
imports.wbg.__wbindgen_closure_wrapper12039 = function(arg0, arg1, arg2) {
|
|
876
|
+
const ret = makeMutClosure(arg0, arg1, 4008, __wbg_adapter_54);
|
|
882
877
|
return ret;
|
|
883
878
|
};
|
|
884
879
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -1009,7 +1004,7 @@ var didkit_wasm_default = __wbg_init;
|
|
|
1009
1004
|
// src/didkit/index.ts
|
|
1010
1005
|
var initialized = false;
|
|
1011
1006
|
var generating = false;
|
|
1012
|
-
var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/
|
|
1007
|
+
var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/Vhyjqv0NTnmViw4TLmlj") => {
|
|
1013
1008
|
while (generating) await new Promise((res) => setTimeout(res, 250));
|
|
1014
1009
|
if (initialized) return;
|
|
1015
1010
|
try {
|