leto / webminer

Webmining Will Set You Free

Home Page:http://webminer.is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Miner

This miner turns 1 CPU + 256MB RAM + 1 browser tab into HUSH cryptocurrency, a zkSNARK coin related to Zcash.

Adding Komodo (KMD) support is on the docket and potentially other Zcash forks.

This repository contains the Javascript frontend code that mines in the browser via WebAssembly, as well as the backend Perl server which uses Websockets. In addition, you can do pure CPU mining via the command-line, see the "CPU Mining" section.

Installing

  1. Install web assembly on server: http://webassembly.org/getting-started/developers-guide/
  2. checkout this repo on server
  3. cd js-emscripten/ && make
  4. Install js-emscripten/miner.html and hushminer.js and hushminer.wasm on web server.
  5. Install js-backend/ on server as /ws

CPU WebAssembly miner

Reimplementation of xenoncat/Tromp algorithm, just to understand it better by myself. Performs around the same as Tromp's equi1. It's single-threaded on purpose, and uses 256 MB of memory now. The aim was the pure C miner with no dependencies, that works of either little-endian or big-endian platform (ultrasparc speed is so pathetic).

c/ is portable C sources to produce binary for your platform.

js-emscripten/ is a port to emscipten for mining in WebAssembly-compatible browser

js-backend/ is a server-side support for browser mining, allows many sessions (tested up to 30K sessions, many thanks to https://github.com/kosjak1)

pool-emu/ may be handy for debugging your miners.

Code used:

CPU Mining

Make sure to compile binary:

cd c/
make

How to run binary:

TADDR=t1J1NGkA9FvnQyQQr8w7jYUouConMTcZaLF ./hushminer -l us.madmining.club -u $TADDR

About

Webmining Will Set You Free

http://webminer.is


Languages

Language:Perl 46.8%Language:Perl 6 25.8%Language:JavaScript 11.7%Language:C 10.4%Language:HTML 3.0%Language:C++ 1.6%Language:CSS 0.5%Language:Makefile 0.1%