0.1.0-alpha-1 • Published 6 months ago

@mcaptcha/pow_sha256-polyfill v0.1.0-alpha-1

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
6 months ago

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

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