@learncard/didkit-plugin 1.4.22 → 1.5.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 +47 -198
- package/dist/didkit/didkit_wasm.js +552 -411
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +47 -40
- package/dist/didkit-plugin.cjs.development.js +525 -390
- 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 +525 -390
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +47 -198
- package/dist/didkit_wasm.js +552 -411
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +47 -40
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +11 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/didkit_wasm.d.ts
CHANGED
@@ -1,244 +1,93 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
|
-
/**
|
4
|
-
* @returns {string}
|
5
|
-
*/
|
6
3
|
export function getVersion(): string;
|
7
|
-
/**
|
8
|
-
* @returns {Promise<any>}
|
9
|
-
*/
|
10
4
|
export function clearCache(): Promise<any>;
|
11
|
-
/**
|
12
|
-
* @param {string} did
|
13
|
-
* @param {string} input_metadata
|
14
|
-
* @returns {Promise<any>}
|
15
|
-
*/
|
16
5
|
export function didResolver(did: string, input_metadata: string): Promise<any>;
|
17
|
-
/**
|
18
|
-
* @param {string} did
|
19
|
-
* @param {string} input_metadata
|
20
|
-
* @returns {Promise<any>}
|
21
|
-
*/
|
22
6
|
export function resolveDID(did: string, input_metadata: string): Promise<any>;
|
23
|
-
/**
|
24
|
-
* @returns {string}
|
25
|
-
*/
|
26
7
|
export function generateEd25519Key(): string;
|
27
|
-
/**
|
28
|
-
* @param {Uint8Array} bytes
|
29
|
-
* @returns {string}
|
30
|
-
*/
|
31
8
|
export function generateEd25519KeyFromBytes(bytes: Uint8Array): string;
|
32
|
-
/**
|
33
|
-
* @returns {string}
|
34
|
-
*/
|
35
9
|
export function generateSecp256k1Key(): string;
|
36
|
-
/**
|
37
|
-
* @param {Uint8Array} bytes
|
38
|
-
* @returns {string}
|
39
|
-
*/
|
40
10
|
export function generateSecp256k1KeyFromBytes(bytes: Uint8Array): string;
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
*/
|
11
|
+
export function createJwe(cleartext: string, recipients: string[]): Promise<any>;
|
12
|
+
export function decryptJwe(jwe: string, jwks: string[]): Promise<any>;
|
13
|
+
export function createDagJwe(cleartext: any, recipients: string[]): Promise<any>;
|
14
|
+
export function decryptDagJwe(jwe: string, jwks: string[]): Promise<any>;
|
46
15
|
export function keyToDID(method_pattern: string, jwk: string): string;
|
47
|
-
/**
|
48
|
-
* @param {string} method_pattern
|
49
|
-
* @param {string} jwk
|
50
|
-
* @returns {Promise<any>}
|
51
|
-
*/
|
52
16
|
export function keyToVerificationMethod(method_pattern: string, jwk: string): Promise<any>;
|
53
|
-
/**
|
54
|
-
* @param {string} did
|
55
|
-
* @returns {Promise<any>}
|
56
|
-
*/
|
57
17
|
export function didToVerificationMethod(did: string): Promise<any>;
|
58
|
-
/**
|
59
|
-
* @param {string} credential
|
60
|
-
* @param {string} proof_options
|
61
|
-
* @param {string} key
|
62
|
-
* @param {string} context_map
|
63
|
-
* @returns {Promise<any>}
|
64
|
-
*/
|
65
18
|
export function issueCredential(credential: string, proof_options: string, key: string, context_map: string): Promise<any>;
|
66
|
-
/**
|
67
|
-
* @param {string} credential
|
68
|
-
* @param {string} linked_data_proof_options
|
69
|
-
* @param {string} public_key
|
70
|
-
* @returns {Promise<any>}
|
71
|
-
*/
|
72
19
|
export function prepareIssueCredential(credential: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
73
|
-
/**
|
74
|
-
* @param {string} credential
|
75
|
-
* @param {string} preparation
|
76
|
-
* @param {string} signature
|
77
|
-
* @returns {Promise<any>}
|
78
|
-
*/
|
79
20
|
export function completeIssueCredential(credential: string, preparation: string, signature: string): Promise<any>;
|
80
|
-
/**
|
81
|
-
* @param {string} vc
|
82
|
-
* @param {string} proof_options
|
83
|
-
* @param {string} context_map
|
84
|
-
* @returns {Promise<any>}
|
85
|
-
*/
|
86
21
|
export function verifyCredential(vc: string, proof_options: string, context_map: string): Promise<any>;
|
87
|
-
/**
|
88
|
-
* @param {string} presentation
|
89
|
-
* @param {string} proof_options
|
90
|
-
* @param {string} key
|
91
|
-
* @param {string} context_map
|
92
|
-
* @returns {Promise<any>}
|
93
|
-
*/
|
94
22
|
export function issuePresentation(presentation: string, proof_options: string, key: string, context_map: string): Promise<any>;
|
95
|
-
/**
|
96
|
-
* @param {string} presentation
|
97
|
-
* @param {string} linked_data_proof_options
|
98
|
-
* @param {string} public_key
|
99
|
-
* @returns {Promise<any>}
|
100
|
-
*/
|
101
23
|
export function prepareIssuePresentation(presentation: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
102
|
-
/**
|
103
|
-
* @param {string} presentation
|
104
|
-
* @param {string} preparation
|
105
|
-
* @param {string} signature
|
106
|
-
* @returns {Promise<any>}
|
107
|
-
*/
|
108
24
|
export function completeIssuePresentation(presentation: string, preparation: string, signature: string): Promise<any>;
|
109
|
-
/**
|
110
|
-
* @param {string} vp
|
111
|
-
* @param {string} proof_options
|
112
|
-
* @param {string} context_map
|
113
|
-
* @returns {Promise<any>}
|
114
|
-
*/
|
115
25
|
export function verifyPresentation(vp: string, proof_options: string, context_map: string): Promise<any>;
|
116
|
-
/**
|
117
|
-
* @param {string} holder
|
118
|
-
* @param {string} linked_data_proof_options
|
119
|
-
* @param {string} key
|
120
|
-
* @param {string} context_map
|
121
|
-
* @returns {Promise<any>}
|
122
|
-
*/
|
123
26
|
export function DIDAuth(holder: string, linked_data_proof_options: string, key: string, context_map: string): Promise<any>;
|
124
|
-
/**
|
125
|
-
* @param {string} tz
|
126
|
-
* @returns {Promise<any>}
|
127
|
-
*/
|
128
27
|
export function JWKFromTezos(tz: string): Promise<any>;
|
129
|
-
/**
|
130
|
-
* @param {string} capability
|
131
|
-
* @param {string} linked_data_proof_options
|
132
|
-
* @param {string} parents
|
133
|
-
* @param {string} key
|
134
|
-
* @returns {Promise<any>}
|
135
|
-
*/
|
136
28
|
export function delegateCapability(capability: string, linked_data_proof_options: string, parents: string, key: string): Promise<any>;
|
137
|
-
/**
|
138
|
-
* @param {string} capability
|
139
|
-
* @param {string} linked_data_proof_options
|
140
|
-
* @param {string} parents
|
141
|
-
* @param {string} public_key
|
142
|
-
* @returns {Promise<any>}
|
143
|
-
*/
|
144
29
|
export function prepareDelegateCapability(capability: string, linked_data_proof_options: string, parents: string, public_key: string): Promise<any>;
|
145
|
-
/**
|
146
|
-
* @param {string} capability
|
147
|
-
* @param {string} preparation
|
148
|
-
* @param {string} signature
|
149
|
-
* @returns {Promise<any>}
|
150
|
-
*/
|
151
30
|
export function completeDelegateCapability(capability: string, preparation: string, signature: string): Promise<any>;
|
152
|
-
/**
|
153
|
-
* @param {string} delegation
|
154
|
-
* @returns {Promise<any>}
|
155
|
-
*/
|
156
31
|
export function verifyDelegation(delegation: string): Promise<any>;
|
157
|
-
/**
|
158
|
-
* @param {string} invocation
|
159
|
-
* @param {string} target_id
|
160
|
-
* @param {string} linked_data_proof_options
|
161
|
-
* @param {string} key
|
162
|
-
* @returns {Promise<any>}
|
163
|
-
*/
|
164
32
|
export function invokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, key: string): Promise<any>;
|
165
|
-
/**
|
166
|
-
* @param {string} invocation
|
167
|
-
* @param {string} target_id
|
168
|
-
* @param {string} linked_data_proof_options
|
169
|
-
* @param {string} public_key
|
170
|
-
* @returns {Promise<any>}
|
171
|
-
*/
|
172
33
|
export function prepareInvokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
173
|
-
/**
|
174
|
-
* @param {string} invocation
|
175
|
-
* @param {string} preparation
|
176
|
-
* @param {string} signature
|
177
|
-
* @returns {Promise<any>}
|
178
|
-
*/
|
179
34
|
export function completeInvokeCapability(invocation: string, preparation: string, signature: string): Promise<any>;
|
180
|
-
/**
|
181
|
-
* @param {string} invocation
|
182
|
-
* @returns {Promise<any>}
|
183
|
-
*/
|
184
35
|
export function verifyInvocationSignature(invocation: string): Promise<any>;
|
185
|
-
/**
|
186
|
-
* @param {string} invocation
|
187
|
-
* @param {string} delegation
|
188
|
-
* @returns {Promise<any>}
|
189
|
-
*/
|
190
36
|
export function verifyInvocation(invocation: string, delegation: string): Promise<any>;
|
191
|
-
/**
|
192
|
-
* @param {string} url
|
193
|
-
* @returns {Promise<any>}
|
194
|
-
*/
|
195
37
|
export function contextLoader(url: string): Promise<any>;
|
196
38
|
|
197
39
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
198
40
|
|
199
41
|
export interface InitOutput {
|
200
42
|
readonly memory: WebAssembly.Memory;
|
201
|
-
readonly getVersion: (
|
202
|
-
readonly clearCache: () =>
|
203
|
-
readonly didResolver: (a: number, b: number, c: number, d: number) =>
|
204
|
-
readonly resolveDID: (a: number, b: number, c: number, d: number) =>
|
205
|
-
readonly generateEd25519Key: (
|
206
|
-
readonly generateEd25519KeyFromBytes: (a: number, b: number,
|
207
|
-
readonly generateSecp256k1Key: (
|
208
|
-
readonly generateSecp256k1KeyFromBytes: (a: number, b: number,
|
209
|
-
readonly
|
210
|
-
readonly
|
211
|
-
readonly
|
212
|
-
readonly
|
213
|
-
readonly
|
214
|
-
readonly
|
215
|
-
readonly
|
216
|
-
readonly
|
217
|
-
readonly
|
218
|
-
readonly
|
219
|
-
readonly
|
220
|
-
readonly
|
221
|
-
readonly
|
222
|
-
readonly
|
223
|
-
readonly
|
224
|
-
readonly
|
225
|
-
readonly
|
226
|
-
readonly
|
227
|
-
readonly
|
228
|
-
readonly
|
229
|
-
readonly
|
230
|
-
readonly
|
231
|
-
readonly
|
43
|
+
readonly getVersion: () => [number, number];
|
44
|
+
readonly clearCache: () => any;
|
45
|
+
readonly didResolver: (a: number, b: number, c: number, d: number) => any;
|
46
|
+
readonly resolveDID: (a: number, b: number, c: number, d: number) => any;
|
47
|
+
readonly generateEd25519Key: () => [number, number, number, number];
|
48
|
+
readonly generateEd25519KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
49
|
+
readonly generateSecp256k1Key: () => [number, number, number, number];
|
50
|
+
readonly generateSecp256k1KeyFromBytes: (a: number, b: number) => [number, number, number, number];
|
51
|
+
readonly createJwe: (a: number, b: number, c: number, d: number) => any;
|
52
|
+
readonly decryptJwe: (a: number, b: number, c: number, d: number) => any;
|
53
|
+
readonly createDagJwe: (a: any, b: number, c: number) => any;
|
54
|
+
readonly decryptDagJwe: (a: number, b: number, c: number, d: number) => any;
|
55
|
+
readonly keyToDID: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
56
|
+
readonly keyToVerificationMethod: (a: number, b: number, c: number, d: number) => any;
|
57
|
+
readonly didToVerificationMethod: (a: number, b: number) => any;
|
58
|
+
readonly issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
59
|
+
readonly prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
60
|
+
readonly completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
61
|
+
readonly verifyCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
62
|
+
readonly issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
63
|
+
readonly prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
64
|
+
readonly completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
65
|
+
readonly verifyPresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
66
|
+
readonly DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
67
|
+
readonly JWKFromTezos: (a: number, b: number) => any;
|
68
|
+
readonly delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
69
|
+
readonly prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
70
|
+
readonly completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
71
|
+
readonly verifyDelegation: (a: number, b: number) => any;
|
72
|
+
readonly invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
73
|
+
readonly prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
74
|
+
readonly completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
75
|
+
readonly verifyInvocationSignature: (a: number, b: number) => any;
|
76
|
+
readonly verifyInvocation: (a: number, b: number, c: number, d: number) => any;
|
77
|
+
readonly contextLoader: (a: number, b: number) => any;
|
232
78
|
readonly didkit_error_message: () => number;
|
233
79
|
readonly didkit_error_code: () => number;
|
80
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
81
|
+
readonly __externref_table_alloc: () => number;
|
82
|
+
readonly __wbindgen_export_2: WebAssembly.Table;
|
234
83
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
235
84
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
236
|
-
readonly
|
237
|
-
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfea49efa319d6a8: (a: number, b: number, c: number) => void;
|
238
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
85
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
239
86
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
240
|
-
readonly
|
241
|
-
readonly
|
87
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
88
|
+
readonly closure4125_externref_shim: (a: number, b: number, c: any) => void;
|
89
|
+
readonly closure4526_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
90
|
+
readonly __wbindgen_start: () => void;
|
242
91
|
}
|
243
92
|
|
244
93
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|