@learncard/didkit-plugin 1.10.5 → 1.10.7
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 +44 -47
- package/dist/didkit/didkit_wasm.js +369 -321
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +44 -47
- package/dist/didkit/index.d.ts +1 -1
- package/dist/didkit-plugin.cjs.development.cjs +276 -248
- package/dist/didkit-plugin.cjs.development.cjs.map +2 -2
- package/dist/didkit-plugin.cjs.production.min.cjs +2 -2
- package/dist/didkit-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/didkit-plugin.esm.js +276 -248
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +44 -47
- package/dist/didkit_wasm.js +369 -321
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +44 -47
- package/package.json +3 -3
- package/src/didkit/index.ts +1 -1
- package/src/didkit/pkg/didkit_wasm.d.ts +44 -47
- package/src/didkit/pkg/didkit_wasm.js +369 -321
- package/src/didkit/pkg/didkit_wasm_bg.wasm +0 -0
- package/src/didkit/pkg/didkit_wasm_bg.wasm.d.ts +44 -47
package/dist/didkit_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,52 +1,49 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
5
|
-
export const JWKFromTezos: (a: number, b: number) => any;
|
|
6
|
-
export const clearCache: () => any;
|
|
7
|
-
export const completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
8
|
-
export const completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
9
|
-
export const completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
10
|
-
export const completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
11
|
-
export const contextLoader: (a: number, b: number) => any;
|
|
12
|
-
export const createDagJwe: (a: any, b: number, c: number) => any;
|
|
13
|
-
export const createJwe: (a: number, b: number, c: number, d: number) => any;
|
|
14
|
-
export const decryptDagJwe: (a: number, b: number, c: number, d: number) => any;
|
|
15
|
-
export const decryptJwe: (a: number, b: number, c: number, d: number) => any;
|
|
16
|
-
export const delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
17
|
-
export const didResolver: (a: number, b: number, c: number, d: number) => any;
|
|
18
|
-
export const didToVerificationMethod: (a: number, b: number) => any;
|
|
19
|
-
export const generateEd25519Key: () => [number, number, number, number];
|
|
20
|
-
export const generateEd25519KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
|
21
|
-
export const generateSecp256k1Key: () => [number, number, number, number];
|
|
22
|
-
export const generateSecp256k1KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
|
23
|
-
export const getVersion: () => [number, number];
|
|
24
|
-
export const invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
25
|
-
export const issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
26
|
-
export const issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
27
|
-
export const keyToDID: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
28
|
-
export const keyToVerificationMethod: (a: number, b: number, c: number, d: number) => any;
|
|
29
|
-
export const prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
30
|
-
export const prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
31
|
-
export const prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
32
|
-
export const prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
33
|
-
export const resolveDID: (a: number, b: number, c: number, d: number) => any;
|
|
34
|
-
export const verifyCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
35
|
-
export const verifyDelegation: (a: number, b: number) => any;
|
|
36
|
-
export const verifyInvocation: (a: number, b: number, c: number, d: number) => any;
|
|
37
|
-
export const verifyInvocationSignature: (a: number, b: number) => any;
|
|
38
|
-
export const verifyPresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
39
4
|
export const didkit_error_code: () => number;
|
|
40
5
|
export const didkit_error_message: () => number;
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
6
|
+
export const DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
7
|
+
export const JWKFromTezos: (a: number, b: number) => number;
|
|
8
|
+
export const clearCache: () => number;
|
|
9
|
+
export const completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
10
|
+
export const completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
11
|
+
export const completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
12
|
+
export const completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
13
|
+
export const contextLoader: (a: number, b: number) => number;
|
|
14
|
+
export const createDagJwe: (a: number, b: number, c: number) => number;
|
|
15
|
+
export const createJwe: (a: number, b: number, c: number, d: number) => number;
|
|
16
|
+
export const decryptDagJwe: (a: number, b: number, c: number, d: number) => number;
|
|
17
|
+
export const decryptJwe: (a: number, b: number, c: number, d: number) => number;
|
|
18
|
+
export const delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
19
|
+
export const didResolver: (a: number, b: number, c: number, d: number) => number;
|
|
20
|
+
export const didToVerificationMethod: (a: number, b: number) => number;
|
|
21
|
+
export const generateEd25519Key: (a: number) => void;
|
|
22
|
+
export const generateEd25519KeyFromBytes: (a: number, b: number, c: number) => void;
|
|
23
|
+
export const generateSecp256k1Key: (a: number) => void;
|
|
24
|
+
export const generateSecp256k1KeyFromBytes: (a: number, b: number, c: number) => void;
|
|
25
|
+
export const getVersion: (a: number) => void;
|
|
26
|
+
export const invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
27
|
+
export const issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
28
|
+
export const issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
29
|
+
export const keyToDID: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
30
|
+
export const keyToVerificationMethod: (a: number, b: number, c: number, d: number) => number;
|
|
31
|
+
export const prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
32
|
+
export const prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
33
|
+
export const prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
34
|
+
export const prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
35
|
+
export const resolveDID: (a: number, b: number, c: number, d: number) => number;
|
|
36
|
+
export const verifyCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
37
|
+
export const verifyDelegation: (a: number, b: number) => number;
|
|
38
|
+
export const verifyInvocation: (a: number, b: number, c: number, d: number) => number;
|
|
39
|
+
export const verifyInvocationSignature: (a: number, b: number) => number;
|
|
40
|
+
export const verifyPresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
41
|
+
export const __wbindgen_export_0: (a: number, b: number) => number;
|
|
42
|
+
export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|
|
43
|
+
export const __wbindgen_export_2: (a: number) => void;
|
|
44
|
+
export const __wbindgen_export_3: WebAssembly.Table;
|
|
45
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
46
|
+
export const __wbindgen_export_4: (a: number, b: number, c: number) => void;
|
|
47
|
+
export const __wbindgen_export_5: (a: number, b: number, c: number) => void;
|
|
48
|
+
export const __wbindgen_export_6: (a: number, b: number) => void;
|
|
49
|
+
export const __wbindgen_export_7: (a: number, b: number, c: number, d: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/didkit-plugin",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@learncard/core": "9.4.
|
|
60
|
-
"@learncard/types": "5.
|
|
59
|
+
"@learncard/core": "9.4.41",
|
|
60
|
+
"@learncard/types": "5.24.0"
|
|
61
61
|
},
|
|
62
62
|
"sideEffects": false
|
|
63
63
|
}
|
package/src/didkit/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from './pkg/didkit_wasm';
|
|
|
11
11
|
* how Prettier wraps the `init` signature. Do not inline it back into the parameter list.
|
|
12
12
|
*/
|
|
13
13
|
export const DEFAULT_DIDKIT_WASM_URL =
|
|
14
|
-
'https://assets.learncard.ai/didkit/sha256-
|
|
14
|
+
'https://assets.learncard.ai/didkit/sha256-ba3e2ec2208f6da57d94e47c332b3226f048e11d7a23093d50b184d849b6bc0b/didkit_wasm_bg.wasm';
|
|
15
15
|
|
|
16
16
|
let initialized = false;
|
|
17
17
|
let generating = false; // Mutex flag to allow first init call to acquire a lock
|
|
@@ -40,55 +40,52 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
40
40
|
|
|
41
41
|
export interface InitOutput {
|
|
42
42
|
readonly memory: WebAssembly.Memory;
|
|
43
|
-
readonly DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
44
|
-
readonly JWKFromTezos: (a: number, b: number) => any;
|
|
45
|
-
readonly clearCache: () => any;
|
|
46
|
-
readonly completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
47
|
-
readonly completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
48
|
-
readonly completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
49
|
-
readonly completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
50
|
-
readonly contextLoader: (a: number, b: number) => any;
|
|
51
|
-
readonly createDagJwe: (a: any, b: number, c: number) => any;
|
|
52
|
-
readonly createJwe: (a: number, b: number, c: number, d: number) => any;
|
|
53
|
-
readonly decryptDagJwe: (a: number, b: number, c: number, d: number) => any;
|
|
54
|
-
readonly decryptJwe: (a: number, b: number, c: number, d: number) => any;
|
|
55
|
-
readonly delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
56
|
-
readonly didResolver: (a: number, b: number, c: number, d: number) => any;
|
|
57
|
-
readonly didToVerificationMethod: (a: number, b: number) => any;
|
|
58
|
-
readonly generateEd25519Key: () => [number, number, number, number];
|
|
59
|
-
readonly generateEd25519KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
|
60
|
-
readonly generateSecp256k1Key: () => [number, number, number, number];
|
|
61
|
-
readonly generateSecp256k1KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
|
62
|
-
readonly getVersion: () => [number, number];
|
|
63
|
-
readonly invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
64
|
-
readonly issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
65
|
-
readonly issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
66
|
-
readonly keyToDID: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
67
|
-
readonly keyToVerificationMethod: (a: number, b: number, c: number, d: number) => any;
|
|
68
|
-
readonly prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
69
|
-
readonly prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
70
|
-
readonly prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
71
|
-
readonly prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
72
|
-
readonly resolveDID: (a: number, b: number, c: number, d: number) => any;
|
|
73
|
-
readonly verifyCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
74
|
-
readonly verifyDelegation: (a: number, b: number) => any;
|
|
75
|
-
readonly verifyInvocation: (a: number, b: number, c: number, d: number) => any;
|
|
76
|
-
readonly verifyInvocationSignature: (a: number, b: number) => any;
|
|
77
|
-
readonly verifyPresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
78
43
|
readonly didkit_error_code: () => number;
|
|
79
44
|
readonly didkit_error_message: () => number;
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
45
|
+
readonly DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
46
|
+
readonly JWKFromTezos: (a: number, b: number) => number;
|
|
47
|
+
readonly clearCache: () => number;
|
|
48
|
+
readonly completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
49
|
+
readonly completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
50
|
+
readonly completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
51
|
+
readonly completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
52
|
+
readonly contextLoader: (a: number, b: number) => number;
|
|
53
|
+
readonly createDagJwe: (a: number, b: number, c: number) => number;
|
|
54
|
+
readonly createJwe: (a: number, b: number, c: number, d: number) => number;
|
|
55
|
+
readonly decryptDagJwe: (a: number, b: number, c: number, d: number) => number;
|
|
56
|
+
readonly decryptJwe: (a: number, b: number, c: number, d: number) => number;
|
|
57
|
+
readonly delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
58
|
+
readonly didResolver: (a: number, b: number, c: number, d: number) => number;
|
|
59
|
+
readonly didToVerificationMethod: (a: number, b: number) => number;
|
|
60
|
+
readonly generateEd25519Key: (a: number) => void;
|
|
61
|
+
readonly generateEd25519KeyFromBytes: (a: number, b: number, c: number) => void;
|
|
62
|
+
readonly generateSecp256k1Key: (a: number) => void;
|
|
63
|
+
readonly generateSecp256k1KeyFromBytes: (a: number, b: number, c: number) => void;
|
|
64
|
+
readonly getVersion: (a: number) => void;
|
|
65
|
+
readonly invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
66
|
+
readonly issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
67
|
+
readonly issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
68
|
+
readonly keyToDID: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
69
|
+
readonly keyToVerificationMethod: (a: number, b: number, c: number, d: number) => number;
|
|
70
|
+
readonly prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
71
|
+
readonly prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
72
|
+
readonly prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
73
|
+
readonly prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
74
|
+
readonly resolveDID: (a: number, b: number, c: number, d: number) => number;
|
|
75
|
+
readonly verifyCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
76
|
+
readonly verifyDelegation: (a: number, b: number) => number;
|
|
77
|
+
readonly verifyInvocation: (a: number, b: number, c: number, d: number) => number;
|
|
78
|
+
readonly verifyInvocationSignature: (a: number, b: number) => number;
|
|
79
|
+
readonly verifyPresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
80
|
+
readonly __wbindgen_export_0: (a: number, b: number) => number;
|
|
81
|
+
readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|
|
82
|
+
readonly __wbindgen_export_2: (a: number) => void;
|
|
83
|
+
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
84
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
85
|
+
readonly __wbindgen_export_4: (a: number, b: number, c: number) => void;
|
|
86
|
+
readonly __wbindgen_export_5: (a: number, b: number, c: number) => void;
|
|
87
|
+
readonly __wbindgen_export_6: (a: number, b: number) => void;
|
|
88
|
+
readonly __wbindgen_export_7: (a: number, b: number, c: number, d: number) => void;
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|