altcha-org / altcha

GDPR compliant, self-hosted CAPTCHA alternative with PoW mechanism and advanced anti-spam filter.
https://altcha.org
MIT License
241 stars 5 forks source link

add optional expiry via headers #19

Closed rallisf1 closed 3 months ago

rallisf1 commented 3 months ago

As discussed on #18 (Proposal 1), this was an easy addition.

P.S. Multithreading needs some brainstorming as you end up with multiple solutions by only splitting the iteration loop.

Feel free to make any changes and don't forget to update the package version.

ovx commented 3 months ago

Thanks for the PR. The multithreading is now implemented in the next branch, it simply splits work between workers and implements an abort controller to stop processing once a solution is found. Both features will be release in the upcoming version.

I'll update the docs and add tests.