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