2022-09-28 12:54:04 +10:00
|
|
|
import { RLNDecoder, RLNEncoder } from "./codec.js";
|
2023-10-17 11:26:17 +02:00
|
|
|
import {
|
|
|
|
|
RLN_REGISTRY_ABI,
|
|
|
|
|
RLN_STORAGE_ABI,
|
|
|
|
|
SEPOLIA_CONTRACT,
|
|
|
|
|
} from "./constants.js";
|
2023-10-14 02:21:35 +02:00
|
|
|
import { Keystore } from "./keystore/index.js";
|
2023-05-08 18:10:26 -04:00
|
|
|
import {
|
|
|
|
|
IdentityCredential,
|
|
|
|
|
Proof,
|
|
|
|
|
ProofMetadata,
|
|
|
|
|
RLNInstance,
|
|
|
|
|
} from "./rln.js";
|
2023-01-26 18:58:18 +01:00
|
|
|
import { RLNContract } from "./rln_contract.js";
|
2023-05-08 18:10:26 -04:00
|
|
|
import { MerkleRootTracker } from "./root_tracker.js";
|
2022-09-06 16:40:19 -04:00
|
|
|
|
|
|
|
|
// reexport the create function, dynamically imported from rln.ts
|
|
|
|
|
export async function create(): 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.
|
2022-09-23 16:32:38 +10:00
|
|
|
const rlnModule = await import("./rln.js");
|
2022-09-06 16:40:19 -04:00
|
|
|
return await rlnModule.create();
|
2022-09-06 12:06:19 -04:00
|
|
|
}
|
2022-09-23 16:32:38 +10:00
|
|
|
|
2023-01-26 18:58:18 +01:00
|
|
|
export {
|
2023-10-14 02:21:35 +02:00
|
|
|
Keystore,
|
2023-01-26 18:58:18 +01:00
|
|
|
RLNInstance,
|
2023-05-08 18:10:26 -04:00
|
|
|
IdentityCredential,
|
2023-01-26 18:58:18 +01:00
|
|
|
Proof,
|
2023-05-08 18:10:26 -04:00
|
|
|
ProofMetadata,
|
2023-01-26 18:58:18 +01:00
|
|
|
RLNEncoder,
|
|
|
|
|
RLNDecoder,
|
2023-05-08 18:10:26 -04:00
|
|
|
MerkleRootTracker,
|
2023-01-26 18:58:18 +01:00
|
|
|
RLNContract,
|
2023-10-17 11:26:17 +02:00
|
|
|
RLN_STORAGE_ABI,
|
|
|
|
|
RLN_REGISTRY_ABI,
|
2023-05-14 12:18:21 -04:00
|
|
|
SEPOLIA_CONTRACT,
|
2023-01-26 18:58:18 +01:00
|
|
|
};
|