PoW JavaScript library
JavaScript library to generate PoW for mCaptcha
[](https://mcaptcha.github.io/pow_sha256-polyfill/)
![Build)]()
[](https://codecov.io/gh/mCaptcha/pow_sha256-polyfill)
## Usage
To generate proof-of-work, per mCaptcha specification:
```typescript
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](https://nlnet.nl/entrust), via [NLnet](https://nlnet.nl/). Please
see [here](https://nlnet.nl/project/mCaptcha/) for more details.