PoW Captcha Core
pow-captcha-core is a simple, lightweight, and dependency-free Proof-of-Work (PoW) CAPTCHA library for Rust. It provides the core logic for generating and verifying PoW challenges.
Features
- Generate PoW challenges with a specified difficulty.
- Verify solutions provided by clients.
- Solve challenges (intended for client-side use).
- Supports SHA-256 and SHA-512 hashing algorithms.
Usage
Add the dependency:
Example
use ;
// 1. Server: Generate a challenge
let challenge = generate_challenge;
// 2. Client: Solve the challenge
let solution = solve_challenge;
// 3. Server: Verify the solution
assert!;
License
This project is licensed to you under the MIT License.
RoadMap
- Explore the possibility of adding RandomX algorithm support for stronger anti-ASIC properties