@learncard/core 3.0.0 → 5.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.
@@ -168,6 +168,11 @@ export function verifyInvocationSignature(invocation: string): Promise<any>;
168
168
  * @returns {Promise<any>}
169
169
  */
170
170
  export function verifyInvocation(invocation: string, delegation: string): Promise<any>;
171
+ /**
172
+ * @param {string} url
173
+ * @returns {Promise<any>}
174
+ */
175
+ export function contextLoader(url: string): Promise<any>;
171
176
 
172
177
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
173
178
 
@@ -200,6 +205,7 @@ export interface InitOutput {
200
205
  readonly completeInvokeCapability: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
201
206
  readonly verifyInvocationSignature: (a: number, b: number) => number;
202
207
  readonly verifyInvocation: (a: number, b: number, c: number, d: number) => number;
208
+ readonly contextLoader: (a: number, b: number) => number;
203
209
  readonly didkit_error_message: () => number;
204
210
  readonly didkit_error_code: () => number;
205
211
  readonly SHA1DCUpdate: (a: number, b: number, c: number) => void;
@@ -215,13 +221,22 @@ export interface InitOutput {
215
221
  readonly __wbindgen_malloc: (a: number) => number;
216
222
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
217
223
  readonly __wbindgen_export_2: WebAssembly.Table;
218
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91a8814f66f14b17: (a: number, b: number, c: number) => void;
224
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h47a829c6210a1ab1: (a: number, b: number, c: number) => void;
219
225
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
220
226
  readonly __wbindgen_free: (a: number, b: number) => void;
221
227
  readonly __wbindgen_exn_store: (a: number) => void;
222
- readonly wasm_bindgen__convert__closures__invoke2_mut__h3ecfeb7a01c1be81: (a: number, b: number, c: number, d: number) => void;
228
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h68d8a804a96909b8: (a: number, b: number, c: number, d: number) => void;
223
229
  }
224
230
 
231
+ /**
232
+ * Synchronously compiles the given `bytes` and instantiates the WebAssembly module.
233
+ *
234
+ * @param {BufferSource} bytes
235
+ *
236
+ * @returns {InitOutput}
237
+ */
238
+ export function initSync(bytes: BufferSource): InitOutput;
239
+
225
240
  /**
226
241
  * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
227
242
  * for everything else, calls `WebAssembly.instantiate` directly.