mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
call proof generator from within a web worker
This commit is contained in:
@@ -11,17 +11,12 @@
|
||||
|
||||
import genJsonPayload from "../utils/genJsonPayload";
|
||||
import * as CONST from "./const";
|
||||
import { PoWConfig } from "./types";
|
||||
|
||||
type GetConfigPayload = {
|
||||
key: string;
|
||||
};
|
||||
|
||||
export type PoWConfig = {
|
||||
string: string;
|
||||
difficulty_factor: number;
|
||||
salt: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* fetch proof-of-work configuration
|
||||
* @returns {PoWConfig} pow config
|
||||
|
||||
Reference in New Issue
Block a user