mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-22 14:53:15 +00:00
* chore: setup rln as a new package * chore: migrate src * fix: wasm loading, tests, config * chore: fix Karma CI * fix: bundler * chore: copy dist resources * chore(rln): enable all tests * chore: increase karma timeouts
10 lines
366 B
TypeScript
10 lines
366 B
TypeScript
import type { RLNInstance } from "./rln.js";
|
|
|
|
export async function createRLN(): Promise<RLNInstance> {
|
|
// A dependency graph that contains any wasm must all be imported
|
|
// asynchronously. This file does the single async import, so
|
|
// that no one else needs to worry about it again.
|
|
const rlnModule = await import("./rln.js");
|
|
return rlnModule.create();
|
|
}
|