epir
Version:
EllipticPIR client library (Node.js / TypeScript bindings).
11 lines (6 loc) • 374 B
text/typescript
import { runTests } from './addon';
import { createEpir, createDecryptionContext } from '../wasm';
// For WebAssembly tests, we have tests which uses max CPU cores (x2 for main threads and worker threads).
const testsWithWorkersCount = 4;
process.setMaxListeners(testsWithWorkersCount * 2 * navigator.hardwareConcurrency);
runTests(createEpir, createDecryptionContext);