No description
Find a file
Renovate Bot f44868990f
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
chore(deps): update dependency ts-jest to v29.2.4
2024-08-01 09:03:43 +00:00
.github chore: CI: update base node version 2023-10-28 18:11:47 +05:30
src feat: incremental proof of work computing fn 2023-10-29 02:20:15 +05:30
static/third-party feat: add NLnet funding details 2023-03-08 17:26:23 +05:30
.eslintrc.js setup tests and linting 2021-12-07 19:01:36 +05:30
.gitignore polyfill implementation 2021-12-07 15:35:10 +05:30
.woodpecker.yml chore(deps): update node.js to v20.15.1 2024-07-22 13:35:58 +00:00
jest.config.ts pow_sha256 serializes the phrase on which the proof is to be computed 2021-12-08 13:43:24 +05:30
LICENSE_APACHE added licenses 2021-06-27 21:31:59 +05:30
LICENSE_MIT added licenses 2021-06-27 21:31:59 +05:30
package.json chore(deps): update dependency rimraf to v6 2024-07-08 22:33:26 +00:00
README.md feat: add NLnet funding details 2023-03-08 17:26:23 +05:30
renovate.json Add renovate.json 2024-06-04 07:36:32 +00:00
tsconfig.json prep for release 2021-12-08 14:32:27 +05:30
webpack.config.js prep for release 2021-12-08 14:32:27 +05:30
yarn.lock chore(deps): update dependency ts-jest to v29.2.4 2024-08-01 09:03:43 +00:00

PoW JavaScript library

JavaScript library to generate PoW for mCaptcha

0.1.0 Build) codecov

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

NLnet NGIZero logo

2023 development is funded through the NGI0 Entrust Fund, via NLnet. Please see here for more details.