Anubis_offload: Userscript to offload Anubis PoW to native CPU or GPU code
17 days ago
- #Proof of Work
- #Performance Optimization
- #Anubis
- A userscript offloads Anubis Proof of Work (PoW) from browser to native CPU/GPU, significantly speeding up computation.
- Difficulty 4 takes tens of milliseconds on CPU vs. seconds in browser; difficulty 6 (256x harder) is handled in tens of milliseconds on GPU.
- Optimized mining algorithm reduces inner loop processing, offering a 9x speedup over naive methods.
- Installation requires Tampermonkey and running a Python server (`offloadd.py`) for HTTP-based PoW challenge handling.
- The script hooks `Worker.postMessage` to intercept and redirect PoW challenges to a local server, bypassing browser computation.
- Supports both CPU (via PyOpenCL) and GPU acceleration, with GPU preferred for performance.
- Useful for low-end devices, reduces environmental impact, and maintains PoW legitimacy (no bypass).
- Limitations include potential CSP issues and the need for localhost access due to security exceptions.
- Future improvements could include WebGPU support and fallback mechanisms for server offline scenarios.