Giter Club home page Giter Club logo

powhasher's Introduction

       / /\/ / \ \/\_/ \|
  ___/                   ---
  \   ###   ##  #   #  #   /
  -   #  # #  # # # #  #   -
  \   ###  #  # ## ##       \
  /   #     ##  #   #  #   --
  --                     /
     \/\   /\ / \ | \/ /

Usage

Edit the included example-config.json to suit your needs (pool address, number of threads, etc), then run:

powhasher -c your-config.json

While the hasher is running, press Enter to get statistics.

What is it?

This is a simple CLI miner for modern x86 CPUs, powered by the yellowsun CryptoNight hash implementation and the cn-stratum pool client. It once hosted unusually fast Cn/Cnv1 core loops I wrote in assembly, but the current Cnv2 backend is pure Rust based on stdsimd intrinsics.

Supported platforms

If you'd like to use this on a platform that isn't Linux, all it needs is a hugepage mmap implementation for your weird choice of operating systems. PRs for the yellowsun project are welcome!

powhasher's People

Contributors

kazcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

powhasher's Issues

static build errors on ubuntu for RHEL

Trying to build a COMPLETELY static binary. The build machine is Ubuntu 18, and the run machine in RHEL. I suspect the error might have something to do with the fact I tried installing rust and cargo via sudo apt install rather than the shell script method. (However, I later removed the apt packages and successfully installed rust via the shell - so maybe not?)

$ cargo build --release --verbose
       Fresh unicode-xid v0.1.0
       Fresh version_check v0.1.4
       Fresh cc v1.0.25
       Fresh cfg-if v0.1.5
       Fresh libc v0.2.43
       Fresh byteorder v1.2.6
       Fresh rustc-demangle v0.1.9
       Fresh block-padding v0.1.0
       Fresh ucd-util v0.1.1
       Fresh byte-tools v0.3.0
       Fresh quick-error v1.2.2
       Fresh utf8-ranges v1.0.1
       Fresh keccak v0.1.0
       Fresh nodrop v0.1.12
       Fresh unicode-width v0.1.5
       Fresh itoa v0.4.3
       Fresh opaque-debug v0.2.1
       Fresh termcolor v1.0.4
       Fresh strsim v0.7.0
       Fresh ansi_term v0.11.0
       Fresh bitflags v1.0.4
       Fresh vec_map v0.8.1
   Compiling groestl-aesni v0.2.0
     Running `rustc --edition=2018 --crate-name build_script_build /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/groestl-aesni-0.2.0/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=be42b90b42d387da -C extra-filename=-be42b90b42d387da --out-dir /home/ubuntu/powhasher/target/release/build/groestl-aesni-be42b90b42d387da -L dependency=/home/ubuntu/powhasher/target/release/deps --extern cc=/home/ubuntu/powhasher/target/release/deps/libcc-7ccb89bfc6bffd3a.rlib --cap-lints allow`
error: Edition 2018 is unstable and only available for nightly builds of rustc.

error: Could not compile `groestl-aesni`.

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name build_script_build /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/groestl-aesni-0.2.0/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=be42b90b42d387da -C extra-filename=-be42b90b42d387da --out-dir /home/ubuntu/powhasher/target/release/build/groestl-aesni-be42b90b42d387da -L dependency=/home/ubuntu/powhasher/target/release/deps --extern cc=/home/ubuntu/powhasher/target/release/deps/libcc-7ccb89bfc6bffd3a.rlib --cap-lints allow` (exit code: 1)

can't build using "cargo build"

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/W4" "/FoC:\Users\Giusep
pe\intellij-workspace\powhasher\target\debug\build\groestl-aesni-f46b9921aa6e5276\out\src\hash.o" "/c" "src/hash.c" with args "cl.exe" did not execute successfully (status code exit code: 2).

Hi, I have some questions regarding this project

Hi, I have some questions regarding this project:

  1. Am I able to import it as a library/crate into my own Rust code and integrate it into my own software so I can compile all into a single executable?
  2. Does it support either Beam, Zcash or Monera or any other privacy respecting cryptocurrency?
  3. How efficient is it compared to something like gminer?
  4. Do you guys get a commission from my cryptomining if I were to use this library/crate?
  5. How well maintained is this project? How many people are working on it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.