No description
Aravinth Manivannan
35bc3ceee0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
---|---|---|
.reuse | ||
examples | ||
LICENSES | ||
mcaptcha-pow-ffi | ||
.gitignore | ||
.woodpecker.yml | ||
go.mod | ||
go.sum | ||
gomcaptcha.go | ||
gomcaptcha_test.go | ||
Makefile | ||
README.md |
gomcaptcha: Go library that implements mCaptcha PoW
Overview
Normal usage within mCaptcha ecosystem will look like this:
- mCaptcha server presents challenge parameters (
difficulty_factor
, salt, and challenge phrase) - Visitor computes Proof-of-Work using parameters received
- Visitor submits Proof-of-Work to mCaptcha server and receives authorization token if Proof-of-Work is valid.
- Visitor submits Proof-of-Work to protected resource/server
This library implements step #2 from this process.
Dependencies
- Rust compiler: This library is a thin wrapper over mcaptcha-pow-ffi, which has to be compiled first before this library can be used.
- Go
- GNU Make
Compile Rust FFI library:
make rust.build
Run example:
make example
Usage
Please refer to example.