@typeberry/native 0.0.1-0330ab3 → 0.0.1-6e4ec82
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/6cfc4680c1b51f91.wasm +0 -0
- package/d8c79d763f7586dd.wasm +0 -0
- package/index.d.ts +35 -1
- package/index.js +75 -37
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare function verify_seal(keys: Uint8Array, signer_key_index: number, seal_da
|
|
|
41
41
|
*/
|
|
42
42
|
declare function batch_verify_tickets(keys: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
|
|
43
43
|
declare namespace ed25519_wasm_d_exports {
|
|
44
|
-
export { verify_ed25519, verify_ed25519_batch };
|
|
44
|
+
export { InitInput, InitOutput, SyncInitInput, __wbg_init as default, initSync, verify_ed25519, verify_ed25519_batch };
|
|
45
45
|
}
|
|
46
46
|
/* tslint:disable */
|
|
47
47
|
/* eslint-disable */
|
|
@@ -62,6 +62,40 @@ declare function verify_ed25519(data: Uint8Array): Uint8Array;
|
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
64
|
declare function verify_ed25519_batch(data: Uint8Array): boolean;
|
|
65
|
+
type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
66
|
+
interface InitOutput {
|
|
67
|
+
readonly memory: WebAssembly.Memory;
|
|
68
|
+
readonly verify_ed25519: (a: number, b: number) => [number, number];
|
|
69
|
+
readonly verify_ed25519_batch: (a: number, b: number) => number;
|
|
70
|
+
readonly __wbindgen_export_0: WebAssembly.Table;
|
|
71
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
72
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
73
|
+
readonly __wbindgen_start: () => void;
|
|
74
|
+
}
|
|
75
|
+
type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
76
|
+
/**
|
|
77
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
78
|
+
* a precompiled `WebAssembly.Module`.
|
|
79
|
+
*
|
|
80
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
81
|
+
*
|
|
82
|
+
* @returns {InitOutput}
|
|
83
|
+
*/
|
|
84
|
+
declare function initSync(module: {
|
|
85
|
+
module: SyncInitInput;
|
|
86
|
+
} | SyncInitInput): InitOutput;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
90
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
91
|
+
*
|
|
92
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
93
|
+
*
|
|
94
|
+
* @returns {Promise<InitOutput>}
|
|
95
|
+
*/
|
|
96
|
+
declare function __wbg_init(module_or_path?: {
|
|
97
|
+
module_or_path: InitInput | Promise<InitInput>;
|
|
98
|
+
} | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
65
99
|
declare namespace reed_solomon_wasm_d_exports {
|
|
66
100
|
export { ShardsCollection, decode, encode };
|
|
67
101
|
}
|