feat: Replace aCAPTCHA with official ALTCHA (altcha.org) Proof-of-Work web component widget

This commit is contained in:
Richard
2026-07-31 11:39:29 +02:00
parent 6ef74c7cf4
commit 83c782c469
417 changed files with 100543 additions and 317 deletions
+14
View File
@@ -0,0 +1,14 @@
import { type IWASMInterface, WASMInterface } from "./WASMInterface";
import type Mutex from "./mutex";
import type { IEmbeddedWasm } from "./util";
export default async function lockedCreate(
mutex: Mutex,
binary: IEmbeddedWasm,
hashLength: number,
): Promise<IWASMInterface> {
const unlock = await mutex.lock();
const wasm = await WASMInterface(binary, hashLength);
unlock();
return wasm;
}