@learncard/didkit-plugin 1.4.11 → 1.4.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/didkit/didkit_wasm.d.ts +135 -135
- package/dist/didkit/didkit_wasm.js +407 -393
- 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 +192 -152
- 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 +191 -152
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +135 -135
- package/dist/didkit_wasm.js +407 -393
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +2 -2
- package/package.json +3 -3
package/dist/didkit_wasm.d.ts
CHANGED
@@ -1,193 +1,193 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
3
|
/**
|
4
|
-
* @returns {string}
|
5
|
-
*/
|
4
|
+
* @returns {string}
|
5
|
+
*/
|
6
6
|
export function getVersion(): string;
|
7
7
|
/**
|
8
|
-
* @param {string} did
|
9
|
-
* @param {string} input_metadata
|
10
|
-
* @returns {Promise<any>}
|
11
|
-
*/
|
8
|
+
* @param {string} did
|
9
|
+
* @param {string} input_metadata
|
10
|
+
* @returns {Promise<any>}
|
11
|
+
*/
|
12
12
|
export function didResolver(did: string, input_metadata: string): Promise<any>;
|
13
13
|
/**
|
14
|
-
* @param {string} did
|
15
|
-
* @param {string} input_metadata
|
16
|
-
* @returns {Promise<any>}
|
17
|
-
*/
|
14
|
+
* @param {string} did
|
15
|
+
* @param {string} input_metadata
|
16
|
+
* @returns {Promise<any>}
|
17
|
+
*/
|
18
18
|
export function resolveDID(did: string, input_metadata: string): Promise<any>;
|
19
19
|
/**
|
20
|
-
* @returns {string}
|
21
|
-
*/
|
20
|
+
* @returns {string}
|
21
|
+
*/
|
22
22
|
export function generateEd25519Key(): string;
|
23
23
|
/**
|
24
|
-
* @param {Uint8Array} bytes
|
25
|
-
* @returns {string}
|
26
|
-
*/
|
24
|
+
* @param {Uint8Array} bytes
|
25
|
+
* @returns {string}
|
26
|
+
*/
|
27
27
|
export function generateEd25519KeyFromBytes(bytes: Uint8Array): string;
|
28
28
|
/**
|
29
|
-
* @returns {string}
|
30
|
-
*/
|
29
|
+
* @returns {string}
|
30
|
+
*/
|
31
31
|
export function generateSecp256k1Key(): string;
|
32
32
|
/**
|
33
|
-
* @param {Uint8Array} bytes
|
34
|
-
* @returns {string}
|
35
|
-
*/
|
33
|
+
* @param {Uint8Array} bytes
|
34
|
+
* @returns {string}
|
35
|
+
*/
|
36
36
|
export function generateSecp256k1KeyFromBytes(bytes: Uint8Array): string;
|
37
37
|
/**
|
38
|
-
* @param {string} method_pattern
|
39
|
-
* @param {string} jwk
|
40
|
-
* @returns {string}
|
41
|
-
*/
|
38
|
+
* @param {string} method_pattern
|
39
|
+
* @param {string} jwk
|
40
|
+
* @returns {string}
|
41
|
+
*/
|
42
42
|
export function keyToDID(method_pattern: string, jwk: string): string;
|
43
43
|
/**
|
44
|
-
* @param {string} method_pattern
|
45
|
-
* @param {string} jwk
|
46
|
-
* @returns {Promise<any>}
|
47
|
-
*/
|
44
|
+
* @param {string} method_pattern
|
45
|
+
* @param {string} jwk
|
46
|
+
* @returns {Promise<any>}
|
47
|
+
*/
|
48
48
|
export function keyToVerificationMethod(method_pattern: string, jwk: string): Promise<any>;
|
49
49
|
/**
|
50
|
-
* @param {string} did
|
51
|
-
* @returns {Promise<any>}
|
52
|
-
*/
|
50
|
+
* @param {string} did
|
51
|
+
* @returns {Promise<any>}
|
52
|
+
*/
|
53
53
|
export function didToVerificationMethod(did: string): Promise<any>;
|
54
54
|
/**
|
55
|
-
* @param {string} credential
|
56
|
-
* @param {string} proof_options
|
57
|
-
* @param {string} key
|
58
|
-
* @param {string} context_map
|
59
|
-
* @returns {Promise<any>}
|
60
|
-
*/
|
55
|
+
* @param {string} credential
|
56
|
+
* @param {string} proof_options
|
57
|
+
* @param {string} key
|
58
|
+
* @param {string} context_map
|
59
|
+
* @returns {Promise<any>}
|
60
|
+
*/
|
61
61
|
export function issueCredential(credential: string, proof_options: string, key: string, context_map: string): Promise<any>;
|
62
62
|
/**
|
63
|
-
* @param {string} credential
|
64
|
-
* @param {string} linked_data_proof_options
|
65
|
-
* @param {string} public_key
|
66
|
-
* @returns {Promise<any>}
|
67
|
-
*/
|
63
|
+
* @param {string} credential
|
64
|
+
* @param {string} linked_data_proof_options
|
65
|
+
* @param {string} public_key
|
66
|
+
* @returns {Promise<any>}
|
67
|
+
*/
|
68
68
|
export function prepareIssueCredential(credential: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
69
69
|
/**
|
70
|
-
* @param {string} credential
|
71
|
-
* @param {string} preparation
|
72
|
-
* @param {string} signature
|
73
|
-
* @returns {Promise<any>}
|
74
|
-
*/
|
70
|
+
* @param {string} credential
|
71
|
+
* @param {string} preparation
|
72
|
+
* @param {string} signature
|
73
|
+
* @returns {Promise<any>}
|
74
|
+
*/
|
75
75
|
export function completeIssueCredential(credential: string, preparation: string, signature: string): Promise<any>;
|
76
76
|
/**
|
77
|
-
* @param {string} vc
|
78
|
-
* @param {string} proof_options
|
79
|
-
* @param {string} context_map
|
80
|
-
* @returns {Promise<any>}
|
81
|
-
*/
|
77
|
+
* @param {string} vc
|
78
|
+
* @param {string} proof_options
|
79
|
+
* @param {string} context_map
|
80
|
+
* @returns {Promise<any>}
|
81
|
+
*/
|
82
82
|
export function verifyCredential(vc: string, proof_options: string, context_map: string): Promise<any>;
|
83
83
|
/**
|
84
|
-
* @param {string} presentation
|
85
|
-
* @param {string} proof_options
|
86
|
-
* @param {string} key
|
87
|
-
* @param {string} context_map
|
88
|
-
* @returns {Promise<any>}
|
89
|
-
*/
|
84
|
+
* @param {string} presentation
|
85
|
+
* @param {string} proof_options
|
86
|
+
* @param {string} key
|
87
|
+
* @param {string} context_map
|
88
|
+
* @returns {Promise<any>}
|
89
|
+
*/
|
90
90
|
export function issuePresentation(presentation: string, proof_options: string, key: string, context_map: string): Promise<any>;
|
91
91
|
/**
|
92
|
-
* @param {string} presentation
|
93
|
-
* @param {string} linked_data_proof_options
|
94
|
-
* @param {string} public_key
|
95
|
-
* @returns {Promise<any>}
|
96
|
-
*/
|
92
|
+
* @param {string} presentation
|
93
|
+
* @param {string} linked_data_proof_options
|
94
|
+
* @param {string} public_key
|
95
|
+
* @returns {Promise<any>}
|
96
|
+
*/
|
97
97
|
export function prepareIssuePresentation(presentation: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
98
98
|
/**
|
99
|
-
* @param {string} presentation
|
100
|
-
* @param {string} preparation
|
101
|
-
* @param {string} signature
|
102
|
-
* @returns {Promise<any>}
|
103
|
-
*/
|
99
|
+
* @param {string} presentation
|
100
|
+
* @param {string} preparation
|
101
|
+
* @param {string} signature
|
102
|
+
* @returns {Promise<any>}
|
103
|
+
*/
|
104
104
|
export function completeIssuePresentation(presentation: string, preparation: string, signature: string): Promise<any>;
|
105
105
|
/**
|
106
|
-
* @param {string} vp
|
107
|
-
* @param {string} proof_options
|
108
|
-
* @param {string} context_map
|
109
|
-
* @returns {Promise<any>}
|
110
|
-
*/
|
106
|
+
* @param {string} vp
|
107
|
+
* @param {string} proof_options
|
108
|
+
* @param {string} context_map
|
109
|
+
* @returns {Promise<any>}
|
110
|
+
*/
|
111
111
|
export function verifyPresentation(vp: string, proof_options: string, context_map: string): Promise<any>;
|
112
112
|
/**
|
113
|
-
* @param {string} holder
|
114
|
-
* @param {string} linked_data_proof_options
|
115
|
-
* @param {string} key
|
116
|
-
* @param {string} context_map
|
117
|
-
* @returns {Promise<any>}
|
118
|
-
*/
|
113
|
+
* @param {string} holder
|
114
|
+
* @param {string} linked_data_proof_options
|
115
|
+
* @param {string} key
|
116
|
+
* @param {string} context_map
|
117
|
+
* @returns {Promise<any>}
|
118
|
+
*/
|
119
119
|
export function DIDAuth(holder: string, linked_data_proof_options: string, key: string, context_map: string): Promise<any>;
|
120
120
|
/**
|
121
|
-
* @param {string} tz
|
122
|
-
* @returns {Promise<any>}
|
123
|
-
*/
|
121
|
+
* @param {string} tz
|
122
|
+
* @returns {Promise<any>}
|
123
|
+
*/
|
124
124
|
export function JWKFromTezos(tz: string): Promise<any>;
|
125
125
|
/**
|
126
|
-
* @param {string} capability
|
127
|
-
* @param {string} linked_data_proof_options
|
128
|
-
* @param {string} parents
|
129
|
-
* @param {string} key
|
130
|
-
* @returns {Promise<any>}
|
131
|
-
*/
|
126
|
+
* @param {string} capability
|
127
|
+
* @param {string} linked_data_proof_options
|
128
|
+
* @param {string} parents
|
129
|
+
* @param {string} key
|
130
|
+
* @returns {Promise<any>}
|
131
|
+
*/
|
132
132
|
export function delegateCapability(capability: string, linked_data_proof_options: string, parents: string, key: string): Promise<any>;
|
133
133
|
/**
|
134
|
-
* @param {string} capability
|
135
|
-
* @param {string} linked_data_proof_options
|
136
|
-
* @param {string} parents
|
137
|
-
* @param {string} public_key
|
138
|
-
* @returns {Promise<any>}
|
139
|
-
*/
|
134
|
+
* @param {string} capability
|
135
|
+
* @param {string} linked_data_proof_options
|
136
|
+
* @param {string} parents
|
137
|
+
* @param {string} public_key
|
138
|
+
* @returns {Promise<any>}
|
139
|
+
*/
|
140
140
|
export function prepareDelegateCapability(capability: string, linked_data_proof_options: string, parents: string, public_key: string): Promise<any>;
|
141
141
|
/**
|
142
|
-
* @param {string} capability
|
143
|
-
* @param {string} preparation
|
144
|
-
* @param {string} signature
|
145
|
-
* @returns {Promise<any>}
|
146
|
-
*/
|
142
|
+
* @param {string} capability
|
143
|
+
* @param {string} preparation
|
144
|
+
* @param {string} signature
|
145
|
+
* @returns {Promise<any>}
|
146
|
+
*/
|
147
147
|
export function completeDelegateCapability(capability: string, preparation: string, signature: string): Promise<any>;
|
148
148
|
/**
|
149
|
-
* @param {string} delegation
|
150
|
-
* @returns {Promise<any>}
|
151
|
-
*/
|
149
|
+
* @param {string} delegation
|
150
|
+
* @returns {Promise<any>}
|
151
|
+
*/
|
152
152
|
export function verifyDelegation(delegation: string): Promise<any>;
|
153
153
|
/**
|
154
|
-
* @param {string} invocation
|
155
|
-
* @param {string} target_id
|
156
|
-
* @param {string} linked_data_proof_options
|
157
|
-
* @param {string} key
|
158
|
-
* @returns {Promise<any>}
|
159
|
-
*/
|
154
|
+
* @param {string} invocation
|
155
|
+
* @param {string} target_id
|
156
|
+
* @param {string} linked_data_proof_options
|
157
|
+
* @param {string} key
|
158
|
+
* @returns {Promise<any>}
|
159
|
+
*/
|
160
160
|
export function invokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, key: string): Promise<any>;
|
161
161
|
/**
|
162
|
-
* @param {string} invocation
|
163
|
-
* @param {string} target_id
|
164
|
-
* @param {string} linked_data_proof_options
|
165
|
-
* @param {string} public_key
|
166
|
-
* @returns {Promise<any>}
|
167
|
-
*/
|
162
|
+
* @param {string} invocation
|
163
|
+
* @param {string} target_id
|
164
|
+
* @param {string} linked_data_proof_options
|
165
|
+
* @param {string} public_key
|
166
|
+
* @returns {Promise<any>}
|
167
|
+
*/
|
168
168
|
export function prepareInvokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, public_key: string): Promise<any>;
|
169
169
|
/**
|
170
|
-
* @param {string} invocation
|
171
|
-
* @param {string} preparation
|
172
|
-
* @param {string} signature
|
173
|
-
* @returns {Promise<any>}
|
174
|
-
*/
|
170
|
+
* @param {string} invocation
|
171
|
+
* @param {string} preparation
|
172
|
+
* @param {string} signature
|
173
|
+
* @returns {Promise<any>}
|
174
|
+
*/
|
175
175
|
export function completeInvokeCapability(invocation: string, preparation: string, signature: string): Promise<any>;
|
176
176
|
/**
|
177
|
-
* @param {string} invocation
|
178
|
-
* @returns {Promise<any>}
|
179
|
-
*/
|
177
|
+
* @param {string} invocation
|
178
|
+
* @returns {Promise<any>}
|
179
|
+
*/
|
180
180
|
export function verifyInvocationSignature(invocation: string): Promise<any>;
|
181
181
|
/**
|
182
|
-
* @param {string} invocation
|
183
|
-
* @param {string} delegation
|
184
|
-
* @returns {Promise<any>}
|
185
|
-
*/
|
182
|
+
* @param {string} invocation
|
183
|
+
* @param {string} delegation
|
184
|
+
* @returns {Promise<any>}
|
185
|
+
*/
|
186
186
|
export function verifyInvocation(invocation: string, delegation: string): Promise<any>;
|
187
187
|
/**
|
188
|
-
* @param {string} url
|
189
|
-
* @returns {Promise<any>}
|
190
|
-
*/
|
188
|
+
* @param {string} url
|
189
|
+
* @returns {Promise<any>}
|
190
|
+
*/
|
191
191
|
export function contextLoader(url: string): Promise<any>;
|
192
192
|
|
193
193
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
@@ -229,11 +229,11 @@ export interface InitOutput {
|
|
229
229
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
230
230
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
231
231
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
232
|
-
readonly
|
232
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfea49efa319d6a8: (a: number, b: number, c: number) => void;
|
233
233
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
234
234
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
235
235
|
readonly __wbindgen_exn_store: (a: number) => void;
|
236
|
-
readonly
|
236
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h7f21b3df1bf974ab: (a: number, b: number, c: number, d: number) => void;
|
237
237
|
}
|
238
238
|
|
239
239
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
@@ -241,18 +241,18 @@ export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
241
241
|
* Instantiates the given `module`, which can either be bytes or
|
242
242
|
* a precompiled `WebAssembly.Module`.
|
243
243
|
*
|
244
|
-
* @param {SyncInitInput} module
|
244
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
245
245
|
*
|
246
246
|
* @returns {InitOutput}
|
247
247
|
*/
|
248
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
248
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
249
249
|
|
250
250
|
/**
|
251
251
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
252
252
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
253
253
|
*
|
254
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
254
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
255
255
|
*
|
256
256
|
* @returns {Promise<InitOutput>}
|
257
257
|
*/
|
258
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
258
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|