No description
Aravinth Manivannan
313bf12caa
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Reviewed-on: #36 |
||
---|---|---|
.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.