@learncard/core 8.5.5 → 9.0.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.
Files changed (70) hide show
  1. package/dist/core.cjs.development.js +843 -68975
  2. package/dist/core.cjs.development.js.map +4 -4
  3. package/dist/core.cjs.production.min.js +1 -948
  4. package/dist/core.cjs.production.min.js.map +4 -4
  5. package/dist/core.esm.js +1059 -69202
  6. package/dist/core.esm.js.map +4 -4
  7. package/dist/index.d.ts +0 -1
  8. package/dist/types/LearnCard.d.ts +0 -57
  9. package/dist/types/helpers.d.ts +0 -15
  10. package/dist/types/planes.d.ts +36 -5
  11. package/dist/types/utilities.d.ts +4 -0
  12. package/dist/wallet/plugins/index.d.ts +1 -13
  13. package/package.json +4 -24
  14. package/dist/didkit/didkit_wasm.d.ts +0 -251
  15. package/dist/didkit/didkit_wasm.js +0 -1135
  16. package/dist/didkit/didkit_wasm_bg.wasm +0 -0
  17. package/dist/didkit/didkit_wasm_bg.wasm.d.ts +0 -43
  18. package/dist/didkit/index.d.ts +0 -4
  19. package/dist/didkit_wasm.d.ts +0 -251
  20. package/dist/didkit_wasm.js +0 -1135
  21. package/dist/didkit_wasm_bg.wasm +0 -0
  22. package/dist/didkit_wasm_bg.wasm.d.ts +0 -43
  23. package/dist/wallet/defaults.d.ts +0 -5
  24. package/dist/wallet/init.d.ts +0 -29
  25. package/dist/wallet/initializers/apiLearnCard.d.ts +0 -14
  26. package/dist/wallet/initializers/customLearnCard.d.ts +0 -7
  27. package/dist/wallet/initializers/emptyLearnCard.d.ts +0 -7
  28. package/dist/wallet/initializers/learnCardFromSeed.d.ts +0 -7
  29. package/dist/wallet/plugins/EthereumPlugin/hardcodedTokens.d.ts +0 -22
  30. package/dist/wallet/plugins/EthereumPlugin/helpers.d.ts +0 -7
  31. package/dist/wallet/plugins/EthereumPlugin/index.d.ts +0 -7
  32. package/dist/wallet/plugins/EthereumPlugin/types.d.ts +0 -32
  33. package/dist/wallet/plugins/ceramic/ceramic.d.ts +0 -215
  34. package/dist/wallet/plugins/ceramic/helpers.d.ts +0 -3
  35. package/dist/wallet/plugins/ceramic/index.d.ts +0 -4
  36. package/dist/wallet/plugins/ceramic/types.d.ts +0 -43
  37. package/dist/wallet/plugins/chapi/chapi.d.ts +0 -5
  38. package/dist/wallet/plugins/chapi/index.d.ts +0 -2
  39. package/dist/wallet/plugins/chapi/types.d.ts +0 -88
  40. package/dist/wallet/plugins/didkey/helpers.d.ts +0 -4
  41. package/dist/wallet/plugins/didkey/index.d.ts +0 -217
  42. package/dist/wallet/plugins/didkey/types.d.ts +0 -18
  43. package/dist/wallet/plugins/didkit/index.d.ts +0 -8
  44. package/dist/wallet/plugins/didkit/types.d.ts +0 -40
  45. package/dist/wallet/plugins/expiration/index.d.ts +0 -7
  46. package/dist/wallet/plugins/expiration/types.d.ts +0 -3
  47. package/dist/wallet/plugins/idx/idx.d.ts +0 -6
  48. package/dist/wallet/plugins/idx/index.d.ts +0 -4
  49. package/dist/wallet/plugins/idx/types.d.ts +0 -54
  50. package/dist/wallet/plugins/learn-card/index.d.ts +0 -7
  51. package/dist/wallet/plugins/learn-card/types.d.ts +0 -17
  52. package/dist/wallet/plugins/learn-card/verify.d.ts +0 -215
  53. package/dist/wallet/plugins/vc/index.d.ts +0 -2
  54. package/dist/wallet/plugins/vc/issueCredential.d.ts +0 -98
  55. package/dist/wallet/plugins/vc/issuePresentation.d.ts +0 -220
  56. package/dist/wallet/plugins/vc/types.d.ts +0 -35
  57. package/dist/wallet/plugins/vc/vc.d.ts +0 -5
  58. package/dist/wallet/plugins/vc/verifyCredential.d.ts +0 -8
  59. package/dist/wallet/plugins/vc/verifyPresentation.d.ts +0 -8
  60. package/dist/wallet/plugins/vc-api/helpers.d.ts +0 -8
  61. package/dist/wallet/plugins/vc-api/index.d.ts +0 -8
  62. package/dist/wallet/plugins/vc-api/types.d.ts +0 -20
  63. package/dist/wallet/plugins/vc-resolution/index.d.ts +0 -6
  64. package/dist/wallet/plugins/vc-resolution/types.d.ts +0 -13
  65. package/dist/wallet/plugins/vc-templates/index.d.ts +0 -2
  66. package/dist/wallet/plugins/vc-templates/templates.d.ts +0 -6
  67. package/dist/wallet/plugins/vc-templates/types.d.ts +0 -68
  68. package/dist/wallet/plugins/vc-templates/vc-templates.d.ts +0 -5
  69. package/dist/wallet/plugins/vpqr/index.d.ts +0 -7
  70. package/dist/wallet/plugins/vpqr/types.d.ts +0 -12
Binary file
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export const memory: WebAssembly.Memory;
4
- export function getVersion(a: number): void;
5
- export function didResolver(a: number, b: number, c: number, d: number): number;
6
- export function resolveDID(a: number, b: number, c: number, d: number): number;
7
- export function generateEd25519Key(a: number): void;
8
- export function generateEd25519KeyFromBytes(a: number, b: number, c: number): void;
9
- export function generateSecp256k1Key(a: number): void;
10
- export function generateSecp256k1KeyFromBytes(a: number, b: number, c: number): void;
11
- export function keyToDID(a: number, b: number, c: number, d: number, e: number): void;
12
- export function keyToVerificationMethod(a: number, b: number, c: number, d: number): number;
13
- export function didToVerificationMethod(a: number, b: number): number;
14
- export function issueCredential(a: number, b: number, c: number, d: number, e: number, f: number): number;
15
- export function prepareIssueCredential(a: number, b: number, c: number, d: number, e: number, f: number): number;
16
- export function completeIssueCredential(a: number, b: number, c: number, d: number, e: number, f: number): number;
17
- export function verifyCredential(a: number, b: number, c: number, d: number): number;
18
- export function issuePresentation(a: number, b: number, c: number, d: number, e: number, f: number): number;
19
- export function prepareIssuePresentation(a: number, b: number, c: number, d: number, e: number, f: number): number;
20
- export function completeIssuePresentation(a: number, b: number, c: number, d: number, e: number, f: number): number;
21
- export function verifyPresentation(a: number, b: number, c: number, d: number): number;
22
- export function DIDAuth(a: number, b: number, c: number, d: number, e: number, f: number): number;
23
- export function JWKFromTezos(a: number, b: number): number;
24
- export function delegateCapability(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
25
- export function prepareDelegateCapability(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
26
- export function completeDelegateCapability(a: number, b: number, c: number, d: number, e: number, f: number): number;
27
- export function verifyDelegation(a: number, b: number): number;
28
- export function invokeCapability(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
29
- export function prepareInvokeCapability(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
30
- export function completeInvokeCapability(a: number, b: number, c: number, d: number, e: number, f: number): number;
31
- export function verifyInvocationSignature(a: number, b: number): number;
32
- export function verifyInvocation(a: number, b: number, c: number, d: number): number;
33
- export function contextLoader(a: number, b: number): number;
34
- export function didkit_error_message(): number;
35
- export function didkit_error_code(): number;
36
- export function __wbindgen_malloc(a: number): number;
37
- export function __wbindgen_realloc(a: number, b: number, c: number): number;
38
- export const __wbindgen_export_2: WebAssembly.Table;
39
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf6251ee6687a20b8(a: number, b: number, c: number): void;
40
- export function __wbindgen_add_to_stack_pointer(a: number): number;
41
- export function __wbindgen_free(a: number, b: number): void;
42
- export function __wbindgen_exn_store(a: number): void;
43
- export function wasm_bindgen__convert__closures__invoke2_mut__h63ffd509f6690aab(a: number, b: number, c: number, d: number): void;
@@ -1,4 +0,0 @@
1
- import { InitInput } from './pkg/didkit_wasm';
2
- export * from './pkg/didkit_wasm';
3
- export declare const init: (arg?: InitInput | Promise<InitInput>) => Promise<import("./pkg/didkit_wasm").InitOutput | undefined>;
4
- export default init;
@@ -1,251 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * @returns {string}
5
- */
6
- export function getVersion(): string;
7
- /**
8
- * @param {string} did
9
- * @param {string} input_metadata
10
- * @returns {Promise<any>}
11
- */
12
- export function didResolver(did: string, input_metadata: string): Promise<any>;
13
- /**
14
- * @param {string} did
15
- * @param {string} input_metadata
16
- * @returns {Promise<any>}
17
- */
18
- export function resolveDID(did: string, input_metadata: string): Promise<any>;
19
- /**
20
- * @returns {string}
21
- */
22
- export function generateEd25519Key(): string;
23
- /**
24
- * @param {Uint8Array} bytes
25
- * @returns {string}
26
- */
27
- export function generateEd25519KeyFromBytes(bytes: Uint8Array): string;
28
- /**
29
- * @returns {string}
30
- */
31
- export function generateSecp256k1Key(): string;
32
- /**
33
- * @param {Uint8Array} bytes
34
- * @returns {string}
35
- */
36
- export function generateSecp256k1KeyFromBytes(bytes: Uint8Array): string;
37
- /**
38
- * @param {string} method_pattern
39
- * @param {string} jwk
40
- * @returns {string}
41
- */
42
- export function keyToDID(method_pattern: string, jwk: string): string;
43
- /**
44
- * @param {string} method_pattern
45
- * @param {string} jwk
46
- * @returns {Promise<any>}
47
- */
48
- export function keyToVerificationMethod(method_pattern: string, jwk: string): Promise<any>;
49
- /**
50
- * @param {string} did
51
- * @returns {Promise<any>}
52
- */
53
- export function didToVerificationMethod(did: string): Promise<any>;
54
- /**
55
- * @param {string} credential
56
- * @param {string} proof_options
57
- * @param {string} key
58
- * @returns {Promise<any>}
59
- */
60
- export function issueCredential(credential: string, proof_options: string, key: string): Promise<any>;
61
- /**
62
- * @param {string} credential
63
- * @param {string} linked_data_proof_options
64
- * @param {string} public_key
65
- * @returns {Promise<any>}
66
- */
67
- export function prepareIssueCredential(credential: string, linked_data_proof_options: string, public_key: string): Promise<any>;
68
- /**
69
- * @param {string} credential
70
- * @param {string} preparation
71
- * @param {string} signature
72
- * @returns {Promise<any>}
73
- */
74
- export function completeIssueCredential(credential: string, preparation: string, signature: string): Promise<any>;
75
- /**
76
- * @param {string} vc
77
- * @param {string} proof_options
78
- * @returns {Promise<any>}
79
- */
80
- export function verifyCredential(vc: string, proof_options: string): Promise<any>;
81
- /**
82
- * @param {string} presentation
83
- * @param {string} proof_options
84
- * @param {string} key
85
- * @returns {Promise<any>}
86
- */
87
- export function issuePresentation(presentation: string, proof_options: string, key: string): Promise<any>;
88
- /**
89
- * @param {string} presentation
90
- * @param {string} linked_data_proof_options
91
- * @param {string} public_key
92
- * @returns {Promise<any>}
93
- */
94
- export function prepareIssuePresentation(presentation: string, linked_data_proof_options: string, public_key: string): Promise<any>;
95
- /**
96
- * @param {string} presentation
97
- * @param {string} preparation
98
- * @param {string} signature
99
- * @returns {Promise<any>}
100
- */
101
- export function completeIssuePresentation(presentation: string, preparation: string, signature: string): Promise<any>;
102
- /**
103
- * @param {string} vp
104
- * @param {string} proof_options
105
- * @returns {Promise<any>}
106
- */
107
- export function verifyPresentation(vp: string, proof_options: string): Promise<any>;
108
- /**
109
- * @param {string} holder
110
- * @param {string} linked_data_proof_options
111
- * @param {string} key
112
- * @returns {Promise<any>}
113
- */
114
- export function DIDAuth(holder: string, linked_data_proof_options: string, key: string): Promise<any>;
115
- /**
116
- * @param {string} tz
117
- * @returns {Promise<any>}
118
- */
119
- export function JWKFromTezos(tz: string): Promise<any>;
120
- /**
121
- * @param {string} capability
122
- * @param {string} linked_data_proof_options
123
- * @param {string} parents
124
- * @param {string} key
125
- * @returns {Promise<any>}
126
- */
127
- export function delegateCapability(capability: string, linked_data_proof_options: string, parents: string, key: string): Promise<any>;
128
- /**
129
- * @param {string} capability
130
- * @param {string} linked_data_proof_options
131
- * @param {string} parents
132
- * @param {string} public_key
133
- * @returns {Promise<any>}
134
- */
135
- export function prepareDelegateCapability(capability: string, linked_data_proof_options: string, parents: string, public_key: string): Promise<any>;
136
- /**
137
- * @param {string} capability
138
- * @param {string} preparation
139
- * @param {string} signature
140
- * @returns {Promise<any>}
141
- */
142
- export function completeDelegateCapability(capability: string, preparation: string, signature: string): Promise<any>;
143
- /**
144
- * @param {string} delegation
145
- * @returns {Promise<any>}
146
- */
147
- export function verifyDelegation(delegation: string): Promise<any>;
148
- /**
149
- * @param {string} invocation
150
- * @param {string} target_id
151
- * @param {string} linked_data_proof_options
152
- * @param {string} key
153
- * @returns {Promise<any>}
154
- */
155
- export function invokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, key: string): Promise<any>;
156
- /**
157
- * @param {string} invocation
158
- * @param {string} target_id
159
- * @param {string} linked_data_proof_options
160
- * @param {string} public_key
161
- * @returns {Promise<any>}
162
- */
163
- export function prepareInvokeCapability(invocation: string, target_id: string, linked_data_proof_options: string, public_key: string): Promise<any>;
164
- /**
165
- * @param {string} invocation
166
- * @param {string} preparation
167
- * @param {string} signature
168
- * @returns {Promise<any>}
169
- */
170
- export function completeInvokeCapability(invocation: string, preparation: string, signature: string): Promise<any>;
171
- /**
172
- * @param {string} invocation
173
- * @returns {Promise<any>}
174
- */
175
- export function verifyInvocationSignature(invocation: string): Promise<any>;
176
- /**
177
- * @param {string} invocation
178
- * @param {string} delegation
179
- * @returns {Promise<any>}
180
- */
181
- export function verifyInvocation(invocation: string, delegation: string): Promise<any>;
182
- /**
183
- * @param {string} url
184
- * @returns {Promise<any>}
185
- */
186
- export function contextLoader(url: string): Promise<any>;
187
-
188
- export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
189
-
190
- export interface InitOutput {
191
- readonly memory: WebAssembly.Memory;
192
- readonly getVersion: (a: number) => void;
193
- readonly didResolver: (a: number, b: number, c: number, d: number) => number;
194
- readonly resolveDID: (a: number, b: number, c: number, d: number) => number;
195
- readonly generateEd25519Key: (a: number) => void;
196
- readonly generateEd25519KeyFromBytes: (a: number, b: number, c: number) => void;
197
- readonly generateSecp256k1Key: (a: number) => void;
198
- readonly generateSecp256k1KeyFromBytes: (a: number, b: number, c: number) => void;
199
- readonly keyToDID: (a: number, b: number, c: number, d: number, e: number) => void;
200
- readonly keyToVerificationMethod: (a: number, b: number, c: number, d: number) => number;
201
- readonly didToVerificationMethod: (a: number, b: number) => number;
202
- readonly issueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
203
- readonly prepareIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
204
- readonly completeIssueCredential: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
205
- readonly verifyCredential: (a: number, b: number, c: number, d: number) => number;
206
- readonly issuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
207
- readonly prepareIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
208
- readonly completeIssuePresentation: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
209
- readonly verifyPresentation: (a: number, b: number, c: number, d: number) => number;
210
- readonly DIDAuth: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
211
- readonly JWKFromTezos: (a: number, b: number) => number;
212
- readonly delegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
213
- readonly prepareDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
214
- readonly completeDelegateCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
215
- readonly verifyDelegation: (a: number, b: number) => number;
216
- readonly invokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
217
- readonly prepareInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
218
- readonly completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
219
- readonly verifyInvocationSignature: (a: number, b: number) => number;
220
- readonly verifyInvocation: (a: number, b: number, c: number, d: number) => number;
221
- readonly contextLoader: (a: number, b: number) => number;
222
- readonly didkit_error_message: () => number;
223
- readonly didkit_error_code: () => number;
224
- readonly __wbindgen_malloc: (a: number) => number;
225
- readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
226
- readonly __wbindgen_export_2: WebAssembly.Table;
227
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf6251ee6687a20b8: (a: number, b: number, c: number) => void;
228
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
229
- readonly __wbindgen_free: (a: number, b: number) => void;
230
- readonly __wbindgen_exn_store: (a: number) => void;
231
- readonly wasm_bindgen__convert__closures__invoke2_mut__h63ffd509f6690aab: (a: number, b: number, c: number, d: number) => void;
232
- }
233
-
234
- /**
235
- * Synchronously compiles the given `bytes` and instantiates the WebAssembly module.
236
- *
237
- * @param {BufferSource} bytes
238
- *
239
- * @returns {InitOutput}
240
- */
241
- export function initSync(bytes: BufferSource): InitOutput;
242
-
243
- /**
244
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
245
- * for everything else, calls `WebAssembly.instantiate` directly.
246
- *
247
- * @param {InitInput | Promise<InitInput>} module_or_path
248
- *
249
- * @returns {Promise<InitOutput>}
250
- */
251
- export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;