@learncard/core 3.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -28,6 +28,7 @@ export function prepareInvokeCapability(a: number, b: number, c: number, d: numb
28
28
  export function completeInvokeCapability(a: number, b: number, c: number, d: number, e: number, f: number): number;
29
29
  export function verifyInvocationSignature(a: number, b: number): number;
30
30
  export function verifyInvocation(a: number, b: number, c: number, d: number): number;
31
+ export function contextLoader(a: number, b: number): number;
31
32
  export function didkit_error_message(): number;
32
33
  export function didkit_error_code(): number;
33
34
  export function SHA1DCUpdate(a: number, b: number, c: number): void;
@@ -43,8 +44,8 @@ export function SHA1DCFinal(a: number, b: number): number;
43
44
  export function __wbindgen_malloc(a: number): number;
44
45
  export function __wbindgen_realloc(a: number, b: number, c: number): number;
45
46
  export const __wbindgen_export_2: WebAssembly.Table;
46
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91a8814f66f14b17(a: number, b: number, c: number): void;
47
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h47a829c6210a1ab1(a: number, b: number, c: number): void;
47
48
  export function __wbindgen_add_to_stack_pointer(a: number): number;
48
49
  export function __wbindgen_free(a: number, b: number): void;
49
50
  export function __wbindgen_exn_store(a: number): void;
50
- export function wasm_bindgen__convert__closures__invoke2_mut__h3ecfeb7a01c1be81(a: number, b: number, c: number, d: number): void;
51
+ export function wasm_bindgen__convert__closures__invoke2_mut__h68d8a804a96909b8(a: number, b: number, c: number, d: number): void;
@@ -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.