No description
Aravinth Manivannan
e54f1d62ac
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: #8 |
||
---|---|---|
.github | ||
src | ||
static/third-party | ||
.eslintrc.js | ||
.gitignore | ||
.woodpecker.yml | ||
jest.config.ts | ||
LICENSE_APACHE | ||
LICENSE_MIT | ||
package.json | ||
README.md | ||
renovate.json | ||
tsconfig.json | ||
webpack.config.js | ||
yarn.lock |
Usage
To generate proof-of-work, per mCaptcha specification:
import {generate_proof} from "@mcaptcha/pow_sha256-polyfill";
let salt = "randomsaltvalueprovidedbymcaptcha";
let phrase = "randomphrasevalueprovidedbymcaptcha";
let difficulty = 50_000;
let work = await generate_proof(salt, phrase, difficulty);
Funding
NLnet
2023 development is funded through the NGI0 Entrust Fund, via NLnet. Please see here for more details.