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