@mcaptcha/pow_sha256-polyfill
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha-1 • Public • Published

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);

Package Sidebar

Install

npm i @mcaptcha/pow_sha256-polyfill

Homepage

mcaptcha.org

Weekly Downloads

38

Version

0.1.0-alpha-1

License

(MIT OR Apache-2.0)

Unpacked Size

4.47 kB

Total Files

7

Last publish

Collaborators

  • mcaptcha-user
  • realaravinth